All of lore.kernel.org
 help / color / mirror / Atom feed
* [pm:bleeding-edge 47/48] drivers/acpi/processor_idle.c:548:7: error: implicit declaration of function 'wakeup_cpu0'
@ 2021-03-30  0:03 ` kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-03-30  0:03 UTC (permalink / raw)
  To: Vitaly Kuznetsov
  Cc: kbuild-all, clang-built-linux, linux-acpi, devel, linux-pm,
	Rafael J. Wysocki

[-- Attachment #1: Type: text/plain, Size: 3741 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   a70fdf61936ab0200d31bebea4b44bb67454ce07
commit: 5f5e49e999acd8556e694e841d63226d21e409d9 [47/48] ACPI: processor: Fix CPU0 wakeup in acpi_idle_play_dead()
config: x86_64-randconfig-a013-20210329 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 2a28d1d3b7bf2062288b46af34e33ccc543a99fa)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=5f5e49e999acd8556e694e841d63226d21e409d9
        git remote add pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
        git fetch --no-tags pm bleeding-edge
        git checkout 5f5e49e999acd8556e694e841d63226d21e409d9
        # 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:548:7: error: implicit declaration of function 'wakeup_cpu0' [-Werror,-Wimplicit-function-declaration]
                   if (wakeup_cpu0())
                       ^
>> drivers/acpi/processor_idle.c:549:4: error: implicit declaration of function 'start_cpu0' [-Werror,-Wimplicit-function-declaration]
                           start_cpu0();
                           ^
   drivers/acpi/processor_idle.c:1103: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:1103: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:1108: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:1108: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 +/wakeup_cpu0 +548 drivers/acpi/processor_idle.c

   524	
   525	/**
   526	 * acpi_idle_play_dead - enters an ACPI state for long-term idle (i.e. off-lining)
   527	 * @dev: the target CPU
   528	 * @index: the index of suggested state
   529	 */
   530	static int acpi_idle_play_dead(struct cpuidle_device *dev, int index)
   531	{
   532		struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu);
   533	
   534		ACPI_FLUSH_CPU_CACHE();
   535	
   536		while (1) {
   537	
   538			if (cx->entry_method == ACPI_CSTATE_HALT)
   539				safe_halt();
   540			else if (cx->entry_method == ACPI_CSTATE_SYSTEMIO) {
   541				inb(cx->address);
   542				wait_for_freeze();
   543			} else
   544				return -ENODEV;
   545	
   546	#ifdef CONFIG_X86
   547			/* If NMI wants to wake up CPU0, start CPU0. */
 > 548			if (wakeup_cpu0())
 > 549				start_cpu0();
   550	#endif
   551		}
   552	
   553		/* Never reached */
   554		return 0;
   555	}
   556	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38059 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [pm:bleeding-edge 47/48] drivers/acpi/processor_idle.c:548:7: error: implicit declaration of function 'wakeup_cpu0'
@ 2021-03-30  0:03 ` kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-03-30  0:03 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3827 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   a70fdf61936ab0200d31bebea4b44bb67454ce07
commit: 5f5e49e999acd8556e694e841d63226d21e409d9 [47/48] ACPI: processor: Fix CPU0 wakeup in acpi_idle_play_dead()
config: x86_64-randconfig-a013-20210329 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 2a28d1d3b7bf2062288b46af34e33ccc543a99fa)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=5f5e49e999acd8556e694e841d63226d21e409d9
        git remote add pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
        git fetch --no-tags pm bleeding-edge
        git checkout 5f5e49e999acd8556e694e841d63226d21e409d9
        # 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:548:7: error: implicit declaration of function 'wakeup_cpu0' [-Werror,-Wimplicit-function-declaration]
                   if (wakeup_cpu0())
                       ^
