lkml.org 
[lkml]   [2016]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH v3 1/3] mips: Use arch specific auxvec.h instead of generic-asm version
    Date
    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@bmw-carit.de>
    ---
    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

    \
     
     \ /
      Last update: 2016-02-08 17:01    [W:6.693 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site