public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* Re: [RFC] sched: Improving scheduler debugging/tracing interfaces
       [not found] <20250402122607.2982523-1-luis.machado@arm.com>
@ 2025-04-02 15:37 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-02 15:37 UTC (permalink / raw)
  To: Luis Machado; +Cc: llvm, oe-kbuild-all

Hi Luis,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:

[auto build test ERROR on 328802738e1cd091d04076317f3c2174125c5916]

url:    https://github.com/intel-lab-lkp/linux/commits/Luis-Machado/sched-Improving-scheduler-debugging-tracing-interfaces/20250402-203041
base:   328802738e1cd091d04076317f3c2174125c5916
patch link:    https://lore.kernel.org/r/20250402122607.2982523-1-luis.machado%40arm.com
patch subject: [RFC] sched: Improving scheduler debugging/tracing interfaces
config: hexagon-randconfig-001-20250402 (https://download.01.org/0day-ci/archive/20250402/202504022329.cc8TsKhN-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 7eccafc3c84606587a175c0a8c1ebea6e4fb21cd)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250402/202504022329.cc8TsKhN-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504022329.cc8TsKhN-lkp@intel.com/

All errors (new ones prefixed by >>):

>> kernel/sched/core.c:104:26: error: no member named 'avg' in 'struct cfs_rq'
     104 |         return cfs_rq ? cfs_rq->avg.util_est: 0;
         |                         ~~~~~~  ^
   kernel/sched/core.c:110:18: error: no member named 'avg' in 'struct sched_entity'
     110 |         return se ? se->avg.util_est & ~UTIL_AVG_UNCHANGED : 0;
         |                     ~~  ^
>> kernel/sched/core.c:118:55: error: no member named 'cpu' in 'struct rq'
     118 |         unsigned long capacity_orig = per_cpu(cpu_scale, rq->cpu);
         |                                                          ~~  ^
   include/linux/percpu-defs.h:272:49: note: expanded from macro 'per_cpu'
     272 | #define per_cpu(var, cpu)       (*per_cpu_ptr(&(var), cpu))
         |                                                       ^~~
   include/linux/percpu-defs.h:262:9: note: expanded from macro 'per_cpu_ptr'
     262 |         (void)(cpu);                                                    \
         |                ^~~
   kernel/sched/core.c:119:58: error: no member named 'cpu' in 'struct rq'
     119 |         unsigned long scale_freq = per_cpu(arch_freq_scale, rq->cpu);
         |                                                             ~~  ^
   include/linux/percpu-defs.h:272:49: note: expanded from macro 'per_cpu'
     272 | #define per_cpu(var, cpu)       (*per_cpu_ptr(&(var), cpu))
         |                                                       ^~~
   include/linux/percpu-defs.h:262:9: note: expanded from macro 'per_cpu_ptr'
     262 |         (void)(cpu);                                                    \
         |                ^~~
   kernel/sched/core.c:7707:12: warning: array index -1 is before the beginning of the array [-Warray-bounds]
    7707 |                                        preempt_modes[preempt_dynamic_mode] : "undef",
         |                                        ^             ~~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:7682:1: note: array 'preempt_modes' declared here
    7682 | const char *preempt_modes[] = {
         | ^
   1 warning and 4 errors generated.


vim +104 kernel/sched/core.c

   101	
   102	static unsigned int cfs_rq_util_est(struct cfs_rq *cfs_rq)
   103	{
 > 104		return cfs_rq ? cfs_rq->avg.util_est: 0;
   105	}
   106	
   107	static unsigned int se_util_est(struct sched_entity *se)
   108	{
   109	
   110		return se ? se->avg.util_est & ~UTIL_AVG_UNCHANGED : 0;
   111	}
   112	
   113	static unsigned long rq_cpu_current_capacity(struct rq *rq)
   114	{
   115		if (rq == NULL)
   116			return 0;
   117	
 > 118		unsigned long capacity_orig = per_cpu(cpu_scale, rq->cpu);
   119		unsigned long scale_freq = per_cpu(arch_freq_scale, rq->cpu);
   120		return cap_scale(capacity_orig, scale_freq);
   121	}
   122	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2025-04-02 15:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20250402122607.2982523-1-luis.machado@arm.com>
2025-04-02 15:37 ` [RFC] sched: Improving scheduler debugging/tracing interfaces kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox