diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-12-19 01:18:03 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-01-13 15:53:09 +0100 |
commit | 78aaf956ba3ae0bfabbadc0393395cc4f7a7070f (patch) | |
tree | 41509ea41ee81bf8a3d8e11aa96b19e6fe258214 /arch/mips/alchemy | |
parent | MIPS: JZ4740: Fixup #include's (sparse) (diff) | |
download | linux-78aaf956ba3ae0bfabbadc0393395cc4f7a7070f.tar.xz linux-78aaf956ba3ae0bfabbadc0393395cc4f7a7070f.zip |
MIPS: Compat: Fix build error if CONFIG_MIPS32_COMPAT but no compat ABI.
In that case nor __NR_seccomp_*_32 symbols will be defined in
<asm/unistd.h> so the attempt to use it in kernel.seccomp.c will fail
with:
kernel/seccomp.c:565:2: error: '__NR_seccomp_read_32' undeclared here (not in a function)
__NR_seccomp_read_32, __NR_seccomp_write_32, __NR_seccomp_exit_32, __NR_seccomp_sigreturn_32,
^
kernel/seccomp.c:565:24: error: '__NR_seccomp_write_32' undeclared here (not in a function)
__NR_seccomp_read_32, __NR_seccomp_write_32, __NR_seccomp_exit_32, __NR_seccomp_sigreturn_32,
^
kernel/seccomp.c:565:47: error: '__NR_seccomp_exit_32' undeclared here (not in a function)
__NR_seccomp_read_32, __NR_seccomp_write_32, __NR_seccomp_exit_32, __NR_seccomp_sigreturn_32,
^
kernel/seccomp.c:565:69: error: '__NR_seccomp_sigreturn_32' undeclared here (not in a function)
__NR_seccomp_read_32, __NR_seccomp_write_32, __NR_seccomp_exit_32, __NR_seccomp_sigreturn_32,
Solved by changing the compat ABIs in kconfig to select MIPS32_COMPAT
directly. This also means the user no longer has to select MIPS32_COMPAT
before being able to see the ABI options.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/alchemy')
0 files changed, 0 insertions, 0 deletions