llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [qais-yousef:uclamp-max-aggregation 13/13] kernel/sched/core.c:4914:7: error: call to undeclared function '__ignore_task_perf'; ISO C99 and later do not support implicit function declarations
@ 2024-05-24 18:36 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-24 18:36 UTC (permalink / raw)
  To: Qais Yousef; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/qais-yousef/linux uclamp-max-aggregation
head:   3173a853e6c16e1dcb09d392ef1e9b5a06448696
commit: 3173a853e6c16e1dcb09d392ef1e9b5a06448696 [13/13] sched: Make iowait boost per task
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240525/202405250221.lh024Bjm-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 7aa382fd7257d9bd4f7fc50bb7078a3c26a1628c)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240525/202405250221.lh024Bjm-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/202405250221.lh024Bjm-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from kernel/sched/core.c:9:
   In file included from include/linux/highmem.h:8:
   In file included from include/linux/cacheflush.h:5:
   In file included from arch/arm/include/asm/cacheflush.h:10:
   In file included from include/linux/mm.h:2208:
   include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     522 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   kernel/sched/core.c:4906:24: error: no member named 'decayed' in 'struct cfs_rq'
    4906 |                 if (unlikely(rq->cfs.decayed)) {
         |                              ~~~~~~~ ^
   include/linux/compiler.h:77:42: note: expanded from macro 'unlikely'
      77 | # define unlikely(x)    __builtin_expect(!!(x), 0)
         |                                             ^
   kernel/sched/core.c:4907:12: error: no member named 'decayed' in 'struct cfs_rq'
    4907 |                         rq->cfs.decayed = false;
         |                         ~~~~~~~ ^
>> kernel/sched/core.c:4914:7: error: call to undeclared function '__ignore_task_perf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    4914 |                 if (__ignore_task_perf(current))
         |                     ^
>> kernel/sched/core.c:4918:16: error: call to undeclared function '__uclamp_eff_value'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    4918 |                 uclamp_min = __uclamp_eff_value(current, UCLAMP_MIN);
         |                              ^
   kernel/sched/core.c:4918:16: note: did you mean 'uclamp_eff_value'?
   kernel/sched/sched.h:3099:29: note: 'uclamp_eff_value' declared here
    3099 | static inline unsigned long uclamp_eff_value(struct task_struct *p,
         |                             ^
   kernel/sched/core.c:4920:21: error: no member named 'avg' in 'struct cfs_rq'
    4920 |                 rq_util = rq->cfs.avg.util_avg;
         |                           ~~~~~~~ ^
   1 warning and 5 errors generated.


vim +/__ignore_task_perf +4914 kernel/sched/core.c

  4887	
  4888	static inline void update_cpufreq_ctx_switch(struct rq *rq)
  4889	{
  4890		if (unlikely(current->sched_class == &stop_sched_class))
  4891			return;
  4892	
  4893		if (unlikely(current->sched_class == &idle_sched_class))
  4894			return;
  4895	
  4896		if (unlikely(task_has_idle_policy(current)))
  4897			return;
  4898	
  4899		if (likely(fair_policy(current->policy))) {
  4900			unsigned long uclamp_min, uclamp_max;
  4901			unsigned long rq_util;
  4902	
  4903			/*
  4904			 * Allow cpufreq updates once for every update_load_avg() decay.
  4905			 */
  4906			if (unlikely(rq->cfs.decayed)) {
  4907				rq->cfs.decayed = false;
  4908				goto force_update;
  4909			}
  4910	
  4911			if (unlikely(current->in_iowait))
  4912				goto force_update;
  4913	
> 4914			if (__ignore_task_perf(current))
  4915				return;
  4916	
  4917			/* Force an update if perf hints are required to be applied */
> 4918			uclamp_min = __uclamp_eff_value(current, UCLAMP_MIN);
  4919			uclamp_max = __uclamp_eff_value(current, UCLAMP_MAX);
  4920			rq_util = rq->cfs.avg.util_avg;
  4921	
  4922			if (uclamp_min > rq_util || uclamp_max < rq_util)
  4923				goto force_update;
  4924	
  4925			return;
  4926		}
  4927	
  4928		/* RT and DL should always send a freq update */
  4929	
  4930		/* XXX ignore updates for sugov worker thread */
  4931	
  4932	force_update:
  4933	
  4934		/*
  4935		 * Request freq update after __balance_callbacks to take into account
  4936		 * any changes to rq.
  4937		 */
  4938		cpufreq_update_util(rq, 0);
  4939	}
  4940	

-- 
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-05-24 18:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-24 18:36 [qais-yousef:uclamp-max-aggregation 13/13] kernel/sched/core.c:4914: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;
as well as URLs for NNTP newsgroup(s).