* [peterz-queue:sched/hrtick 1/6] kernel/sched/fair.c:6813:10: error: call to undeclared function 'cpu_util_dl'; ISO C99 and later do not support implicit function declarations
@ 2025-04-03 14:50 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-03 14:50 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/hrtick
head: 7ca06092f4a1b8dfd501b5cb1749854a13d5a898
commit: deebcd729d011e54806d9026965fcb0c18111129 [1/6] sched/eevdf: Fix HRTICK duration
config: hexagon-randconfig-002-20250403 (https://download.01.org/0day-ci/archive/20250403/202504032231.tANMXCtr-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 7eccafc3c84606587a175c0a8c1ebea6e4fb21cd)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250403/202504032231.tANMXCtr-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/202504032231.tANMXCtr-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/sched/fair.c:6813:10: error: call to undeclared function 'cpu_util_dl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
6813 | util += cpu_util_dl(rq);
| ^
kernel/sched/fair.c:6813:10: note: did you mean 'cpu_util_irq'?
kernel/sched/sched.h:3486:29: note: 'cpu_util_irq' declared here
3486 | static inline unsigned long cpu_util_irq(struct rq *rq)
| ^
>> kernel/sched/fair.c:6814:10: error: call to undeclared function 'cpu_util_rt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
6814 | util += cpu_util_rt(rq);
| ^
2 errors generated.
vim +/cpu_util_dl +6813 kernel/sched/fair.c
6780
6781 /**************************************************
6782 * CFS operations on tasks:
6783 */
6784
6785 #ifdef CONFIG_SCHED_HRTICK
6786 static void hrtick_start_fair(struct rq *rq, struct task_struct *p)
6787 {
6788 struct sched_entity *se = &p->se;
6789 unsigned long scale = 1024;
6790 unsigned long util = 0;
6791 u64 vdelta;
6792 u64 delta;
6793
6794 WARN_ON_ONCE(task_rq(p) != rq);
6795
6796 if (rq->cfs.h_nr_queued <= 1)
6797 return;
6798
6799 /*
6800 * Compute time until virtual deadline
6801 */
6802 vdelta = se->deadline - se->vruntime;
6803 if ((s64)vdelta < 0) {
6804 if (task_current_donor(rq, p))
6805 resched_curr(rq);
6806 return;
6807 }
6808 delta = (se->load.weight * vdelta) / NICE_0_LOAD;
6809
6810 /*
6811 * Correct for instantaneous load of other classes.
6812 */
> 6813 util += cpu_util_dl(rq);
> 6814 util += cpu_util_rt(rq);
6815 util += cpu_util_irq(rq);
6816 if (util && util < 1024) {
6817 scale *= 1024;
6818 scale /= (1024 - util);
6819 }
6820
6821 hrtick_start(rq, (scale * delta) / 1024);
6822 }
6823
--
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-04-03 14:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-03 14:50 [peterz-queue:sched/hrtick 1/6] kernel/sched/fair.c:6813:10: error: call to undeclared function 'cpu_util_dl'; 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