All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Cheng Yu <serein.chengyu@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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'?
Date: Wed, 13 Nov 2024 00:27:04 +0800	[thread overview]
Message-ID: <202411130044.gkUMo98D-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-11-12 16:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202411130044.gkUMo98D-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kernel@openeuler.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=serein.chengyu@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.