>> drivers/acpi/processor_idle.c:549:4: error: implicit declaration of function 'start_cpu0' [-Werror,-Wimplicit-function-declaration]
                           start_cpu0();
                           ^
   drivers/acpi/processor_idle.c:1103: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:1103: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:1108: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:1108: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 +/wakeup_cpu0 +548 drivers/acpi/processor_idle.c

   524	
   525	/**
   526	 * acpi_idle_play_dead - enters an ACPI state for long-term idle (i.e. off-lining)
   527	 * @dev: the target CPU
   528	 * @index: the index of suggested state
   529	 */
   530	static int acpi_idle_play_dead(struct cpuidle_device *dev, int index)
   531	{
   532		struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu);
   533	
   534		ACPI_FLUSH_CPU_CACHE();
   535	
   536		while (1) {
   537	
   538			if (cx->entry_method == ACPI_CSTATE_HALT)
   539				safe_halt();
   540			else if (cx->entry_method == ACPI_CSTATE_SYSTEMIO) {
   541				inb(cx->address);
   542				wait_for_freeze();
   543			} else
   544				return -ENODEV;
   545	
   546	#ifdef CONFIG_X86
   547			/* If NMI wants to wake up CPU0, start CPU0. */
 > 548			if (wakeup_cpu0())
 > 549				start_cpu0();
   550	#endif
   551		}
   552	
   553		/* Never reached */
   554		return 0;
   555	}
   556	

---
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: 38059 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Devel] [pm:bleeding-edge 47/48] drivers/acpi/processor_idle.c:548:7: error: implicit declaration of function 'wakeup_cpu0'
@ 2021-03-30  0:03 ` kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-03-30  0:03 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 3829 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   a70fdf61936ab0200d31bebea4b44bb67454ce07
commit: 5f5e49e999acd8556e694e841d63226d21e409d9 [47/48] ACPI: processor: Fix CPU0 wakeup in acpi_idle_play_dead()
config: x86_64-randconfig-a013-20210329 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 2a28d1d3b7bf2062288b46af34e33ccc543a99fa)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=5f5e49e999acd8556e694e841d63226d21e409d9
        git remote add pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
        git fetch --no-tags pm bleeding-edge
        git checkout 5f5e49e999acd8556e694e841d63226d21e409d9
        # 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(a)intel.com>

All errors (new ones prefixed by >>):

>> drivers/acpi/processor_idle.c:548:7: error: implicit declaration of function 'wakeup_cpu0' [-Werror,-Wimplicit-function-declaration]
                   if (wakeup_cpu0())
                       ^
>> drivers/acpi/processor_idle.c:549:4: error: implicit declaration of function 'start_cpu0' [-Werror,-Wimplicit-function-declaration]
                           start_cpu0();
                           ^
   drivers/acpi/processor_idle.c:1103: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:1103: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:1108: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:1108: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 +/wakeup_cpu0 +548 drivers/acpi/processor_idle.c

   524	
   525	/**
   526	 * acpi_idle_play_dead - enters an ACPI state for long-term idle (i.e. off-lining)
   527	 * @dev: the target CPU
   528	 * @index: the index of suggested state
   529	 */
   530	static int acpi_idle_play_dead(struct cpuidle_device *dev, int index)
   531	{
   532		struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu);
   533	
   534		ACPI_FLUSH_CPU_CACHE();
   535	
   536		while (1) {
   537	
   538			if (cx->entry_method == ACPI_CSTATE_HALT)
   539				safe_halt();
   540			else if (cx->entry_method == ACPI_CSTATE_SYSTEMIO) {
   541				inb(cx->address);
   542				wait_for_freeze();
   543			} else
   544				return -ENODEV;
   545	
   546	#ifdef CONFIG_X86
   547			/* If NMI wants to wake up CPU0, start CPU0. */
 > 548			if (wakeup_cpu0())
 > 549				start_cpu0();
   550	#endif
   551		}
   552	
   553		/* Never reached */
   554		return 0;
   555	}
   556	

---
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: 38059 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [pm:bleeding-edge 47/48] drivers/acpi/processor_idle.c:548:7: error: implicit declaration of function 'wakeup_cpu0'
  2021-03-30  0:03 ` kernel test robot
@ 2021-03-30  9:43   ` Vitaly Kuznetsov
  -1 siblings, 0 replies; 7+ messages in thread
From: Vitaly Kuznetsov @ 2021-03-30  9:43 UTC (permalink / raw)
  To: kernel test robot, Rafael J. Wysocki
  Cc: kbuild-all, clang-built-linux, linux-acpi, devel, linux-pm

kernel test robot <lkp@intel.com> writes:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
> head:   a70fdf61936ab0200d31bebea4b44bb67454ce07
> commit: 5f5e49e999acd8556e694e841d63226d21e409d9 [47/48] ACPI: processor: Fix CPU0 wakeup in acpi_idle_play_dead()
> config: x86_64-randconfig-a013-20210329 (attached as .config)
> compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 2a28d1d3b7bf2062288b46af34e33ccc543a99fa)
> 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
>         # https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=5f5e49e999acd8556e694e841d63226d21e409d9
>         git remote add pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
>         git fetch --no-tags pm bleeding-edge
>         git checkout 5f5e49e999acd8556e694e841d63226d21e409d9
>         # 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:548:7: error: implicit declaration of function 'wakeup_cpu0' [-Werror,-Wimplicit-function-declaration]
>                    if (wakeup_cpu0())
>                        ^

Sigh,

This one is under CONFIG_SMP in arch/x86/include/asm/smp.h

>>> drivers/acpi/processor_idle.c:549:4: error: implicit declaration of function 'start_cpu0' [-Werror,-Wimplicit-function-declaration]
>                            start_cpu0();

This one is under CONFIG_HOTPLUG_CPU0 (which obviously depends on
CONFIG_SMP)

I think we can put the whole block under #ifdef CONFIG_HOTPLUG_CPU0 as
it makes zero sense otherwise. I'll send a follow-up patch.

>                            ^
>    drivers/acpi/processor_idle.c:1103: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:1103: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:1108: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:1108: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 +/wakeup_cpu0 +548 drivers/acpi/processor_idle.c
>
>    524	
>    525	/**
>    526	 * acpi_idle_play_dead - enters an ACPI state for long-term idle (i.e. off-lining)
>    527	 * @dev: the target CPU
>    528	 * @index: the index of suggested state
>    529	 */
>    530	static int acpi_idle_play_dead(struct cpuidle_device *dev, int index)
>    531	{
>    532		struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu);
>    533	
>    534		ACPI_FLUSH_CPU_CACHE();
>    535	
>    536		while (1) {
>    537	
>    538			if (cx->entry_method == ACPI_CSTATE_HALT)
>    539				safe_halt();
>    540			else if (cx->entry_method == ACPI_CSTATE_SYSTEMIO) {
>    541				inb(cx->address);
>    542				wait_for_freeze();
>    543			} else
>    544				return -ENODEV;
>    545	
>    546	#ifdef CONFIG_X86
>    547			/* If NMI wants to wake up CPU0, start CPU0. */
>  > 548			if (wakeup_cpu0())
>  > 549				start_cpu0();
>    550	#endif
>    551		}
>    552	
>    553		/* Never reached */
>    554		return 0;
>    555	}
>    556	
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

-- 
Vitaly


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [pm:bleeding-edge 47/48] drivers/acpi/processor_idle.c:548:7: error: implicit declaration of function 'wakeup_cpu0'
@ 2021-03-30  9:43   ` Vitaly Kuznetsov
  0 siblings, 0 replies; 7+ messages in thread
From: Vitaly Kuznetsov @ 2021-03-30  9:43 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4338 bytes --]

kernel test robot <lkp@intel.com> writes:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
> head:   a70fdf61936ab0200d31bebea4b44bb67454ce07
> commit: 5f5e49e999acd8556e694e841d63226d21e409d9 [47/48] ACPI: processor: Fix CPU0 wakeup in acpi_idle_play_dead()
> config: x86_64-randconfig-a013-20210329 (attached as .config)
> compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 2a28d1d3b7bf2062288b46af34e33ccc543a99fa)
> 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
>         # https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=5f5e49e999acd8556e694e841d63226d21e409d9
>         git remote add pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
>         git fetch --no-tags pm bleeding-edge
>         git checkout 5f5e49e999acd8556e694e841d63226d21e409d9
>         # 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:548:7: error: implicit declaration of function 'wakeup_cpu0' [-Werror,-Wimplicit-function-declaration]
>                    if (wakeup_cpu0())
>                        ^

Sigh,

This one is under CONFIG_SMP in arch/x86/include/asm/smp.h

>>> drivers/acpi/processor_idle.c:549:4: error: implicit declaration of function 'start_cpu0' [-Werror,-Wimplicit-function-declaration]
>                            start_cpu0();

