mirror of https://github.com/torvalds/linux.git
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
This commit is contained in:
parent
3ca59da7aa
commit
fdc0f39d28
|
|
@ -101,44 +101,21 @@ static inline void rseq_execve(struct task_struct *t)
|
||||||
t->rseq_event_mask = 0;
|
t->rseq_event_mask = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else /* CONFIG_RSEQ */
|
||||||
|
static inline void rseq_set_notify_resume(struct task_struct *t) { }
|
||||||
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_handle_notify_resume(struct ksignal *ksig,
|
static inline void rseq_migrate(struct task_struct *t) { }
|
||||||
struct pt_regs *regs)
|
static inline void rseq_fork(struct task_struct *t, u64 clone_flags) { }
|
||||||
{
|
static inline void rseq_execve(struct task_struct *t) { }
|
||||||
}
|
|
||||||
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, u64 clone_flags)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
static inline void rseq_execve(struct task_struct *t)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
static inline void rseq_exit_to_user_mode(void) { }
|
static inline void rseq_exit_to_user_mode(void) { }
|
||||||
#endif
|
#endif /* !CONFIG_RSEQ */
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_RSEQ
|
#ifdef CONFIG_DEBUG_RSEQ
|
||||||
|
|
||||||
void rseq_syscall(struct pt_regs *regs);
|
void rseq_syscall(struct pt_regs *regs);
|
||||||
|
#else /* CONFIG_DEBUG_RSEQ */
|
||||||
#else
|
static inline void rseq_syscall(struct pt_regs *regs) { }
|
||||||
|
#endif /* !CONFIG_DEBUG_RSEQ */
|
||||||
static inline void rseq_syscall(struct pt_regs *regs)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _LINUX_RSEQ_H */
|
#endif /* _LINUX_RSEQ_H */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue