[mips-sjhill:mips-for-linux-next 9/12] arch/mips/include/asm/smp.h:32:29: error: 'CONFIG_MIPS_NR_CPU_NR_MAP' undeclared here (not in a function)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://git.linux-mips.org/pub/scm/sjhill/linux-sjhill.git mips-for-linux-next
head:   f6cccc012695551ad73da0ff9bfce4e4679a07b0
commit: 43b97bf59c6969804449a3da534289a8f3a95a7e [9/12] MIPS: Allow __cpu_number_map to be larger than NR_CPUS
config: mips-maltasmvp_defconfig (attached as .config)
compiler: mipsel-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 43b97bf59c6969804449a3da534289a8f3a95a7e
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All errors (new ones prefixed by >>):

   In file included from include/linux/smp.h:63:0,
                    from arch/mips/include/asm/cpu-type.h:12,
                    from arch/mips/include/asm/timex.h:19,
                    from include/linux/timex.h:65,
                    from include/linux/jiffies.h:9,
                    from include/linux/ktime.h:25,
                    from include/linux/timer.h:5,
                    from include/linux/workqueue.h:8,
                    from include/linux/rhashtable.h:26,
                    from include/linux/ipc.h:6,
                    from include/uapi/linux/sem.h:4,
                    from include/linux/sem.h:8,
                    from include/linux/sched.h:14,
                    from arch/mips/kernel/asm-offsets.c:13:
>> arch/mips/include/asm/smp.h:32:29: error: 'CONFIG_MIPS_NR_CPU_NR_MAP' undeclared here (not in a function)
    extern int __cpu_number_map[CONFIG_MIPS_NR_CPU_NR_MAP];
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
   make[2]: *** [arch/mips/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +/CONFIG_MIPS_NR_CPU_NR_MAP +32 arch/mips/include/asm/smp.h

    29	
    30	/* Map from cpu id to sequential logical cpu number.  This will only
    31	   not be idempotent when cpus failed to come on-line.	*/
  > 32	extern int __cpu_number_map[CONFIG_MIPS_NR_CPU_NR_MAP];
    33	#define cpu_number_map(cpu)  __cpu_number_map[cpu]
    34	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux