[PATCH] uapi elf: delete unused macros

kbuild test robot lkp at intel.com
Fri Nov 6 03:45:59 AEDT 2015


Hi mudongliang,

[auto build test ERROR on: powerpc/next]
[also build test ERROR on: v4.3 next-20151105]

url:    https://github.com/0day-ci/linux/commits/mudongliang/uapi-elf-delete-unused-macros/20151105-234433
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: mips-jz4740 (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All errors (new ones prefixed by >>):

   In file included from include/linux/elf.h:4:0,
                    from include/linux/module.h:15,
                    from fs/binfmt_elf.c:12:
   fs/binfmt_elf.c: In function 'fill_elf_header':
>> arch/mips/include/asm/elf.h:279:18: error: 'ELFDATA2MSB' undeclared (first use in this function)
    #define ELF_DATA ELFDATA2MSB
                     ^
   fs/binfmt_elf.c:1350:26: note: in expansion of macro 'ELF_DATA'
     elf->e_ident[EI_DATA] = ELF_DATA;
                             ^
   arch/mips/include/asm/elf.h:279:18: note: each undeclared identifier is reported only once for each function it appears in
    #define ELF_DATA ELFDATA2MSB
                     ^
   fs/binfmt_elf.c:1350:26: note: in expansion of macro 'ELF_DATA'
     elf->e_ident[EI_DATA] = ELF_DATA;
                             ^

vim +/ELFDATA2MSB +279 arch/mips/include/asm/elf.h

875d43e7 include/asm-mips/elf.h      Ralf Baechle   2005-09-03  273  #endif /* CONFIG_64BIT */
^1da177e include/asm-mips/elf.h      Linus Torvalds 2005-04-16  274  
^1da177e include/asm-mips/elf.h      Linus Torvalds 2005-04-16  275  /*
^1da177e include/asm-mips/elf.h      Linus Torvalds 2005-04-16  276   * These are used to set parameters in the core dumps.
^1da177e include/asm-mips/elf.h      Linus Torvalds 2005-04-16  277   */
^1da177e include/asm-mips/elf.h      Linus Torvalds 2005-04-16  278  #ifdef __MIPSEB__
^1da177e include/asm-mips/elf.h      Linus Torvalds 2005-04-16 @279  #define ELF_DATA	ELFDATA2MSB
08d9d1c4 arch/mips/include/asm/elf.h David Daney    2008-12-17  280  #elif defined(__MIPSEL__)
^1da177e include/asm-mips/elf.h      Linus Torvalds 2005-04-16  281  #define ELF_DATA	ELFDATA2LSB
^1da177e include/asm-mips/elf.h      Linus Torvalds 2005-04-16  282  #endif

:::::: The code at line 279 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds at ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds at ppc970.osdl.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 17582 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20151106/894b99fd/attachment.obj>


More information about the Linuxppc-dev mailing list