[lkml]   [2017]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[tip:locking/core 14/14] arch/sparc/include/asm/setup.h:17:22: error: 'boot_cpu_id' redeclared as different kind of symbol
tree: locking/core
head: 4ef9ea9524c0015e551d062ac75ab9fd04365277
commit: 4ef9ea9524c0015e551d062ac75ab9fd04365277 [14/14] lockdep: Fix per-cpu static objects
config: sparc-defconfig (attached as .config)
compiler: sparc-linux-gcc (GCC) 6.2.0
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 4ef9ea9524c0015e551d062ac75ab9fd04365277
# save the attached .config to linux build tree
make.cross ARCH=sparc

All errors (new ones prefixed by >>):

In file included from drivers/pci/pci.c:31:0:
>> arch/sparc/include/asm/setup.h:17:22: error: 'boot_cpu_id' redeclared as different kind of symbol
extern unsigned char boot_cpu_id;
In file included from include/linux/topology.h:33:0,
from include/linux/gfp.h:8,
from include/linux/slab.h:14,
from include/linux/resource_ext.h:19,
from include/linux/acpi.h:26,
from drivers/pci/pci.c:10:
include/linux/smp.h:168:19: note: previous definition of 'boot_cpu_id' was here
static inline int boot_cpu_id(void)

vim +/boot_cpu_id +17 arch/sparc/include/asm/setup.h

d550bbd4 David Howells 2012-03-28 11 extern char reboot_command[];
d550bbd4 David Howells 2012-03-28 12
5fcafb7a Daniel Hellstrom 2011-04-21 13 #ifdef CONFIG_SPARC32
5fcafb7a Daniel Hellstrom 2011-04-21 14 /* The CPU that was used for booting
5fcafb7a Daniel Hellstrom 2011-04-21 15 * Only sun4d + leon may have boot_cpu_id != 0
5fcafb7a Daniel Hellstrom 2011-04-21 16 */
5fcafb7a Daniel Hellstrom 2011-04-21 @17 extern unsigned char boot_cpu_id;
d550bbd4 David Howells 2012-03-28 18
d550bbd4 David Howells 2012-03-28 19 extern unsigned long empty_zero_page;
d550bbd4 David Howells 2012-03-28 20

:::::: The code at line 17 was first introduced by commit
:::::: 5fcafb7a23e35b2f1a5243f4dd536240f52c8ceb sparc32: always define boot_cpu_id

:::::: TO: Daniel Hellstrom <>
:::::: CC: David S. Miller <>

0-DAY kernel test infrastructure Open Source Technology Center Intel Corporation
[unhandled content-type:application/gzip]
 \ /
  Last update: 2017-03-26 13:51    [W:0.019 / U:7.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site