Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [peterz-queue:sched/task_h_load 25/27] kernel/sched/fair.c:2080:2: error: call to undeclared function 'cfs_of_of'; ISO C99 and later do not support implicit function declarations
@ 2026-09-03  0:28 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-03  0:28 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/task_h_load
head:   4cbbcdc1a5585407e918e633887e57d978ddf0c6
commit: 65fc965b77f4f7f70aff38ad18e2a4e09880dad4 [25/27] sched/fair: Fold cfs_rq_of(se) into for_each_sched_entity()
config: hexagon-allnoconfig (https://download.01.org/0day-ci/archive/20260903/202609030843.mfhuyAcC-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 2c2cffa015e9549aafba9e514384b08204c7cc4b)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260903/202609030843.mfhuyAcC-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/202609030843.mfhuyAcC-lkp@intel.com/

All errors (new ones prefixed by >>):

>> kernel/sched/fair.c:2080:2: error: call to undeclared function 'cfs_of_of'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2080 |         for_each_sched_entity(se, cfs_rq)
         |         ^
   kernel/sched/fair.c:456:29: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                    ^
   kernel/sched/fair.c:2080:2: note: did you mean 'cfs_rq_of'?
   kernel/sched/fair.c:456:29: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                    ^
   kernel/sched/sched.h:1765:30: note: 'cfs_rq_of' declared here
    1765 | static inline struct cfs_rq *cfs_rq_of(const struct sched_entity *se)
         |                              ^
>> kernel/sched/fair.c:2080:2: error: incompatible integer to pointer conversion assigning to 'struct cfs_rq *' from 'int' [-Wint-conversion]
    2080 |         for_each_sched_entity(se, cfs_rq)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:456:27: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                  ^ ~~~~~~~~~~~~~
   kernel/sched/fair.c:4815:2: error: call to undeclared function 'cfs_of_of'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    4815 |         for_each_sched_entity(se, cfs_rq)
         |         ^
   kernel/sched/fair.c:456:29: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                    ^
   kernel/sched/fair.c:4815:2: error: incompatible integer to pointer conversion assigning to 'struct cfs_rq *' from 'int' [-Wint-conversion]
    4815 |         for_each_sched_entity(se, cfs_rq)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:456:27: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                  ^ ~~~~~~~~~~~~~
   kernel/sched/fair.c:6399:2: error: call to undeclared function 'cfs_of_of'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    6399 |         for_each_sched_entity(se, cfs_rq)
         |         ^
   kernel/sched/fair.c:456:29: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                    ^
   kernel/sched/fair.c:6399:2: error: incompatible integer to pointer conversion assigning to 'struct cfs_rq *' from 'int' [-Wint-conversion]
    6399 |         for_each_sched_entity(se, cfs_rq)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:456:27: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                  ^ ~~~~~~~~~~~~~
   kernel/sched/fair.c:6418:2: error: call to undeclared function 'cfs_of_of'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    6418 |         for_each_sched_entity(se, cfs_rq)
         |         ^
   kernel/sched/fair.c:456:29: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                    ^
   kernel/sched/fair.c:6418:2: error: incompatible integer to pointer conversion assigning to 'struct cfs_rq *' from 'int' [-Wint-conversion]
    6418 |         for_each_sched_entity(se, cfs_rq)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:456:27: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                  ^ ~~~~~~~~~~~~~
   kernel/sched/fair.c:7941:2: error: call to undeclared function 'cfs_of_of'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    7941 |         for_each_sched_entity(se, cfs_rq) {
         |         ^
   kernel/sched/fair.c:456:29: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                    ^
   kernel/sched/fair.c:7941:2: error: incompatible integer to pointer conversion assigning to 'struct cfs_rq *' from 'int' [-Wint-conversion]
    7941 |         for_each_sched_entity(se, cfs_rq) {
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:456:27: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                  ^ ~~~~~~~~~~~~~
   kernel/sched/fair.c:8078:2: error: call to undeclared function 'cfs_of_of'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    8078 |         for_each_sched_entity(se, cfs_rq) {
         |         ^
   kernel/sched/fair.c:456:29: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                    ^
   kernel/sched/fair.c:8078:2: error: incompatible integer to pointer conversion assigning to 'struct cfs_rq *' from 'int' [-Wint-conversion]
    8078 |         for_each_sched_entity(se, cfs_rq) {
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:456:27: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                  ^ ~~~~~~~~~~~~~
   kernel/sched/fair.c:15056:3: error: call to undeclared function 'cfs_of_of'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    15056 |                 for_each_sched_entity(se, cfs_rq) {
          |                 ^
   kernel/sched/fair.c:456:29: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                    ^
   kernel/sched/fair.c:15056:3: error: incompatible integer to pointer conversion assigning to 'struct cfs_rq *' from 'int' [-Wint-conversion]
    15056 |                 for_each_sched_entity(se, cfs_rq) {
          |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:456:27: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                  ^ ~~~~~~~~~~~~~
   kernel/sched/fair.c:15242:2: error: call to undeclared function 'cfs_of_of'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    15242 |         for_each_sched_entity(se, cfs_rq) {
          |         ^
   kernel/sched/fair.c:456:29: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                    ^
   kernel/sched/fair.c:15242:2: error: incompatible integer to pointer conversion assigning to 'struct cfs_rq *' from 'int' [-Wint-conversion]
    15242 |         for_each_sched_entity(se, cfs_rq) {
          |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:456:27: note: expanded from macro 'for_each_sched_entity'
     456 |         for (; (se) && ((cfs_rq) = cfs_of_of(se)); (se) = NULL)
         |                                  ^ ~~~~~~~~~~~~~
   16 errors generated.


vim +/cfs_of_of +2080 kernel/sched/fair.c

  2074	
  2075	static void update_curr_fair(struct rq *rq)
  2076	{
  2077		struct sched_entity *se = &rq->donor->se;
  2078		struct cfs_rq *cfs_rq;
  2079	
> 2080		for_each_sched_entity(se, cfs_rq)
  2081			update_curr(cfs_rq);
  2082	}
  2083	

--
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:[~2026-09-03  0:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03  0:28 [peterz-queue:sched/task_h_load 25/27] kernel/sched/fair.c:2080:2: error: call to undeclared function 'cfs_of_of'; ISO C99 and later do not support implicit function declarations kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox