From: kernel test robot <lkp@intel.com>
To: Sunil V L <sunilvl@ventanamicro.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Anup Patel <anup@brainfault.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'
Date: Sat, 27 Aug 2022 06:14:16 +0800 [thread overview]
Message-ID: <202208270656.LqZSOs76-lkp@intel.com> (raw)
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
reply other threads:[~2022-08-26 22:14 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=202208270656.LqZSOs76-lkp@intel.com \
--to=lkp@intel.com \
--cc=anup@brainfault.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sunilvl@ventanamicro.com \
/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