From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [tglx-devel:hotplug 32/43] arch/riscv/kernel/cpu-hotplug.c:75:2: error: call to undeclared function 'cpuhp_ap_report_death'; ISO C99 and later do not support implicit function declarations
Date: Fri, 7 Apr 2023 19:07:33 +0800 [thread overview]
Message-ID: <202304071802.QnfMJdbf-lkp@intel.com> (raw)
Hi Thomas,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git hotplug
head: ddd73f1b6ab5c834f6d98521dcedd9ddd56a9659
commit: 71622e99f16217b2be66e87b63b7521c8ec697af [32/43] riscv: Switch to hotplug core state synchronization
config: riscv-randconfig-r012-20230406 (https://download.01.org/0day-ci/archive/20230407/202304071802.QnfMJdbf-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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id=71622e99f16217b2be66e87b63b7521c8ec697af
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel hotplug
git checkout 71622e99f16217b2be66e87b63b7521c8ec697af
# 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=riscv olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
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/202304071802.QnfMJdbf-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/riscv/kernel/cpu-hotplug.c:55:6: error: redefinition of 'arch_cpuhp_cleanup_dead_cpu'
void arch_cpuhp_cleanup_dead_cpu(unsigned int cpu)
^
include/linux/cpuhotplug.h:531:20: note: previous definition is here
static inline void arch_cpuhp_cleanup_dead_cpu(unsigned int cpu) { }
^
>> arch/riscv/kernel/cpu-hotplug.c:75:2: error: call to undeclared function 'cpuhp_ap_report_death'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
cpuhp_ap_report_death();
^
arch/riscv/kernel/cpu-hotplug.c:75:2: note: did you mean 'cpuhp_ap_report_dead'?
include/linux/cpuhotplug.h:530:20: note: 'cpuhp_ap_report_dead' declared here
static inline void cpuhp_ap_report_dead(void) { }
^
2 errors generated.
vim +/cpuhp_ap_report_death +75 arch/riscv/kernel/cpu-hotplug.c
67
68 /*
69 * Called from the idle thread for the CPU which has been shutdown.
70 */
71 void arch_cpu_idle_dead(void)
72 {
73 idle_task_exit();
74
> 75 cpuhp_ap_report_death();
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-04-07 11:07 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=202304071802.QnfMJdbf-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tglx@linutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox