Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

microblaze: use asm-generic for seccomp.h

Switch to using the newly created asm-generic/seccomp.h for the seccomp
strict mode syscall definitions. Since microblaze is 32-bit, the COMPAT
seccomp defines are unused and can be dropped. The obsolete sigreturn
for seccomp strict mode is retained as an override. Remaining definitions
are identical.

Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Michal Simek <monstr@monstr.eu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Kees Cook and committed by
Linus Torvalds
cc2d316f 6bcf4e9a

+1 -7
+1 -7
arch/microblaze/include/asm/seccomp.h
··· 3 3 4 4 #include <linux/unistd.h> 5 5 6 - #define __NR_seccomp_read __NR_read 7 - #define __NR_seccomp_write __NR_write 8 - #define __NR_seccomp_exit __NR_exit 9 6 #define __NR_seccomp_sigreturn __NR_sigreturn 10 7 11 - #define __NR_seccomp_read_32 __NR_read 12 - #define __NR_seccomp_write_32 __NR_write 13 - #define __NR_seccomp_exit_32 __NR_exit 14 - #define __NR_seccomp_sigreturn_32 __NR_sigreturn 8 + #include <asm-generic/seccomp.h> 15 9 16 10 #endif /* _ASM_MICROBLAZE_SECCOMP_H */