[PATCH v3 1/3] mips: Use arch specific auxvec.h instead of generic-asm version

From: Daniel Wagner
Date: Mon Feb 08 2016 - 10:45:57 EST


The generic auxvec.h is used instead the arch specific version.
This happens when cross compiling the kernel.

mips64-linux-gnu-gcc (GCC) 5.2.1 20151104 (Red Hat Cross 5.2.1-4)

arch/mips/kernel/../../../fs/binfmt_elf.c: In function âcreate_elf_tablesâ:
./arch/mips/include/asm/elf.h:425:14: error: âAT_SYSINFO_EHDRâ undeclared (first use in this function)
NEW_AUX_ENT(AT_SYSINFO_EHDR, \
^
arch/mips/kernel/../../../fs/binfmt_elf.c:222:26: note: in definition of macro âNEW_AUX_ENTâ
elf_info[ei_index++] = id; \
^
arch/mips/kernel/../../../fs/binfmt_elf.c:233:2: note: in expansion of macro âARCH_DLINFOâ
ARCH_DLINFO;
^
./arch/mips/include/asm/elf.h:425:14: note: each undeclared identifier is reported only once for each function it appears in
NEW_AUX_ENT(AT_SYSINFO_EHDR, \
^
arch/mips/kernel/../../../fs/binfmt_elf.c:222:26: note: in definition of macro âNEW_AUX_ENTâ
elf_info[ei_index++] = id; \
^
arch/mips/kernel/../../../fs/binfmt_elf.c:233:2: note: in expansion of macro âARCH_DLINFOâ
ARCH_DLINFO;
^

Signed-off-by: Daniel Wagner <daniel.wagner@xxxxxxxxxxxx>
---
arch/mips/include/asm/auxvec.h | 1 +
1 file changed, 1 insertion(+)
create mode 100644 arch/mips/include/asm/auxvec.h

diff --git a/arch/mips/include/asm/auxvec.h b/arch/mips/include/asm/auxvec.h
new file mode 100644
index 0000000..fbd388c
--- /dev/null
+++ b/arch/mips/include/asm/auxvec.h
@@ -0,0 +1 @@
+#include <uapi/asm/auxvec.h>
--
2.5.0