All of lore.kernel.org
 help / color / mirror / Atom feed
* [mel:sched-sisoptimise-v1r13 13/17] kernel/sched/fair.c:5983:15: error: use of undeclared identifier 'SIS_IDLE_AVAILABLE'
@ 2020-03-04  0:24 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-03-04  0:24 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git sched-sisoptimise-v1r13
head:   29c923785d2d841e56ede88add8125edb98780a1
commit: b78fe901aa5f4c38357108ef750eefae8e15e1bc [13/17] sched/fair: Cache the value of a core that recently went idle
config: x86_64-defconfig (attached as .config)
compiler: clang version 11.0.0 (git://gitmirror/llvm_project 211fb91f1067ecdf7c0b8a019bcf76554d813129)
reproduce:
        # FIXME the reproduce steps for clang is not ready yet

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> kernel/sched/fair.c:5983:15: error: use of undeclared identifier 'SIS_IDLE_AVAILABLE'
                   if (core == SIS_IDLE_AVAILABLE)
                               ^
   kernel/sched/fair.c:5987:38: error: use of undeclared identifier 'SIS_IDLE_AVAILABLE'
                           WRITE_ONCE(sds->recent_idle_core, SIS_IDLE_AVAILABLE);
                                                             ^
>> kernel/sched/fair.c:6008:36: error: use of undeclared identifier 'SIS_IDLE_UNAVAILABLE'; did you mean 'SKB_FCLONE_UNAVAILABLE'?
           if (get_idle_cores(core, core) != SIS_IDLE_UNAVAILABLE)
                                             ^~~~~~~~~~~~~~~~~~~~
                                             SKB_FCLONE_UNAVAILABLE
   include/linux/skbuff.h:552:2: note: 'SKB_FCLONE_UNAVAILABLE' declared here
           SKB_FCLONE_UNAVAILABLE, /* skb has no fclone (from head_cache) */
           ^
   kernel/sched/fair.c:6040:14: error: use of undeclared identifier 'SIS_IDLE_UNAVAILABLE'; did you mean 'SKB_FCLONE_UNAVAILABLE'?
           if (core == SIS_IDLE_UNAVAILABLE)
                       ^~~~~~~~~~~~~~~~~~~~
                       SKB_FCLONE_UNAVAILABLE
   include/linux/skbuff.h:552:2: note: 'SKB_FCLONE_UNAVAILABLE' declared here
           SKB_FCLONE_UNAVAILABLE, /* skb has no fclone (from head_cache) */
           ^
   kernel/sched/fair.c:6054:14: error: use of undeclared identifier 'SIS_IDLE_AVAILABLE'
           if (core == SIS_IDLE_AVAILABLE)
                       ^
   kernel/sched/fair.c:6082:25: error: use of undeclared identifier 'SIS_IDLE_UNAVAILABLE'; did you mean 'SKB_FCLONE_UNAVAILABLE'?
           set_idle_cores(target, SIS_IDLE_UNAVAILABLE);
                                  ^~~~~~~~~~~~~~~~~~~~
                                  SKB_FCLONE_UNAVAILABLE
   include/linux/skbuff.h:552:2: note: 'SKB_FCLONE_UNAVAILABLE' declared here
           SKB_FCLONE_UNAVAILABLE, /* skb has no fclone (from head_cache) */
           ^
   6 errors generated.

vim +/SIS_IDLE_AVAILABLE +5983 kernel/sched/fair.c

  5974	
  5975	static inline int get_idle_cores(int cpu, int def)
  5976	{
  5977		struct sched_domain_shared *sds;
  5978	
  5979		sds = rcu_dereference(per_cpu(sd_llc_shared, cpu));
  5980		if (sds) {
  5981			int core = READ_ONCE(sds->recent_idle_core);
  5982	
> 5983			if (core == SIS_IDLE_AVAILABLE)
  5984				return cpu;
  5985	
  5986			if (core >= 0)
  5987				WRITE_ONCE(sds->recent_idle_core, SIS_IDLE_AVAILABLE);
  5988	
  5989			return core;
  5990		}
  5991	
  5992		return def;
  5993	}
  5994	
  5995	/*
  5996	 * Scans the local SMT mask to see if the entire core is idle, and records this
  5997	 * information in sd_llc_shared->recent_idle_core.
  5998	 *
  5999	 * Since SMT siblings share all cache levels, inspecting this limited remote
  6000	 * state should be fairly cheap.
  6001	 */
  6002	void __update_idle_core(struct rq *rq)
  6003	{
  6004		int core = cpu_of(rq);
  6005		int cpu;
  6006	
  6007		rcu_read_lock();
> 6008		if (get_idle_cores(core, core) != SIS_IDLE_UNAVAILABLE)
  6009			goto unlock;
  6010	
  6011		for_each_cpu(cpu, cpu_smt_mask(core)) {
  6012			if (cpu == core)
  6013				continue;
  6014	
  6015			if (!available_idle_cpu(cpu))
  6016				goto unlock;
  6017		}
  6018	
  6019		set_idle_cores(core, core);
  6020	unlock:
  6021		rcu_read_unlock();
  6022	}
  6023	

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

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

only message in thread, other threads:[~2020-03-04  0:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-04  0:24 [mel:sched-sisoptimise-v1r13 13/17] kernel/sched/fair.c:5983:15: error: use of undeclared identifier 'SIS_IDLE_AVAILABLE' kbuild 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.