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

seccomp: use a static inline for a function stub

Fixes this error message when CONFIG_SECCOMP is not set:

arch/powerpc/kernel/ptrace.c: In function 'do_syscall_trace_enter':
arch/powerpc/kernel/ptrace.c:1713:2: error: statement with no effect [-Werror=unused-value]

Signed-off-by: Stephen Rothwell <sfr@ozlabs.au.ibm.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>

authored by

Stephen Rothwell and committed by
James Morris
b1fa650c 8ac270d1

+1 -1
+1 -1
include/linux/seccomp.h
··· 90 90 struct seccomp { }; 91 91 struct seccomp_filter { }; 92 92 93 - #define secure_computing(x) 0 93 + static inline int secure_computing(int this_syscall) { return 0; } 94 94 95 95 static inline long prctl_get_seccomp(void) 96 96 {