All of lore.kernel.org
 help / color / mirror / Atom feed
* [openeuler:OLK-5.10 2417/2417] kernel/sched/fair.c:4499:43: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
@ 2024-11-12 16:27 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-11-12 16:27 UTC (permalink / raw)
  To: kernel, Cheng Yu; +Cc: oe-kbuild-all

tree:   https://gitee.com/openeuler/kernel.git OLK-5.10
head:   400fd9ccb52e01bf78acae2bbc1710923a15f033
commit: 433c0b72564239cf3086f563d5ca32a10e4ffd3f [2417/2417] sched/fair: Count the number of tasks marked as steal_task on cfs_rq
config: x86_64-randconfig-015-20241112 (https://download.01.org/0day-ci/archive/20241113/202411130044.gkUMo98D-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241113/202411130044.gkUMo98D-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/202411130044.gkUMo98D-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from kernel/sched/fair.c:23:
   In file included from kernel/sched/sched.h:39:
   In file included from include/linux/blkdev.h:9:
   In file included from include/linux/genhd.h:20:
   In file included from include/linux/blk_types.h:11:
   In file included from include/linux/bvec.h:14:
   In file included from include/linux/mm.h:1587:
   include/linux/vmstat.h:417:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     417 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     418 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:424:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     424 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     425 |                            NR_VM_NUMA_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:431:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     431 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   include/linux/vmstat.h:436:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     436 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     437 |                            NR_VM_NUMA_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:445:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     445 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     446 |                            NR_VM_NUMA_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~
   In file included from kernel/sched/fair.c:23:
   kernel/sched/sched.h:1864:15: warning: cast from 'void (*)(struct rq *)' to 'void (*)(struct callback_head *)' converts to incompatible function type [-Wcast-function-type-strict]
    1864 |         head->func = (void (*)(struct callback_head *))func;
         |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/fair.c:4499:43: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
    4499 |             (rq->cfs.h_nr_running < 2 || rq->cfs.steal_h_nr_running == 0))
         |                                                  ^~~~~~~~~~~~~~~~~~
         |                                                  idle_h_nr_running
   kernel/sched/sched.h:632:16: note: 'idle_h_nr_running' declared here
     632 |         unsigned int            idle_h_nr_running; /* SCHED_IDLE */
         |                                 ^
   kernel/sched/fair.c:4525:36: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
    4525 |         if (group_steal_used() && rq->cfs.steal_h_nr_running < 1)
         |                                           ^~~~~~~~~~~~~~~~~~
         |                                           idle_h_nr_running
   kernel/sched/sched.h:632:16: note: 'idle_h_nr_running' declared here
     632 |         unsigned int            idle_h_nr_running; /* SCHED_IDLE */
         |                                 ^
   kernel/sched/fair.c:6670:12: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
    6670 |                         cfs_rq->steal_h_nr_running++;
         |                                 ^~~~~~~~~~~~~~~~~~
         |                                 idle_h_nr_running
   kernel/sched/sched.h:632:16: note: 'idle_h_nr_running' declared here
     632 |         unsigned int            idle_h_nr_running; /* SCHED_IDLE */
         |                                 ^
   kernel/sched/fair.c:6694:12: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
    6694 |                         cfs_rq->steal_h_nr_running++;
         |                                 ^~~~~~~~~~~~~~~~~~
         |                                 idle_h_nr_running
   kernel/sched/sched.h:632:16: note: 'idle_h_nr_running' declared here
     632 |         unsigned int            idle_h_nr_running; /* SCHED_IDLE */
         |                                 ^
   kernel/sched/fair.c:6795:12: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
    6795 |                         cfs_rq->steal_h_nr_running--;
         |                                 ^~~~~~~~~~~~~~~~~~
         |                                 idle_h_nr_running
   kernel/sched/sched.h:632:16: note: 'idle_h_nr_running' declared here
     632 |         unsigned int            idle_h_nr_running; /* SCHED_IDLE */
         |                                 ^
   kernel/sched/fair.c:6831:12: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
    6831 |                         cfs_rq->steal_h_nr_running--;
         |                                 ^~~~~~~~~~~~~~~~~~
         |                                 idle_h_nr_running
   kernel/sched/sched.h:632:16: note: 'idle_h_nr_running' declared here
     632 |         unsigned int            idle_h_nr_running; /* SCHED_IDLE */
         |                                 ^
   kernel/sched/fair.c:13229:29: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
    13229 |         if (tg_used && src_rq->cfs.steal_h_nr_running < 1)
          |                                    ^~~~~~~~~~~~~~~~~~
          |                                    idle_h_nr_running
   kernel/sched/sched.h:632:16: note: 'idle_h_nr_running' declared here
     632 |         unsigned int            idle_h_nr_running; /* SCHED_IDLE */
         |                                 ^
   kernel/sched/fair.c:13241:30: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
    13241 |             (tg_used && src_rq->cfs.steal_h_nr_running < 1))
          |                                     ^~~~~~~~~~~~~~~~~~
          |                                     idle_h_nr_running
   kernel/sched/sched.h:632:16: note: 'idle_h_nr_running' declared here
     632 |         unsigned int            idle_h_nr_running; /* SCHED_IDLE */
         |                                 ^
   kernel/sched/fair.c:13411:6: warning: no previous prototype for function 'task_vruntime_update' [-Wmissing-prototypes]
    13411 | void task_vruntime_update(struct rq *rq, struct task_struct *p, bool in_fi)
          |      ^
   kernel/sched/fair.c:13411:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    13411 | void task_vruntime_update(struct rq *rq, struct task_struct *p, bool in_fi)
          | ^
          | static 
   7 warnings and 8 errors generated.


vim +4499 kernel/sched/fair.c

  4485	
  4486	static void overload_clear(struct rq *rq)
  4487	{
  4488		struct sparsemask *overload_cpus;
  4489		unsigned long time;
  4490		bool need_clear = false;
  4491	
  4492		if (!steal_enabled())
  4493			return;
  4494	
  4495		if (!group_steal_used() && rq->cfs.h_nr_running >= 2)
  4496			return;
  4497	
  4498		if (group_steal_used() &&
> 4499		    (rq->cfs.h_nr_running < 2 || rq->cfs.steal_h_nr_running == 0))
  4500			need_clear = true;
  4501	
  4502		if (!need_clear)
  4503			return;
  4504	
  4505		time = schedstat_start_time();
  4506		rcu_read_lock();
  4507		overload_cpus = rcu_dereference(rq->cfs_overload_cpus);
  4508		if (overload_cpus)
  4509			sparsemask_clear_elem(overload_cpus, rq->cpu);
  4510		rcu_read_unlock();
  4511		schedstat_end_time(rq, time);
  4512	}
  4513	

-- 
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:[~2024-11-12 16:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-12 16:27 [openeuler:OLK-5.10 2417/2417] kernel/sched/fair.c:4499:43: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'? 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.