This one is under CONFIG_HOTPLUG_CPU0 (which obviously depends on
CONFIG_SMP)

I think we can put the whole block under #ifdef CONFIG_HOTPLUG_CPU0 as
it makes zero sense otherwise. I'll send a follow-up patch.

>                            ^
>    drivers/acpi/processor_idle.c:1103: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:1103: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:1108: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:1108: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 +/wakeup_cpu0 +548 drivers/acpi/processor_idle.c
>
>    524	
>    525	/**
>    526	 * acpi_idle_play_dead - enters an ACPI state for long-term idle (i.e. off-lining)
>    527	 * @dev: the target CPU
>    528	 * @index: the index of suggested state
>    529	 */
>    530	static int acpi_idle_play_dead(struct cpuidle_device *dev, int index)
>    531	{
>    532		struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu);
>    533	
>    534		ACPI_FLUSH_CPU_CACHE();
>    535	
>    536		while (1) {
>    537	
>    538			if (cx->entry_method == ACPI_CSTATE_HALT)
>    539				safe_halt();
>    540			else if (cx->entry_method == ACPI_CSTATE_SYSTEMIO) {
>    541				inb(cx->address);
>    542				wait_for_freeze();
>    543			} else
>    544				return -ENODEV;
>    545	
>    546	#ifdef CONFIG_X86
>    547			/* If NMI wants to wake up CPU0, start CPU0. */
>  > 548			if (wakeup_cpu0())
>  > 549				start_cpu0();
>    550	#endif
>    551		}
>    552	
>    553		/* Never reached */
>    554		return 0;
>    555	}
>    556	
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

-- 
Vitaly

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [pm:bleeding-edge 47/48] drivers/acpi/processor_idle.c:548:7: error: implicit declaration of function 'wakeup_cpu0'
@ 2021-03-29 21:45 ` kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-03-29 21:45 UTC (permalink / raw)
  To: Vitaly Kuznetsov
  Cc: kbuild-all, linux-acpi, devel, linux-pm, Rafael J. Wysocki

[-- Attachment #1: Type: text/plain, Size: 3137 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   a70fdf61936ab0200d31bebea4b44bb67454ce07
commit: 5f5e49e999acd8556e694e841d63226d21e409d9 [47/48] ACPI: processor: Fix CPU0 wakeup in acpi_idle_play_dead()
config: i386-randconfig-a014-20210329 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=5f5e49e999acd8556e694e841d63226d21e409d9
        git remote add pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
        git fetch --no-tags pm bleeding-edge
        git checkout 5f5e49e999acd8556e694e841d63226d21e409d9
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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: In function 'acpi_idle_play_dead':
>> drivers/acpi/processor_idle.c:548:7: error: implicit declaration of function 'wakeup_cpu0' [-Werror=implicit-function-declaration]
     548 |   if (wakeup_cpu0())
         |       ^~~~~~~~~~~
>> drivers/acpi/processor_idle.c:549:4: error: implicit declaration of function 'start_cpu0'; did you mean 'task_cpu'? [-Werror=implicit-function-declaration]
     549 |    start_cpu0();
         |    ^~~~~~~~~~
         |    task_cpu
   drivers/acpi/processor_idle.c: At top level:
   drivers/acpi/processor_idle.c:1103:12: warning: no previous prototype for 'acpi_processor_ffh_lpi_probe' [-Wmissing-prototypes]
    1103 | int __weak acpi_processor_ffh_lpi_probe(unsigned int cpu)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/acpi/processor_idle.c:1108:12: warning: no previous prototype for 'acpi_processor_ffh_lpi_enter' [-Wmissing-prototypes]
    1108 | int __weak acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/wakeup_cpu0 +548 drivers/acpi/processor_idle.c

   524	
   525	/**
   526	 * acpi_idle_play_dead - enters an ACPI state for long-term idle (i.e. off-lining)
   527	 * @dev: the target CPU
   528	 * @index: the index of suggested state
   529	 */
   530	static int acpi_idle_play_dead(struct cpuidle_device *dev, int index)
   531	{
   532		struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu);
   533	
   534		ACPI_FLUSH_CPU_CACHE();
   535	
   536		while (1) {
   537	
   538			if (cx->entry_method == ACPI_CSTATE_HALT)
   539				safe_halt();
   540			else if (cx->entry_method == ACPI_CSTATE_SYSTEMIO) {
   541				inb(cx->address);
   542				wait_for_freeze();
   543			} else
   544				return -ENODEV;
   545	
   546	#ifdef CONFIG_X86
   547			/* If NMI wants to wake up CPU0, start CPU0. */
 > 548			if (wakeup_cpu0())
 > 549				start_cpu0();
   550	#endif
   551		}
   552	
   553		/* Never reached */
   554		return 0;
   555	}
   556	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31921 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [pm:bleeding-edge 47/48] drivers/acpi/processor_idle.c:548:7: error: implicit declaration of function 'wakeup_cpu0'
@ 2021-03-29 21:45 ` kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-03-29 21:45 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3214 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   a70fdf61936ab0200d31bebea4b44bb67454ce07
commit: 5f5e49e999acd8556e694e841d63226d21e409d9 [47/48] ACPI: processor: Fix CPU0 wakeup in acpi_idle_play_dead()
config: i386-randconfig-a014-20210329 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=5f5e49e999acd8556e694e841d63226d21e409d9
        git remote add pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
        git fetch --no-tags pm bleeding-edge
        git checkout 5f5e49e999acd8556e694e841d63226d21e409d9
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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: In function 'acpi_idle_play_dead':
>> drivers/acpi/processor_idle.c:548:7: error: implicit declaration of function 'wakeup_cpu0' [-Werror=implicit-function-declaration]
     548 |   if (wakeup_cpu0())
         |       ^~~~~~~~~~~
