All of lore.kernel.org
 help / color / mirror / Atom feed
* [alexshi:schedtest 12/12] kernel/sched/fair.c:9748:34: error: call to undeclared function 'cpu_core_flags'; ISO C99 and later do not support implicit function declarations
@ 2024-01-31  5:54 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-31  5:54 UTC (permalink / raw)
  To: Alex Shi; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/alexshi/linux.git schedtest
head:   b92ab0e6c7d969d7c8b42f8a5ff7e1e73f63599b
commit: b92ab0e6c7d969d7c8b42f8a5ff7e1e73f63599b [12/12] sched/fair: change sched asym checking condition
config: x86_64-buildonly-randconfig-001-20240131 (https://download.01.org/0day-ci/archive/20240131/202401311339.WH2KXCdH-lkp@intel.com/config)
compiler: 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/20240131/202401311339.WH2KXCdH-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/202401311339.WH2KXCdH-lkp@intel.com/

All errors (new ones prefixed by >>):

>> kernel/sched/fair.c:9748:34: error: call to undeclared function 'cpu_core_flags'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    9748 |                 (is_core_idle(cpu) && test_bit(cpu_core_flags(), (void*)&sd->flags));
         |                                                ^
   1 error generated.


vim +/cpu_core_flags +9748 kernel/sched/fair.c

  9730	
  9731	/**
  9732	 * sched_use_asym_prio - Check whether asym_packing priority must be used
  9733	 * @sd:		The scheduling domain of the load balancing
  9734	 * @cpu:	A CPU
  9735	 *
  9736	 * Always use CPU priority when balancing load between SMT siblings. When
  9737	 * balancing load between cores, it is not sufficient that @cpu is idle. Only
  9738	 * use CPU priority if the whole core is idle.
  9739	 *
  9740	 * Returns: True if the priority of @cpu must be followed. False otherwise.
  9741	 */
  9742	static bool sched_use_asym_prio(struct sched_domain *sd, int cpu)
  9743	{
  9744		if (!(sd->flags & SD_ASYM_PACKING))
  9745			return false;
  9746	
  9747		return (sd->flags & SD_SHARE_CPUCAPACITY) ||
> 9748			(is_core_idle(cpu) && test_bit(cpu_core_flags(), (void*)&sd->flags));
  9749	}
  9750	

-- 
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-31  5:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-31  5:54 [alexshi:schedtest 12/12] kernel/sched/fair.c:9748:34: error: call to undeclared function 'cpu_core_flags'; ISO C99 and later do not support implicit function declarations kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.