All of lore.kernel.org
 help / color / mirror / Atom feed
* [alexshi:cpusetisolation 2/5] include/linux/sched/isolation.h:61:10: error: call to undeclared function 'housekeeping_cpu'; ISO C99 and later do not support implicit function declarations
@ 2025-02-11  8:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-11  8:56 UTC (permalink / raw)
  To: alexs; +Cc: oe-kbuild-all

tree:   https://github.com/alexshi/linux.git cpusetisolation
head:   9861605548c2952b76f12b4ff62edaa42e6cb61e
commit: 74b420e55b3d622b3e1c580efada25dedfc9c2d3 [2/5] sched/isolation: merge housekeeping_cpu() and housekeeping_test_cpu()
config: i386-buildonly-randconfig-006-20250211 (https://download.01.org/0day-ci/archive/20250211/202502111608.FDAH2ySN-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/20250211/202502111608.FDAH2ySN-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/202502111608.FDAH2ySN-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from kernel/watchdog.c:31:
>> include/linux/sched/isolation.h:61:10: error: call to undeclared function 'housekeeping_cpu'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      61 |         return !housekeeping_cpu(cpu, HK_TYPE_DOMAIN) ||
         |                 ^
   1 error generated.
--
   In file included from kernel/workqueue.c:52:
>> include/linux/sched/isolation.h:61:10: error: call to undeclared function 'housekeeping_cpu'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      61 |         return !housekeeping_cpu(cpu, HK_TYPE_DOMAIN) ||
         |                 ^
>> kernel/workqueue.c:2519:8: error: call to undeclared function 'housekeeping_cpu'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2519 |                 if (!housekeeping_cpu(cpu, HK_TYPE_TIMER))
         |                      ^
   2 errors generated.
--
   In file included from kernel/time/hrtimer.c:41:
>> include/linux/sched/isolation.h:61:10: error: call to undeclared function 'housekeeping_cpu'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      61 |         return !housekeeping_cpu(cpu, HK_TYPE_DOMAIN) ||
         |                 ^
   kernel/time/hrtimer.c:124:21: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
     124 |         [CLOCK_REALTIME]        = HRTIMER_BASE_REALTIME,
         |                                   ^~~~~~~~~~~~~~~~~~~~~
   kernel/time/hrtimer.c:122:27: note: previous initialization is here
     122 |         [0 ... MAX_CLOCKS - 1]  = HRTIMER_MAX_CLOCK_BASES,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~
   kernel/time/hrtimer.c:125:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
     125 |         [CLOCK_MONOTONIC]       = HRTIMER_BASE_MONOTONIC,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   kernel/time/hrtimer.c:122:27: note: previous initialization is here
     122 |         [0 ... MAX_CLOCKS - 1]  = HRTIMER_MAX_CLOCK_BASES,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~
   kernel/time/hrtimer.c:126:21: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
     126 |         [CLOCK_BOOTTIME]        = HRTIMER_BASE_BOOTTIME,
         |                                   ^~~~~~~~~~~~~~~~~~~~~
   kernel/time/hrtimer.c:122:27: note: previous initialization is here
     122 |         [0 ... MAX_CLOCKS - 1]  = HRTIMER_MAX_CLOCK_BASES,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~
   kernel/time/hrtimer.c:127:17: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
     127 |         [CLOCK_TAI]             = HRTIMER_BASE_TAI,
         |                                   ^~~~~~~~~~~~~~~~
   kernel/time/hrtimer.c:122:27: note: previous initialization is here
     122 |         [0 ... MAX_CLOCKS - 1]  = HRTIMER_MAX_CLOCK_BASES,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~
   4 warnings and 1 error generated.
--
   In file included from kernel/sched/core.c:34:
>> include/linux/sched/isolation.h:61:10: error: call to undeclared function 'housekeeping_cpu'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      61 |         return !housekeeping_cpu(cpu, HK_TYPE_DOMAIN) ||
         |                 ^
>> kernel/sched/core.c:5643:6: error: call to undeclared function 'housekeeping_cpu'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    5643 |         if (housekeeping_cpu(cpu, HK_TYPE_KERNEL_NOISE))
         |             ^
   2 errors generated.


vim +/housekeeping_cpu +61 include/linux/sched/isolation.h

    58	
    59	static inline bool cpu_is_isolated(int cpu)
    60	{
  > 61		return !housekeeping_cpu(cpu, HK_TYPE_DOMAIN) ||
    62		       !housekeeping_cpu(cpu, HK_TYPE_TICK) ||
    63		       cpuset_cpu_is_isolated(cpu);
    64	}
    65	

-- 
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-02-11  8:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-11  8:56 [alexshi:cpusetisolation 2/5] include/linux/sched/isolation.h:61:10: error: call to undeclared function 'housekeeping_cpu'; ISO C99 and later do not support implicit function declarations 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.