tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 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
reproduce:
        wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -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 <[email protected]>
:::::: CC: David S. Miller <[email protected]>

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

Attachment: .config.gz
Description: application/gzip

Reply via email to