* [opencloudos:next 86/98] kernel/sched/psi.c:272:1: warning: control reaches end of non-void function
@ 2024-03-01 21:55 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-03-01 21:55 UTC (permalink / raw)
To: jasperwang, kaixuxia, frankjpliu, kasong, sagazchen, kernelxing,
aurelianliu, jason.zeng, wu.zheng, yingbao.jia, pei.p.jia
Cc: oe-kbuild-all
tree: https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git next
head: a4b2dc2ffad1810ebe7a86710aa1e5cc312aa2a1
commit: 5ad399e959efe7243d5e3c8afc13d249c607746a [86/98] psi: support cgroup v1 psi accounting
config: x86_64-buildonly-randconfig-002-20240302 (https://download.01.org/0day-ci/archive/20240302/202403020559.Porpme18-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240302/202403020559.Porpme18-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/202403020559.Porpme18-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/build_bug.h:5,
from include/linux/container_of.h:5,
from include/linux/list.h:5,
from include/linux/smp.h:12,
from include/linux/sched/clock.h:5,
from kernel/sched/build_utility.c:12:
kernel/sched/psi.c: In function 'psi_use_legacy':
kernel/sched/psi.c:267:31: error: 'memory_cgrp_subsys_on_dfl_key' undeclared (first use in this function); did you mean 'debug_cgrp_subsys_on_dfl_key'?
267 | !cgroup_subsys_on_dfl(memory_cgrp_subsys) &&
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:76:40: note: in definition of macro 'likely'
76 | # define likely(x) __builtin_expect(!!(x), 1)
| ^
include/linux/jump_label.h:508:34: note: in expansion of macro 'likely_notrace'
508 | #define static_branch_likely(x) likely_notrace(static_key_enabled(&(x)->key))
| ^~~~~~~~~~~~~~
include/linux/jump_label.h:508:49: note: in expansion of macro 'static_key_enabled'
508 | #define static_branch_likely(x) likely_notrace(static_key_enabled(&(x)->key))
| ^~~~~~~~~~~~~~~~~~
include/linux/cgroup.h:97:2: note: in expansion of macro 'static_branch_likely'
97 | static_branch_likely(&ss ## _on_dfl_key)
| ^~~~~~~~~~~~~~~~~~~~
kernel/sched/psi.c:267:10: note: in expansion of macro 'cgroup_subsys_on_dfl'
267 | !cgroup_subsys_on_dfl(memory_cgrp_subsys) &&
| ^~~~~~~~~~~~~~~~~~~~
kernel/sched/psi.c:267:31: note: each undeclared identifier is reported only once for each function it appears in
267 | !cgroup_subsys_on_dfl(memory_cgrp_subsys) &&
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:76:40: note: in definition of macro 'likely'
76 | # define likely(x) __builtin_expect(!!(x), 1)
| ^
include/linux/jump_label.h:508:34: note: in expansion of macro 'likely_notrace'
508 | #define static_branch_likely(x) likely_notrace(static_key_enabled(&(x)->key))
| ^~~~~~~~~~~~~~
include/linux/jump_label.h:508:49: note: in expansion of macro 'static_key_enabled'
508 | #define static_branch_likely(x) likely_notrace(static_key_enabled(&(x)->key))
| ^~~~~~~~~~~~~~~~~~
include/linux/cgroup.h:97:2: note: in expansion of macro 'static_branch_likely'
97 | static_branch_likely(&ss ## _on_dfl_key)
| ^~~~~~~~~~~~~~~~~~~~
kernel/sched/psi.c:267:10: note: in expansion of macro 'cgroup_subsys_on_dfl'
267 | !cgroup_subsys_on_dfl(memory_cgrp_subsys) &&
| ^~~~~~~~~~~~~~~~~~~~
kernel/sched/psi.c:268:31: error: 'io_cgrp_subsys_on_dfl_key' undeclared (first use in this function); did you mean 'misc_cgrp_subsys_on_dfl_key'?
268 | !cgroup_subsys_on_dfl(io_cgrp_subsys);
| ^~~~~~~~~~~~~~
include/linux/compiler.h:76:40: note: in definition of macro 'likely'
76 | # define likely(x) __builtin_expect(!!(x), 1)
| ^
include/linux/jump_label.h:508:34: note: in expansion of macro 'likely_notrace'
508 | #define static_branch_likely(x) likely_notrace(static_key_enabled(&(x)->key))
| ^~~~~~~~~~~~~~
include/linux/jump_label.h:508:49: note: in expansion of macro 'static_key_enabled'
508 | #define static_branch_likely(x) likely_notrace(static_key_enabled(&(x)->key))
| ^~~~~~~~~~~~~~~~~~
include/linux/cgroup.h:97:2: note: in expansion of macro 'static_branch_likely'
97 | static_branch_likely(&ss ## _on_dfl_key)
| ^~~~~~~~~~~~~~~~~~~~
kernel/sched/psi.c:268:10: note: in expansion of macro 'cgroup_subsys_on_dfl'
268 | !cgroup_subsys_on_dfl(io_cgrp_subsys);
| ^~~~~~~~~~~~~~~~~~~~
In file included from kernel/sched/build_utility.c:97:
kernel/sched/psi.c: In function 'psi_group_change_legacy':
kernel/sched/psi.c:936:40: error: 'io_cgrp_subsys' undeclared (first use in this function); did you mean 'misc_cgrp_subsys'?
936 | group = cgroup_psi(task_cgroup(task, io_cgrp_subsys.id));
| ^~~~~~~~~~~~~~
| misc_cgrp_subsys
kernel/sched/psi.c:943:40: error: 'memory_cgrp_subsys' undeclared (first use in this function); did you mean 'debug_cgrp_subsys'?
943 | group = cgroup_psi(task_cgroup(task, memory_cgrp_subsys.id));
| ^~~~~~~~~~~~~~~~~~
| debug_cgrp_subsys
kernel/sched/psi.c: In function 'psi_use_legacy':
>> kernel/sched/psi.c:272:1: warning: control reaches end of non-void function [-Wreturn-type]
272 | }
| ^
vim +272 kernel/sched/psi.c
262
263 static inline bool psi_use_legacy(void)
264 {
265 #ifdef CONFIG_CGROUPS
266 return !cgroup_subsys_on_dfl(cpu_cgrp_subsys) &&
267 !cgroup_subsys_on_dfl(memory_cgrp_subsys) &&
268 !cgroup_subsys_on_dfl(io_cgrp_subsys);
269 #else
270 return false;
271 #endif
> 272 }
273
--
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-03-01 21:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-01 21:55 [opencloudos:next 86/98] kernel/sched/psi.c:272:1: warning: control reaches end of non-void function 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.