kernel/cgroup/cpuset-v1.c:163:9: error: implicit declaration of function 'cpus_read_lock'; did you mean 'rcu_read_lock'?
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git test head: a5ab7b05a3c825f23d74106f3304de7d024cff8a commit: dd46bd00ab4c00f6126794c6b52fbc87a2c5c389 [23/31] cgroup/cpuset: move relax_domain_level to cpuset-v1.c config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20240831/[email protected]/config) compiler: loongarch64-linux-gcc (GCC) 14.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240831/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
kernel/cgroup/cpuset-v1.c: In function 'cpuset_write_s64':
>> kernel/cgroup/cpuset-v1.c:163:9: error: implicit declaration of function 'cpus_read_lock'; did you mean 'rcu_read_lock'? [-Wimplicit-function-declaration]
163 | cpus_read_lock();
| ^~~~~~~~~~~~~~
| rcu_read_lock
>> kernel/cgroup/cpuset-v1.c:178:9: error: implicit declaration of function 'cpus_read_unlock'; did you mean 'rcu_read_unlock'? [-Wimplicit-function-declaration]
178 | cpus_read_unlock();
| ^~~~~~~~~~~~~~~~
| rcu_read_unlockvim +163 kernel/cgroup/cpuset-v1.c
155
156 int cpuset_write_s64(struct cgroup_subsys_state *css, struct cftype *cft,
157 s64 val)
158 {
159 struct cpuset *cs = css_cs(css);
160 cpuset_filetype_t type = cft->private;
161 int retval = -ENODEV;
162
> 163 cpus_read_lock();
164 cpuset_lock();
165 if (!is_cpuset_online(cs))
166 goto out_unlock;
167
168 switch (type) {
169 case FILE_SCHED_RELAX_DOMAIN_LEVEL:
170 retval = update_relax_domain_level(cs, val);
171 break;
172 default:
173 retval = -EINVAL;
174 break;
175 }
176 out_unlock:
177 cpuset_unlock();
> 178 cpus_read_unlock(); 179 return retval;
180 }
181
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki