Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rseq: Condense the inline stubs

Scrolling over tons of pointless

{
}

lines to find the actual code is annoying at best.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/20251027084306.085971048@linutronix.de

authored by

Thomas Gleixner and committed by
Ingo Molnar
fdc0f39d 3ca59da7

+12 -35
+12 -35
include/linux/rseq.h
··· 101 101 t->rseq_event_mask = 0; 102 102 } 103 103 104 - #else 105 - 106 - static inline void rseq_set_notify_resume(struct task_struct *t) 107 - { 108 - } 109 - static inline void rseq_handle_notify_resume(struct ksignal *ksig, 110 - struct pt_regs *regs) 111 - { 112 - } 113 - static inline void rseq_signal_deliver(struct ksignal *ksig, 114 - struct pt_regs *regs) 115 - { 116 - } 117 - static inline void rseq_preempt(struct task_struct *t) 118 - { 119 - } 120 - static inline void rseq_migrate(struct task_struct *t) 121 - { 122 - } 123 - static inline void rseq_fork(struct task_struct *t, u64 clone_flags) 124 - { 125 - } 126 - static inline void rseq_execve(struct task_struct *t) 127 - { 128 - } 104 + #else /* CONFIG_RSEQ */ 105 + static inline void rseq_set_notify_resume(struct task_struct *t) { } 106 + static inline void rseq_handle_notify_resume(struct ksignal *ksig, struct pt_regs *regs) { } 107 + static inline void rseq_signal_deliver(struct ksignal *ksig, struct pt_regs *regs) { } 108 + static inline void rseq_preempt(struct task_struct *t) { } 109 + static inline void rseq_migrate(struct task_struct *t) { } 110 + static inline void rseq_fork(struct task_struct *t, u64 clone_flags) { } 111 + static inline void rseq_execve(struct task_struct *t) { } 129 112 static inline void rseq_exit_to_user_mode(void) { } 130 - #endif 113 + #endif /* !CONFIG_RSEQ */ 131 114 132 115 #ifdef CONFIG_DEBUG_RSEQ 133 - 134 116 void rseq_syscall(struct pt_regs *regs); 135 - 136 - #else 137 - 138 - static inline void rseq_syscall(struct pt_regs *regs) 139 - { 140 - } 141 - 142 - #endif 117 + #else /* CONFIG_DEBUG_RSEQ */ 118 + static inline void rseq_syscall(struct pt_regs *regs) { } 119 + #endif /* !CONFIG_DEBUG_RSEQ */ 143 120 144 121 #endif /* _LINUX_RSEQ_H */