All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android12-5.10 3217/3240] kernel/smp.c:957:7: error: 's2idle_state' undeclared; did you mean
@ 2021-01-14 13:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-14 13:11 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://android.googlesource.com/kernel/common android12-5.10
head:   43edfc892e926ffa364f591dea27729ff4a60f3d
commit: 5ada76d0563798c02c4217d61d85cfacc1279a7a [3217/3240] ANDROID: sched/pause: prevent wake up paused cpus
config: i386-randconfig-r032-20210114 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        git remote add android-common https://android.googlesource.com/kernel/common
        git fetch --no-tags android-common android12-5.10
        git checkout 5ada76d0563798c02c4217d61d85cfacc1279a7a
        # 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 >>):

   kernel/smp.c:444:6: warning: no previous prototype for 'flush_smp_call_function_from_idle' [-Wmissing-prototypes]
     444 | void flush_smp_call_function_from_idle(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/smp.c: In function 'wake_up_all_idle_cpus':
>> kernel/smp.c:957:7: error: 's2idle_state' undeclared (first use in this function); did you mean 's2idle_wake'?
     957 |   if (s2idle_state == S2IDLE_STATE_ENTER || cpu_active(cpu))
         |       ^~~~~~~~~~~~
         |       s2idle_wake
   kernel/smp.c:957:7: note: each undeclared identifier is reported only once for each function it appears in
>> kernel/smp.c:957:23: error: 'S2IDLE_STATE_ENTER' undeclared (first use in this function)
     957 |   if (s2idle_state == S2IDLE_STATE_ENTER || cpu_active(cpu))
         |                       ^~~~~~~~~~~~~~~~~~


vim +957 kernel/smp.c

   941	
   942	/**
   943	 * wake_up_all_idle_cpus - break all cpus out of idle
   944	 * wake_up_all_idle_cpus try to break all cpus which is in idle state even
   945	 * including idle polling cpus, for non-idle cpus, we will do nothing
   946	 * for them.
   947	 */
   948	void wake_up_all_idle_cpus(void)
   949	{
   950		int cpu;
   951	
   952		preempt_disable();
   953		for_each_online_cpu(cpu) {
   954			if (cpu == smp_processor_id())
   955				continue;
   956	
 > 957			if (s2idle_state == S2IDLE_STATE_ENTER || cpu_active(cpu))
   958				wake_up_if_idle(cpu);
   959		}
   960		preempt_enable();
   961	}
   962	EXPORT_SYMBOL_GPL(wake_up_all_idle_cpus);
   963	

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

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

only message in thread, other threads:[~2021-01-14 13:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14 13:11 [android-common:android12-5.10 3217/3240] kernel/smp.c:957:7: error: 's2idle_state' undeclared; did you mean 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.