vsyscall_64: add missing ifdef CONFIG_SECCOMP

vsyscall_seccomp introduced a dependency on __secure_computing. On
configurations with CONFIG_SECCOMP disabled, compilation will fail.

Reported-by: feng xiangjun <fengxj325@gmail.com>
Signed-off-by: Will Drewry <wad@chromium.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Will Drewry and committed by Linus Torvalds 09d31442 a7559b13

Changed files
+4
arch
x86
kernel
+4
arch/x86/kernel/vsyscall_64.c
··· 139 139 return nr; 140 140 } 141 141 142 + #ifdef CONFIG_SECCOMP 142 143 static int vsyscall_seccomp(struct task_struct *tsk, int syscall_nr) 143 144 { 144 145 if (!seccomp_mode(&tsk->seccomp)) ··· 148 147 task_pt_regs(tsk)->ax = syscall_nr; 149 148 return __secure_computing(syscall_nr); 150 149 } 150 + #else 151 + #define vsyscall_seccomp(_tsk, _nr) 0 152 + #endif 151 153 152 154 static bool write_ok_or_segv(unsigned long ptr, size_t size) 153 155 {