diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2012-04-17 06:08:48 +0400 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2012-04-17 07:22:36 +0400 |
commit | b1fa650c7e6e81ca788fef52b1659295eb82ffdd (patch) | |
tree | 88cad5408f07d41243d7bc786c15dbde2de74ab4 /include/linux/seccomp.h | |
parent | 8ac270d1e29f0428228ab2b9a8ae5e1ed4a5cd84 (diff) | |
download | linux-b1fa650c7e6e81ca788fef52b1659295eb82ffdd.tar.xz |
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>
Diffstat (limited to 'include/linux/seccomp.h')
-rw-r--r-- | include/linux/seccomp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/seccomp.h b/include/linux/seccomp.h index 5818e869651b..60f2b350ead7 100644 --- a/include/linux/seccomp.h +++ b/include/linux/seccomp.h @@ -90,7 +90,7 @@ static inline int seccomp_mode(struct seccomp *s) 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) { |