All of lore.kernel.org
 help / color / mirror / Atom feed
* [alexshi:schedtest 12/12] kernel/sched/fair.c:9748:48: error: implicit declaration of function 'cpu_core_flags'
@ 2024-01-31  5:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-31  5:43 UTC (permalink / raw)
  To: Alex Shi; +Cc: 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: arc-defconfig (https://download.01.org/0day-ci/archive/20240131/202401311303.MEmeViJC-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240131/202401311303.MEmeViJC-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/202401311303.MEmeViJC-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/kernel.h:23,
                    from include/linux/cpumask.h:10,
                    from include/linux/energy_model.h:4,
                    from kernel/sched/fair.c:23:
   kernel/sched/fair.c: In function 'sched_use_asym_prio':
>> kernel/sched/fair.c:9748:48: error: implicit declaration of function 'cpu_core_flags' [-Werror=implicit-function-declaration]
    9748 |                 (is_core_idle(cpu) && test_bit(cpu_core_flags(), (void*)&sd->flags));
         |                                                ^~~~~~~~~~~~~~
   include/linux/bitops.h:49:32: note: in definition of macro 'bitop'
      49 |         ((__builtin_constant_p(nr) &&                                   \
         |                                ^~
   kernel/sched/fair.c:9748:39: note: in expansion of macro 'test_bit'
    9748 |                 (is_core_idle(cpu) && test_bit(cpu_core_flags(), (void*)&sd->flags));
         |                                       ^~~~~~~~
   cc1: some warnings being treated as errors


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:45 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:43 [alexshi:schedtest 12/12] kernel/sched/fair.c:9748:48: error: implicit declaration of function 'cpu_core_flags' 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.