public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Thu, 3 Apr 2025 22:50:11 +0800	[thread overview]
Message-ID: <202504032231.tANMXCtr-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-04-03 14:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202504032231.tANMXCtr-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox