提交 b1fa650c 编写于 作者: S Stephen Rothwell 提交者: James Morris

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: NStephen Rothwell <sfr@ozlabs.au.ibm.com>
Signed-off-by: NJames Morris <james.l.morris@oracle.com>
上级 8ac270d1
...@@ -90,7 +90,7 @@ static inline int seccomp_mode(struct seccomp *s) ...@@ -90,7 +90,7 @@ static inline int seccomp_mode(struct seccomp *s)
struct seccomp { }; struct seccomp { };
struct seccomp_filter { }; 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)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册