]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
seccomp: use a static inline for a function stub
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 17 Apr 2012 02:08:48 +0000 (12:08 +1000)
committerJames Morris <james.l.morris@oracle.com>
Tue, 17 Apr 2012 03:22:36 +0000 (13:22 +1000)
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>
include/linux/seccomp.h

index 5818e869651b36183fc0e922d6fc279496803118..60f2b350ead7d3ea62e9932808ac8b4c41a80329 100644 (file)
@@ -90,7 +90,7 @@ static inline int seccomp_mode(struct seccomp *s)
 struct seccomp { };
 struct seccomp_filter { };
 
 struct seccomp { };
 struct seccomp_filter { };
 
-#define secure_computing(x) 0
+static inline int secure_computing(int this_syscall) { return 0; }
 
 static inline long prctl_get_seccomp(void)
 {
 
 static inline long prctl_get_seccomp(void)
 {