All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 1252/1572] kernel/sched/ext.c:3220:20: error: 'scx_cgroup_rwsem' undeclared; did you mean 'scx_cgroup_ops_rwsem'?
@ 2025-10-14 20:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-10-14 20:55 UTC (permalink / raw)
  To: zhidao su; +Cc: oe-kbuild-all, Tejun Heo

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   13863a59e410cab46d26751941980dc8f088b9b3
commit: d579dc6eb4fd03c43622cf94ccc8d8b508c6d6ff [1252/1572] sched/ext: Implement cgroup_set_idle() callback
config: parisc-randconfig-002-20251015 (https://download.01.org/0day-ci/archive/20251015/202510150406.kosHadG1-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251015/202510150406.kosHadG1-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/202510150406.kosHadG1-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from kernel/sched/build_policy.c:62:
   kernel/sched/ext.c: In function 'scx_group_set_idle':
>> kernel/sched/ext.c:3220:20: error: 'scx_cgroup_rwsem' undeclared (first use in this function); did you mean 'scx_cgroup_ops_rwsem'?
     percpu_down_read(&scx_cgroup_rwsem);
                       ^~~~~~~~~~~~~~~~
                       scx_cgroup_ops_rwsem
   kernel/sched/ext.c:3220:20: note: each undeclared identifier is reported only once for each function it appears in
   kernel/sched/ext.c: In function 'scx_vexit':
   kernel/sched/ext.c:4411:2: warning: function 'scx_vexit' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
     vscnprintf(ei->msg, SCX_EXIT_MSG_LEN, fmt, args);
     ^~~~~~~~~~
   In file included from kernel/sched/build_policy.c:62:
   kernel/sched/ext.c: In function '__bstr_format':
   kernel/sched/ext.c:6324:6: warning: function '__bstr_format' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
         bprintf_data.bin_args);
         ^~~~~~~~~~~~


vim +3220 kernel/sched/ext.c

  3215	
  3216	void scx_group_set_idle(struct task_group *tg, bool idle)
  3217	{
  3218		struct scx_sched *sch = scx_root;
  3219	
> 3220		percpu_down_read(&scx_cgroup_rwsem);
  3221	
  3222		if (scx_cgroup_enabled && SCX_HAS_OP(sch, cgroup_set_idle))
  3223			SCX_CALL_OP(sch, SCX_KF_UNLOCKED, cgroup_set_idle, NULL,
  3224				    tg_cgrp(tg), idle);
  3225	
  3226		/* Update the task group's idle state */
  3227		tg->scx.idle = idle;
  3228	
  3229		percpu_up_read(&scx_cgroup_rwsem);
  3230	}
  3231	

-- 
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-10-14 20:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-14 20:55 [linux-next:master 1252/1572] kernel/sched/ext.c:3220:20: error: 'scx_cgroup_rwsem' undeclared; did you mean 'scx_cgroup_ops_rwsem'? 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.