From nobody Fri Oct 3 23:09:44 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE88825D204 for ; Sat, 23 Aug 2025 16:39:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755967154; cv=none; b=rm0bwBVKJNcksCFAn/1kbY7ICmnjPUmYAuUSekl4Dtrf5lNa3KYYjPeFZBeMVCOoxNN0DRjKPeos95N58OVydVLlOlw1+7BBst4ZEXvKUBC2hEuRVza3E0gHKc5ziPV8DHI8zFQImeHgYJO705Zh5t7lNUbQfZL7SgvAssFBzgU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755967154; c=relaxed/simple; bh=HGCpG59G/OHWP2Db6yF1AhuivKTVORyZGDlxLPrBp5Q=; h=Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type:Date; b=IM5vvGFXB+cBIrVNH90MyMazL/iJZe9+xrPLOik+lw+bTBG9PMeXP4NhpFu/hdgXGBCDDCKSnuVvwtOazVlhwt7fU3azEeMQv1HIxBsxKw4CJ3ZInVSSxI85L+ObqU54x9tmhztvvO1eHPq05WE/FxeyjDFNmOnTh14StpEqRh4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=D7KXtvxb; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=gQdrW4xv; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="D7KXtvxb"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="gQdrW4xv" Message-ID: <20250823161653.387469844@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1755967150; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=TLyiqO9fhXUolGppUl/GktUryjsQJl4FtcKZ3sesbW8=; b=D7KXtvxbKzsbJ/cvGeDcZb7vczgI1afBKZtLXmysUPjcZInnVzP4SklnTFiCY7u+L/D9AL 1yAXd/SrJfR1xjBJ3iIIfD567jAsttgYAfitSj50x+ZbDVDwj8wWB8o9TZbn9KMJGMC0Yn fnfFPOzXXiYWEuiQTfYdyUxj4ZxI0sSnSK3s6ACDGzpXKtzY2Hv29yBWfXZyLTU4MU+G04 sMS4kyaOzjlDK0judKxfy+GQ6IcecAorcnM2HK3g2eCAwTTMPsbnGgAx+kZdZVjU0kWmL3 bfTAMxehLlNtSO/plCKwTfP+xUZ4t92VmzxUog7eur3ftikchc4oLASYH3f94g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1755967150; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=TLyiqO9fhXUolGppUl/GktUryjsQJl4FtcKZ3sesbW8=; b=gQdrW4xv5LOz1MHyrEUPR6DAV8e9ovX/HTCYm9SLQfvDwWmLACr8HuFfiQlX/XOpsKMHW3 DIhYLL9UiqMYRHDw== From: Thomas Gleixner To: LKML Cc: Jens Axboe , Mathieu Desnoyers , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Paolo Bonzini , Sean Christopherson , Wei Liu , Dexuan Cui , x86@kernel.org, Arnd Bergmann , Heiko Carstens , Christian Borntraeger , Sven Schnelle , Huacai Chen , Paul Walmsley , Palmer Dabbelt Subject: [patch V2 02/37] rseq: Condense the inline stubs References: <20250823161326.635281786@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Sat, 23 Aug 2025 18:39:09 +0200 (CEST) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Thomas Gleixner Scrolling over tons of pointless { } lines to find the actual code is annoying at best. Signed-off-by: Thomas Gleixner Cc: Mathieu Desnoyers Cc: Peter Zijlstra Cc: "Paul E. McKenney" Cc: Boqun Feng Reviewed-by: Mathieu Desnoyers --- include/linux/rseq.h | 47 ++++++++++++----------------------------------- 1 file changed, 12 insertions(+), 35 deletions(-) --- --- a/include/linux/rseq.h +++ b/include/linux/rseq.h @@ -101,44 +101,21 @@ static inline void rseq_execve(struct ta t->rseq_event_mask =3D 0; } =20 -#else - -static inline void rseq_set_notify_resume(struct task_struct *t) -{ -} -static inline void rseq_handle_notify_resume(struct ksignal *ksig, - struct pt_regs *regs) -{ -} -static inline void rseq_signal_deliver(struct ksignal *ksig, - struct pt_regs *regs) -{ -} -static inline void rseq_preempt(struct task_struct *t) -{ -} -static inline void rseq_migrate(struct task_struct *t) -{ -} -static inline void rseq_fork(struct task_struct *t, unsigned long clone_fl= ags) -{ -} -static inline void rseq_execve(struct task_struct *t) -{ -} +#else /* CONFIG_RSEQ */ +static inline void rseq_set_notify_resume(struct task_struct *t) { } +static inline void rseq_handle_notify_resume(struct ksignal *ksig, struct = pt_regs *regs) { } +static inline void rseq_signal_deliver(struct ksignal *ksig, struct pt_reg= s *regs) { } +static inline void rseq_preempt(struct task_struct *t) { } +static inline void rseq_migrate(struct task_struct *t) { } +static inline void rseq_fork(struct task_struct *t, unsigned long clone_fl= ags) { } +static inline void rseq_execve(struct task_struct *t) { } static inline void rseq_exit_to_user_mode(void) { } -#endif +#endif /* !CONFIG_RSEQ */ =20 #ifdef CONFIG_DEBUG_RSEQ - void rseq_syscall(struct pt_regs *regs); - -#else - -static inline void rseq_syscall(struct pt_regs *regs) -{ -} - -#endif +#else /* CONFIG_DEBUG_RSEQ */ +static inline void rseq_syscall(struct pt_regs *regs) { } +#endif /* !CONFIG_DEBUG_RSEQ */ =20 #endif /* _LINUX_RSEQ_H */