* [linux-next:master 12562/13260] drivers/acpi/processor_idle.c:667:4: error: non-void function 'acpi_idle_enter_s2idle' should return a value
@ 2020-07-31 16:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-31 16:00 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4555 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 01830e6c042e8eb6eb202e05d7df8057135b4c26
commit: efe9711214e6138a5a2a46ca4068bfce50c03444 [12562/13260] cpuidle: change enter_s2idle() prototype
config: x86_64-randconfig-a001-20200731 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c23ae3f18ee3ff11671f4c62ffc66d150b1bcdc2)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout efe9711214e6138a5a2a46ca4068bfce50c03444
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/acpi/processor_idle.c:667:4: error: non-void function 'acpi_idle_enter_s2idle' should return a value [-Wreturn-type]
return;
^
drivers/acpi/processor_idle.c:671:4: error: non-void function 'acpi_idle_enter_s2idle' should return a value [-Wreturn-type]
return;
^
drivers/acpi/processor_idle.c:1085:12: warning: no previous prototype for function 'acpi_processor_ffh_lpi_probe' [-Wmissing-prototypes]
int __weak acpi_processor_ffh_lpi_probe(unsigned int cpu)
^
drivers/acpi/processor_idle.c:1085:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __weak acpi_processor_ffh_lpi_probe(unsigned int cpu)
^
static
drivers/acpi/processor_idle.c:1090:12: warning: no previous prototype for function 'acpi_processor_ffh_lpi_enter' [-Wmissing-prototypes]
int __weak acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi)
^
drivers/acpi/processor_idle.c:1090:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __weak acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi)
^
static
2 warnings and 2 errors generated.
vim +/acpi_idle_enter_s2idle +667 drivers/acpi/processor_idle.c
4f86d3a8e29720 Len Brown 2007-10-03 657
efe9711214e613 Neal Liu 2020-07-27 658 static int acpi_idle_enter_s2idle(struct cpuidle_device *dev,
5f5081852038d9 Rafael J. Wysocki 2015-02-11 659 struct cpuidle_driver *drv, int index)
5f5081852038d9 Rafael J. Wysocki 2015-02-11 660 {
5f5081852038d9 Rafael J. Wysocki 2015-02-11 661 struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu);
5f5081852038d9 Rafael J. Wysocki 2015-02-11 662
5f5081852038d9 Rafael J. Wysocki 2015-02-11 663 if (cx->type == ACPI_STATE_C3) {
5f5081852038d9 Rafael J. Wysocki 2015-02-11 664 struct acpi_processor *pr = __this_cpu_read(processors);
5f5081852038d9 Rafael J. Wysocki 2015-02-11 665
5f5081852038d9 Rafael J. Wysocki 2015-02-11 666 if (unlikely(!pr))
5f5081852038d9 Rafael J. Wysocki 2015-02-11 @667 return;
5f5081852038d9 Rafael J. Wysocki 2015-02-11 668
5f5081852038d9 Rafael J. Wysocki 2015-02-11 669 if (pr->flags.bm_check) {
5f5081852038d9 Rafael J. Wysocki 2015-02-11 670 acpi_idle_enter_bm(pr, cx, false);
5f5081852038d9 Rafael J. Wysocki 2015-02-11 671 return;
5f5081852038d9 Rafael J. Wysocki 2015-02-11 672 } else {
5f5081852038d9 Rafael J. Wysocki 2015-02-11 673 ACPI_FLUSH_CPU_CACHE();
5f5081852038d9 Rafael J. Wysocki 2015-02-11 674 }
5f5081852038d9 Rafael J. Wysocki 2015-02-11 675 }
5f5081852038d9 Rafael J. Wysocki 2015-02-11 676 acpi_idle_do_entry(cx);
efe9711214e613 Neal Liu 2020-07-27 677
efe9711214e613 Neal Liu 2020-07-27 678 return 0;
5f5081852038d9 Rafael J. Wysocki 2015-02-11 679 }
5f5081852038d9 Rafael J. Wysocki 2015-02-11 680
:::::: The code at line 667 was first introduced by commit
:::::: 5f5081852038d9a7b309190730bfb724b413235e ACPI / idle: Implement ->enter_freeze callback routine
:::::: TO: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
:::::: CC: Rafael J. Wysocki <rjw@rjwysocki.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33144 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-31 16:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-31 16:00 [linux-next:master 12562/13260] drivers/acpi/processor_idle.c:667:4: error: non-void function 'acpi_idle_enter_s2idle' should return a value kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.