selftests/seccomp: mips: Remove O32-specific macro
authorKees Cook <keescook@chromium.org>
Sat, 12 Sep 2020 11:08:11 +0000 (04:08 -0700)
committerKees Cook <keescook@chromium.org>
Sat, 19 Sep 2020 07:59:45 +0000 (00:59 -0700)
commit37989de731dbea5af143806192c4cd1484990ab4
tree4ebbda6a56abe96e242c3ee0a5b5c6dc1f81ed46
parent0dd7d68572d9393765b57c001adc30822e3003ed
selftests/seccomp: mips: Remove O32-specific macro

Instead of having the mips O32 macro special-cased, pull the logic into
the SYSCALL_NUM() macro. Additionally include the ABI headers, since
these appear to have been missing, leaving __NR_O32_Linux undefined.

Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/lkml/20200912110820.597135-7-keescook@chromium.org
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
tools/testing/selftests/seccomp/seccomp_bpf.c