public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [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
@ 2023-04-07 11:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-07 11:07 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: llvm, oe-kbuild-all

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

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

only message in thread, other threads:[~2023-04-07 11:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-07 11:07 [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 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox