Re: [PATCH] uapi elf: delete unused macros

From: kbuild test robot
Date: Thu Nov 05 2015 - 11:28:26 EST


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: m68k-sun3_defconfig (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=m68k

All error/warnings (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/m68k/include/asm/elf.h:54: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/m68k/include/asm/elf.h:54: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;
^
--
In file included from include/linux/elf.h:4:0,
from fs/proc/kcore.c:17:
fs/proc/kcore.c: In function 'elf_kcore_store_hdr':
>> arch/m68k/include/asm/elf.h:54:18: error: 'ELFDATA2MSB' undeclared (first use in this function)
#define ELF_DATA ELFDATA2MSB
^
>> fs/proc/kcore.c:335:26: note: in expansion of macro 'ELF_DATA'
elf->e_ident[EI_DATA] = ELF_DATA;
^
arch/m68k/include/asm/elf.h:54:18: note: each undeclared identifier is reported only once for each function it appears in
#define ELF_DATA ELFDATA2MSB
^
>> fs/proc/kcore.c:335:26: note: in expansion of macro 'ELF_DATA'
elf->e_ident[EI_DATA] = ELF_DATA;
^
--
In file included from include/linux/elf.h:4:0,
from fs//proc/kcore.c:17:
fs//proc/kcore.c: In function 'elf_kcore_store_hdr':
>> arch/m68k/include/asm/elf.h:54:18: error: 'ELFDATA2MSB' undeclared (first use in this function)
#define ELF_DATA ELFDATA2MSB
^
fs//proc/kcore.c:335:26: note: in expansion of macro 'ELF_DATA'
elf->e_ident[EI_DATA] = ELF_DATA;
^
arch/m68k/include/asm/elf.h:54:18: note: each undeclared identifier is reported only once for each function it appears in
#define ELF_DATA ELFDATA2MSB
^
fs//proc/kcore.c:335:26: note: in expansion of macro 'ELF_DATA'
elf->e_ident[EI_DATA] = ELF_DATA;
^

vim +/ELFDATA2MSB +54 arch/m68k/include/asm/elf.h

f358cbcd Greg Ungerer 2009-01-29 48 #define elf_check_arch(x) ((x)->e_machine == EM_68K)
f358cbcd Greg Ungerer 2009-01-29 49
f358cbcd Greg Ungerer 2009-01-29 50 /*
f358cbcd Greg Ungerer 2009-01-29 51 * These are used to set parameters in the core dumps.
f358cbcd Greg Ungerer 2009-01-29 52 */
f358cbcd Greg Ungerer 2009-01-29 53 #define ELF_CLASS ELFCLASS32
f358cbcd Greg Ungerer 2009-01-29 @54 #define ELF_DATA ELFDATA2MSB
f358cbcd Greg Ungerer 2009-01-29 55 #define ELF_ARCH EM_68K
f358cbcd Greg Ungerer 2009-01-29 56
f358cbcd Greg Ungerer 2009-01-29 57 /* For SVR4/m68k the function pointer to be registered with `atexit' is

:::::: The code at line 54 was first introduced by commit
:::::: f358cbcd49027d3a58c1f29dbf02a8369bfedcf7 m68k: use mmu version of elf.h for non-mmu builds as well

:::::: TO: Greg Ungerer <gerg@xxxxxxxxxxx>
:::::: CC: Greg Ungerer <gerg@xxxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data