[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202208270656.LqZSOs76-lkp@intel.com>
Date: Sat, 27 Aug 2022 06:14:16 +0800
From: kernel test robot <lkp@...el.com>
To: Sunil V L <sunilvl@...tanamicro.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Anup Patel <anup@...infault.org>
Subject: [avpatel:riscv_pmem_v1 76/78] arch/riscv/kernel/cpuidle.c:40:5:
warning: no previous prototype for 'acpi_processor_ffh_lpi_probe'
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@...el.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@...tanamicro.com>
:::::: CC: Anup Patel <anup@...infault.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists