From: kernel test robot <lkp@intel.com>
To: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
"Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: [jpoimboe:objtool/core 10/24] arch/mips/include/asm/smp.h:44:29: error: use of undeclared identifier 'CONFIG_MIPS_NR_CPU_NR_MAP'
Date: Wed, 8 Mar 2023 16:39:43 +0800 [thread overview]
Message-ID: <202303081612.leLRNMzo-lkp@intel.com> (raw)
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
reply other threads:[~2023-03-08 8:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202303081612.leLRNMzo-lkp@intel.com \
--to=lkp@intel.com \
--cc=jpoimboe@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=philmd@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.