>> drivers/acpi/processor_idle.c:549:4: error: implicit declaration of function 'start_cpu0'; did you mean 'task_cpu'? [-Werror=implicit-function-declaration]
     549 |    start_cpu0();
         |    ^~~~~~~~~~
         |    task_cpu
   drivers/acpi/processor_idle.c: At top level:
   drivers/acpi/processor_idle.c:1103:12: warning: no previous prototype for 'acpi_processor_ffh_lpi_probe' [-Wmissing-prototypes]
    1103 | int __weak acpi_processor_ffh_lpi_probe(unsigned int cpu)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/acpi/processor_idle.c:1108:12: warning: no previous prototype for 'acpi_processor_ffh_lpi_enter' [-Wmissing-prototypes]
    1108 | int __weak acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/wakeup_cpu0 +548 drivers/acpi/processor_idle.c

   524	
   525	/**
   526	 * acpi_idle_play_dead - enters an ACPI state for long-term idle (i.e. off-lining)
   527	 * @dev: the target CPU
   528	 * @index: the index of suggested state
   529	 */
   530	static int acpi_idle_play_dead(struct cpuidle_device *dev, int index)
   531	{
   532		struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu);
   533	
   534		ACPI_FLUSH_CPU_CACHE();
   535	
   536		while (1) {
   537	
   538			if (cx->entry_method == ACPI_CSTATE_HALT)
   539				safe_halt();
   540			else if (cx->entry_method == ACPI_CSTATE_SYSTEMIO) {
   541				inb(cx->address);
   542				wait_for_freeze();
   543			} else
   544				return -ENODEV;
   545	
   546	#ifdef CONFIG_X86
   547			/* If NMI wants to wake up CPU0, start CPU0. */
 > 548			if (wakeup_cpu0())
 > 549				start_cpu0();
   550	#endif
   551		}
   552	
   553		/* Never reached */
   554		return 0;
   555	}
   556	

---
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: 31921 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-03-30  9:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-30  0:03 [pm:bleeding-edge 47/48] drivers/acpi/processor_idle.c:548:7: error: implicit declaration of function 'wakeup_cpu0' kernel test robot
2021-03-30  0:03 ` [Devel] " kernel test robot
2021-03-30  0:03 ` kernel test robot
2021-03-30  9:43 ` Vitaly Kuznetsov
2021-03-30  9:43   ` Vitaly Kuznetsov
  -- strict thread matches above, loose matches on Subject: below --
2021-03-29 21:45 kernel test robot
2021-03-29 21:45 ` 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.