All of lore.kernel.org
 help / color / mirror / Atom feed
* [jpoimboe:objtool/core 10/24] arch/mips/include/asm/smp.h:44:29: error: use of undeclared identifier 'CONFIG_MIPS_NR_CPU_NR_MAP'
@ 2023-03-08  8:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-08  8:39 UTC (permalink / raw)
  To: Josh Poimboeuf; +Cc: llvm, oe-kbuild-all, Philippe Mathieu-Daudé

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git objtool/core
head:   ed8d2d280a75ca9deb6d307e116acff4b8ef0782
commit: 09b0d89f25b23d7ed2df68a6bf2fa1ec484a15c6 [10/24] mips/cpu: Expose play_dead()'s prototype definition
config: mips-bcm63xx_defconfig (https://download.01.org/0day-ci/archive/20230308/202303081612.leLRNMzo-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git/commit/?id=09b0d89f25b23d7ed2df68a6bf2fa1ec484a15c6
        git remote add jpoimboe https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git
        git fetch --no-tags jpoimboe objtool/core
        git checkout 09b0d89f25b23d7ed2df68a6bf2fa1ec484a15c6
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/kernel/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303081612.leLRNMzo-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/mips/kernel/smp-bmips.c:41:
>> arch/mips/include/asm/smp.h:44:29: error: use of undeclared identifier 'CONFIG_MIPS_NR_CPU_NR_MAP'
   extern int __cpu_number_map[CONFIG_MIPS_NR_CPU_NR_MAP];
                               ^
   arch/mips/include/asm/smp.h:71:20: error: redefinition of 'smp_send_reschedule'
   static inline void smp_send_reschedule(int cpu)
                      ^
   include/linux/smp.h:198:20: note: previous definition is here
   static inline void smp_send_reschedule(int cpu) { }
                      ^
   In file included from arch/mips/kernel/smp-bmips.c:41:
   arch/mips/include/asm/smp.h:75:8: error: incomplete definition of type 'struct plat_smp_ops'
           mp_ops->send_ipi_single(cpu, SMP_RESCHEDULE_YOURSELF);
           ~~~~~~^
   arch/mips/include/asm/smp-ops.h:57:8: note: forward declaration of 'struct plat_smp_ops'
   struct plat_smp_ops;
          ^
   In file included from arch/mips/kernel/smp-bmips.c:41:
   arch/mips/include/asm/smp.h:130:8: error: incomplete definition of type 'struct plat_smp_ops'
           mp_ops->send_ipi_single(cpu, SMP_CALL_FUNCTION);
           ~~~~~~^
   arch/mips/include/asm/smp-ops.h:57:8: note: forward declaration of 'struct plat_smp_ops'
   struct plat_smp_ops;
          ^
   In file included from arch/mips/kernel/smp-bmips.c:41:
   arch/mips/include/asm/smp.h:137:8: error: incomplete definition of type 'struct plat_smp_ops'
           mp_ops->send_ipi_mask(mask, SMP_CALL_FUNCTION);
           ~~~~~~^
   arch/mips/include/asm/smp-ops.h:57:8: note: forward declaration of 'struct plat_smp_ops'
   struct plat_smp_ops;
          ^
   5 errors generated.


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

^1da177e4c3f41 include/asm-mips/smp.h      Linus Torvalds 2005-04-16  41  
^1da177e4c3f41 include/asm-mips/smp.h      Linus Torvalds 2005-04-16  42  /* Map from cpu id to sequential logical cpu number.  This will only
^1da177e4c3f41 include/asm-mips/smp.h      Linus Torvalds 2005-04-16  43     not be idempotent when cpus failed to come on-line.	*/
7820b84be844d8 arch/mips/include/asm/smp.h David Daney    2017-09-28 @44  extern int __cpu_number_map[CONFIG_MIPS_NR_CPU_NR_MAP];
^1da177e4c3f41 include/asm-mips/smp.h      Linus Torvalds 2005-04-16  45  #define cpu_number_map(cpu)  __cpu_number_map[cpu]
^1da177e4c3f41 include/asm-mips/smp.h      Linus Torvalds 2005-04-16  46  

:::::: The code at line 44 was first introduced by commit
:::::: 7820b84be844d8d863122b1323f2a4bc2441b783 MIPS: Allow __cpu_number_map to be larger than NR_CPUS

:::::: TO: David Daney <david.daney@cavium.com>
:::::: CC: James Hogan <jhogan@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-08  8:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-08  8:39 [jpoimboe:objtool/core 10/24] arch/mips/include/asm/smp.h:44:29: error: use of undeclared identifier 'CONFIG_MIPS_NR_CPU_NR_MAP' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.