oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [robh:dt/test 15/18] drivers/cpuidle/cpuidle-riscv-sbi.c:194:15: error: implicit declaration of function 'cpuhp_setup_state_nocalls'
@ 2023-03-12  1:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-12  1:17 UTC (permalink / raw)
  To: Rob Herring; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git dt/test
head:   a44acb6722672badc6478a7adf3c949e911a6deb
commit: 79fa7c616a07b9759ab4a013bc2601039772e3b2 [15/18] cpuidle: Adjust includes to remove of_device.h
config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20230312/202303120900.XjSD5CVJ-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 12.1.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git/commit/?id=79fa7c616a07b9759ab4a013bc2601039772e3b2
        git remote add robh https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git
        git fetch --no-tags robh dt/test
        git checkout 79fa7c616a07b9759ab4a013bc2601039772e3b2
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/

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/202303120900.XjSD5CVJ-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/cpuidle/cpuidle-riscv-sbi.c: In function 'sbi_idle_init_cpuhp':
>> drivers/cpuidle/cpuidle-riscv-sbi.c:194:15: error: implicit declaration of function 'cpuhp_setup_state_nocalls' [-Werror=implicit-function-declaration]
     194 |         err = cpuhp_setup_state_nocalls(CPUHP_AP_CPU_PM_STARTING,
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/cpuidle/cpuidle-riscv-sbi.c:194:41: error: 'CPUHP_AP_CPU_PM_STARTING' undeclared (first use in this function)
     194 |         err = cpuhp_setup_state_nocalls(CPUHP_AP_CPU_PM_STARTING,
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/cpuidle/cpuidle-riscv-sbi.c:194:41: note: each undeclared identifier is reported only once for each function it appears in
   cc1: some warnings being treated as errors


vim +/cpuhp_setup_state_nocalls +194 drivers/cpuidle/cpuidle-riscv-sbi.c

6abf32f1d9c500 Anup Patel 2022-02-10  186  
6abf32f1d9c500 Anup Patel 2022-02-10  187  static void sbi_idle_init_cpuhp(void)
6abf32f1d9c500 Anup Patel 2022-02-10  188  {
6abf32f1d9c500 Anup Patel 2022-02-10  189  	int err;
6abf32f1d9c500 Anup Patel 2022-02-10  190  
6abf32f1d9c500 Anup Patel 2022-02-10  191  	if (!sbi_cpuidle_use_cpuhp)
6abf32f1d9c500 Anup Patel 2022-02-10  192  		return;
6abf32f1d9c500 Anup Patel 2022-02-10  193  
6abf32f1d9c500 Anup Patel 2022-02-10 @194  	err = cpuhp_setup_state_nocalls(CPUHP_AP_CPU_PM_STARTING,
6abf32f1d9c500 Anup Patel 2022-02-10  195  					"cpuidle/sbi:online",
6abf32f1d9c500 Anup Patel 2022-02-10  196  					sbi_cpuidle_cpuhp_up,
6abf32f1d9c500 Anup Patel 2022-02-10  197  					sbi_cpuidle_cpuhp_down);
6abf32f1d9c500 Anup Patel 2022-02-10  198  	if (err)
6abf32f1d9c500 Anup Patel 2022-02-10  199  		pr_warn("Failed %d while setup cpuhp state\n", err);
6abf32f1d9c500 Anup Patel 2022-02-10  200  }
6abf32f1d9c500 Anup Patel 2022-02-10  201  

:::::: The code at line 194 was first introduced by commit
:::::: 6abf32f1d9c5009dcccded2c1e7ca899a4ab587b cpuidle: Add RISC-V SBI CPU idle driver

:::::: TO: Anup Patel <anup.patel@wdc.com>
:::::: CC: Palmer Dabbelt <palmer@rivosinc.com>

-- 
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-12  1:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-12  1:17 [robh:dt/test 15/18] drivers/cpuidle/cpuidle-riscv-sbi.c:194:15: error: implicit declaration of function 'cpuhp_setup_state_nocalls' 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;
as well as URLs for NNTP newsgroup(s).