* [qais-yousef:uclamp-max-aggregation 13/13] kernel/sched/core.c:4904:7: error: call to undeclared function '__ignore_task_perf'; ISO C99 and later do not support implicit function declarations
@ 2024-01-21 22:22 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-21 22:22 UTC (permalink / raw)
To: Qais Yousef; +Cc: llvm, oe-kbuild-all
tree: https://github.com/qais-yousef/linux uclamp-max-aggregation
head: a29c26f9317cede0f3141904d910d3125f8a82ea
commit: a29c26f9317cede0f3141904d910d3125f8a82ea [13/13] sched: Make iowait boost per task
config: i386-buildonly-randconfig-004-20240122 (https://download.01.org/0day-ci/archive/20240122/202401220601.YvBaICmR-lkp@intel.com/config)
compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240122/202401220601.YvBaICmR-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/202401220601.YvBaICmR-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/sched/core.c:4904:7: error: call to undeclared function '__ignore_task_perf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
4904 | if (__ignore_task_perf(current))
| ^
>> kernel/sched/core.c:4908:16: error: call to undeclared function '__uclamp_eff_value'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
4908 | uclamp_min = __uclamp_eff_value(current, UCLAMP_MIN);
| ^
kernel/sched/core.c:4908:16: note: did you mean 'uclamp_eff_value'?
kernel/sched/sched.h:3071:29: note: 'uclamp_eff_value' declared here
3071 | static inline unsigned long uclamp_eff_value(struct task_struct *p,
| ^
2 errors generated.
vim +/__ignore_task_perf +4904 kernel/sched/core.c
4877
4878 static inline void update_cpufreq_ctx_switch(struct rq *rq)
4879 {
4880 if (unlikely(current->sched_class == &stop_sched_class))
4881 return;
4882
4883 if (unlikely(current->sched_class == &idle_sched_class))
4884 return;
4885
4886 if (unlikely(task_has_idle_policy(current)))
4887 return;
4888
4889 if (likely(fair_policy(current->policy))) {
4890 unsigned long uclamp_min, uclamp_max;
4891 unsigned long rq_util;
4892
4893 /*
4894 * Allow cpufreq updates once for every update_load_avg() decay.
4895 */
4896 if (rq->cfs.decayed) {
4897 rq->cfs.decayed = false;
4898 goto force_update;
4899 }
4900
4901 if (current->in_iowait)
4902 goto force_update;
4903
> 4904 if (__ignore_task_perf(current))
4905 return;
4906
4907 /* Force an update if perf hints are required to be applied */
> 4908 uclamp_min = __uclamp_eff_value(current, UCLAMP_MIN);
4909 uclamp_max = __uclamp_eff_value(current, UCLAMP_MAX);
4910 rq_util = rq->cfs.avg.util_avg;
4911
4912 if (uclamp_min > rq_util || uclamp_max < rq_util)
4913 goto force_update;
4914
4915 return;
4916 }
4917
4918 /* RT and DL should always send a freq update */
4919
4920 /* XXX ignore updates for sugov worker thread */
4921
4922 force_update:
4923
4924 /*
4925 * Request freq update after __balance_callbacks to take into account
4926 * any changes to rq.
4927 */
4928 cpufreq_update_util(rq, 0);
4929 }
4930
--
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:[~2024-01-21 22:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-21 22:22 [qais-yousef:uclamp-max-aggregation 13/13] kernel/sched/core.c:4904:7: error: call to undeclared function '__ignore_task_perf'; 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