Skip to content
Snippets Groups Projects
Commit 60d3a9c7 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Iliyan Malchev
Browse files

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: default avatarStephen Rothwell <sfr@ozlabs.au.ibm.com>
Signed-off-by: default avatarJames Morris <james.l.morris@oracle.com>
parent bc3f6efe
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment