Re: [PATCHv3] sched/deadline: Walk up cpuset hierarchy to decide root domain when hot-unplug

From: kernel test robot

Date: Sat Oct 18 2025 - 00:39:54 EST


Hi Pingfan,

kernel test robot noticed the following build errors:

[auto build test ERROR on tj-cgroup/for-next]
[also build test ERROR on tip/sched/core tip/master linus/master v6.18-rc1 next-20251017]
[cannot apply to tip/auto-latest]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Pingfan-Liu/sched-deadline-Walk-up-cpuset-hierarchy-to-decide-root-domain-when-hot-unplug/20251017-202902
base: https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-next
patch link: https://lore.kernel.org/r/20251017122636.17671-1-piliu%40redhat.com
patch subject: [PATCHv3] sched/deadline: Walk up cpuset hierarchy to decide root domain when hot-unplug
config: i386-randconfig-141-20251018 (https://download.01.org/0day-ci/archive/20251018/202510181259.vccVb2DD-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251018/202510181259.vccVb2DD-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202510181259.vccVb2DD-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from init/main.c:53:
include/linux/cpuset.h: In function 'task_get_rd_effective_cpus':
include/linux/cpuset.h:286:18: error: implicit declaration of function 'housekeeping_cpumask' [-Wimplicit-function-declaration]
286 | hk_msk = housekeeping_cpumask(HK_TYPE_DOMAIN);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/cpuset.h:286:39: error: 'HK_TYPE_DOMAIN' undeclared (first use in this function)
286 | hk_msk = housekeeping_cpumask(HK_TYPE_DOMAIN);
| ^~~~~~~~~~~~~~
include/linux/cpuset.h:286:39: note: each undeclared identifier is reported only once for each function it appears in
include/linux/cpuset.h:287:13: error: implicit declaration of function 'housekeeping_enabled' [-Wimplicit-function-declaration]
287 | if (housekeeping_enabled(HK_TYPE_DOMAIN)) {
| ^~~~~~~~~~~~~~~~~~~~
In file included from init/main.c:57:
include/linux/sched/isolation.h: At top level:
>> include/linux/sched/isolation.h:43:37: error: conflicting types for 'housekeeping_cpumask'; have 'const struct cpumask *(enum hk_type)'
43 | static inline const struct cpumask *housekeeping_cpumask(enum hk_type type)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/cpuset.h:286:18: note: previous implicit declaration of 'housekeeping_cpumask' with type 'int()'
286 | hk_msk = housekeeping_cpumask(HK_TYPE_DOMAIN);
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/sched/isolation.h:48:20: error: conflicting types for 'housekeeping_enabled'; have 'bool(enum hk_type)' {aka '_Bool(enum hk_type)'}
48 | static inline bool housekeeping_enabled(enum hk_type type)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/cpuset.h:287:13: note: previous implicit declaration of 'housekeeping_enabled' with type 'int()'
287 | if (housekeeping_enabled(HK_TYPE_DOMAIN)) {
| ^~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/sched/isolation.h:5,
from kernel/cpu.c:13:
include/linux/cpuset.h: In function 'task_get_rd_effective_cpus':
include/linux/cpuset.h:286:18: error: implicit declaration of function 'housekeeping_cpumask' [-Wimplicit-function-declaration]
286 | hk_msk = housekeeping_cpumask(HK_TYPE_DOMAIN);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/cpuset.h:286:39: error: 'HK_TYPE_DOMAIN' undeclared (first use in this function); did you mean 'TOPO_TILE_DOMAIN'?
286 | hk_msk = housekeeping_cpumask(HK_TYPE_DOMAIN);
| ^~~~~~~~~~~~~~
| TOPO_TILE_DOMAIN
include/linux/cpuset.h:286:39: note: each undeclared identifier is reported only once for each function it appears in
include/linux/cpuset.h:287:13: error: implicit declaration of function 'housekeeping_enabled' [-Wimplicit-function-declaration]
287 | if (housekeeping_enabled(HK_TYPE_DOMAIN)) {
| ^~~~~~~~~~~~~~~~~~~~
include/linux/sched/isolation.h: At top level:
>> include/linux/sched/isolation.h:43:37: error: conflicting types for 'housekeeping_cpumask'; have 'const struct cpumask *(enum hk_type)'
43 | static inline const struct cpumask *housekeeping_cpumask(enum hk_type type)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/cpuset.h:286:18: note: previous implicit declaration of 'housekeeping_cpumask' with type 'int()'
286 | hk_msk = housekeeping_cpumask(HK_TYPE_DOMAIN);
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/sched/isolation.h:48:20: error: conflicting types for 'housekeeping_enabled'; have 'bool(enum hk_type)' {aka '_Bool(enum hk_type)'}
48 | static inline bool housekeeping_enabled(enum hk_type type)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/cpuset.h:287:13: note: previous implicit declaration of 'housekeeping_enabled' with type 'int()'
287 | if (housekeeping_enabled(HK_TYPE_DOMAIN)) {
| ^~~~~~~~~~~~~~~~~~~~


vim +43 include/linux/sched/isolation.h

7863406143d8bb Frederic Weisbecker 2017-10-27 42
04d4e665a60902 Frederic Weisbecker 2022-02-07 @43 static inline const struct cpumask *housekeeping_cpumask(enum hk_type type)
7863406143d8bb Frederic Weisbecker 2017-10-27 44 {
7863406143d8bb Frederic Weisbecker 2017-10-27 45 return cpu_possible_mask;
7863406143d8bb Frederic Weisbecker 2017-10-27 46 }
7863406143d8bb Frederic Weisbecker 2017-10-27 47
04d4e665a60902 Frederic Weisbecker 2022-02-07 @48 static inline bool housekeeping_enabled(enum hk_type type)
0c5f81dad46c90 Wanpeng Li 2019-07-06 49 {
0c5f81dad46c90 Wanpeng Li 2019-07-06 50 return false;
0c5f81dad46c90 Wanpeng Li 2019-07-06 51 }
0c5f81dad46c90 Wanpeng Li 2019-07-06 52

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki