All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] entry: Provide stub for syscall_enter_audit() when auditing is disabled
@ 2026-07-20  9:49 Jinjie Ruan
  2026-07-20 15:34 ` Thomas Gleixner
  0 siblings, 1 reply; 6+ messages in thread
From: Jinjie Ruan @ 2026-07-20  9:49 UTC (permalink / raw)
  To: tglx, peterz, luto, linux-kernel; +Cc: ruanjinjie

When CONFIG_AUDITSYSCALL is not set, syscall_enter_audit() is not
defined, causing following undefined reference warning.  So add an empty
inline stub to resolve the missing symbol.

	include/linux/entry-common.h:109:(.noinstr.text+0x2e6): undefined reference to `syscall_enter_audit'

Fixes: ff2b9a905930 ("entry: Rework syscall_audit_enter()")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202607181530.2nx8zb3J-lkp@intel.com/
---
 include/linux/entry-common.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/linux/entry-common.h b/include/linux/entry-common.h
index 6574b7183c01..016165cffc9f 100644
--- a/include/linux/entry-common.h
+++ b/include/linux/entry-common.h
@@ -60,7 +60,11 @@ static __always_inline bool arch_ptrace_report_syscall_permit_entry(struct pt_re
 
 void trace_syscall_enter(struct pt_regs *regs);
 void trace_syscall_exit(struct pt_regs *regs, long ret);
+#ifdef CONFIG_AUDITSYSCALL
 void syscall_enter_audit(struct pt_regs *regs);
+#else
+static inline void syscall_enter_audit(struct pt_regs *regs) { }
+#endif
 
 static __always_inline long syscall_trace_enter(struct pt_regs *regs, unsigned long work,
 						long syscall)
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-07-21  7:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-20  9:49 [PATCH] entry: Provide stub for syscall_enter_audit() when auditing is disabled Jinjie Ruan
2026-07-20 15:34 ` Thomas Gleixner
2026-07-20 18:34   ` Thomas Gleixner
2026-07-21  2:41     ` Jinjie Ruan
2026-07-21  2:47   ` Jinjie Ruan
2026-07-21  7:58     ` Thomas Gleixner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.