public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [avpatel:riscv_pmem_v1 76/78] arch/riscv/kernel/cpuidle.c:40:5: warning: no previous prototype for 'acpi_processor_ffh_lpi_probe'
@ 2022-08-26 22:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-08-26 22:14 UTC (permalink / raw)
  To: Sunil V L; +Cc: kbuild-all, linux-kernel, Anup Patel

Hi Sunil,

First bad commit (maybe != root cause):

tree:   https://github.com/avpatel/linux.git riscv_pmem_v1
head:   abd658639cf42f64e3b2cfe9f646ffeedb8e54d0
commit: f3915b6afe3a8394a8bc250074dc0da940f789d6 [76/78] RISC-V: ACPI: Enable ACPI LPI driver
config: riscv-allmodconfig (https://download.01.org/0day-ci/archive/20220827/202208270656.LqZSOs76-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://github.com/avpatel/linux/commit/f3915b6afe3a8394a8bc250074dc0da940f789d6
        git remote add avpatel https://github.com/avpatel/linux.git
        git fetch --no-tags avpatel riscv_pmem_v1
        git checkout f3915b6afe3a8394a8bc250074dc0da940f789d6
        # 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 SHELL=/bin/bash arch/riscv/kernel/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> arch/riscv/kernel/cpuidle.c:40:5: warning: no previous prototype for 'acpi_processor_ffh_lpi_probe' [-Wmissing-prototypes]
      40 | int acpi_processor_ffh_lpi_probe(unsigned int cpu)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/riscv/kernel/cpuidle.c:45:5: warning: no previous prototype for 'acpi_processor_ffh_lpi_enter' [-Wmissing-prototypes]
      45 | int acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/acpi_processor_ffh_lpi_probe +40 arch/riscv/kernel/cpuidle.c

d7aa2311ae6001 Sunil V L 2022-07-16  39  
d7aa2311ae6001 Sunil V L 2022-07-16 @40  int acpi_processor_ffh_lpi_probe(unsigned int cpu)
d7aa2311ae6001 Sunil V L 2022-07-16  41  {
d7aa2311ae6001 Sunil V L 2022-07-16  42  	return acpi_cpu_init_idle(cpu);
d7aa2311ae6001 Sunil V L 2022-07-16  43  }
d7aa2311ae6001 Sunil V L 2022-07-16  44  
d7aa2311ae6001 Sunil V L 2022-07-16 @45  int acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi)
d7aa2311ae6001 Sunil V L 2022-07-16  46  {
d7aa2311ae6001 Sunil V L 2022-07-16  47  	u32 state = lpi->address;
d7aa2311ae6001 Sunil V L 2022-07-16  48  
d7aa2311ae6001 Sunil V L 2022-07-16  49  	if (state & SBI_HSM_SUSP_NON_RET_BIT)
d7aa2311ae6001 Sunil V L 2022-07-16  50  		return CPU_PM_CPU_IDLE_ENTER_PARAM(sbi_suspend,
d7aa2311ae6001 Sunil V L 2022-07-16  51  						   lpi->index,
d7aa2311ae6001 Sunil V L 2022-07-16  52  						   state);
d7aa2311ae6001 Sunil V L 2022-07-16  53  	else
d7aa2311ae6001 Sunil V L 2022-07-16  54  		return CPU_PM_CPU_IDLE_ENTER_RETENTION_PARAM(sbi_suspend,
d7aa2311ae6001 Sunil V L 2022-07-16  55  							     lpi->index,
d7aa2311ae6001 Sunil V L 2022-07-16  56  							     state);
d7aa2311ae6001 Sunil V L 2022-07-16  57  }
d7aa2311ae6001 Sunil V L 2022-07-16  58  

:::::: The code at line 40 was first introduced by commit
:::::: d7aa2311ae60016c3ed214942d8dc2729a60c6fb RISC-V: ACPI: Add LPI driver

:::::: TO: Sunil V L <sunilvl@ventanamicro.com>
:::::: CC: Anup Patel <anup@brainfault.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-08-26 22:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-26 22:14 [avpatel:riscv_pmem_v1 76/78] arch/riscv/kernel/cpuidle.c:40:5: warning: no previous prototype for 'acpi_processor_ffh_lpi_probe' 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