Skip to content

Commit b1fa650

Browse files
sfrothwellJames Morris
authored andcommitted
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>
1 parent 8ac270d commit b1fa650

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/seccomp.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static inline int seccomp_mode(struct seccomp *s)
9090
struct seccomp { };
9191
struct seccomp_filter { };
9292

93-
#define secure_computing(x) 0
93+
static inline int secure_computing(int this_syscall) { return 0; }
9494

9595
static inline long prctl_get_seccomp(void)
9696
{

0 commit comments

Comments
 (0)