llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [RFC PATCH 1/1] cpuidle: teo: Add optional util-awareness
       [not found] <20220915164411.2496380-2-kajetan.puchalski@arm.com>
@ 2022-09-18 16:59 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-09-18 16:59 UTC (permalink / raw)
  To: Kajetan Puchalski; +Cc: llvm, kbuild-all

Hi Kajetan,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on rafael-pm/linux-next]
[also build test ERROR on linus/master v6.0-rc5 next-20220916]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Kajetan-Puchalski/cpuidle-teo-Introduce-optional-util-awareness/20220916-004754
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20220919/202209190007.gQUIQDuS-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel-lab-lkp/linux/commit/12ebcc0f2762db714844318e850f102d864b92d7
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Kajetan-Puchalski/cpuidle-teo-Introduce-optional-util-awareness/20220916-004754
        git checkout 12ebcc0f2762db714844318e850f102d864b92d7
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/cpuidle/governors/ drivers/net/ethernet/mellanox/mlx5/core/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/cpuidle/governors/teo.c:592:31: error: implicit declaration of function 'arch_scale_cpu_capacity' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
           unsigned long max_capacity = arch_scale_cpu_capacity(dev->cpu);
                                        ^
   1 error generated.


vim +/arch_scale_cpu_capacity +592 drivers/cpuidle/governors/teo.c

   581	
   582	/**
   583	 * teo_enable_device - Initialize the governor's data for the target CPU.
   584	 * @drv: cpuidle driver (not used).
   585	 * @dev: Target CPU.
   586	 */
   587	static int teo_enable_device(struct cpuidle_driver *drv,
   588				     struct cpuidle_device *dev)
   589	{
   590		struct teo_cpu *cpu_data = per_cpu_ptr(&teo_cpus, dev->cpu);
   591	#ifdef CONFIG_CPU_IDLE_GOV_TEO_UTIL_AWARE
 > 592		unsigned long max_capacity = arch_scale_cpu_capacity(dev->cpu);
   593	#endif
   594		int i;
   595	
   596		memset(cpu_data, 0, sizeof(*cpu_data));
   597	#ifdef CONFIG_CPU_IDLE_GOV_TEO_UTIL_AWARE
   598		cpu_data->util_threshold = max_capacity >> UTIL_THRESHOLD_SHIFT;
   599	#endif
   600	
   601		for (i = 0; i < NR_RECENT; i++)
   602			cpu_data->recent_idx[i] = -1;
   603	
   604		return 0;
   605	}
   606	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-18 16:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20220915164411.2496380-2-kajetan.puchalski@arm.com>
2022-09-18 16:59 ` [RFC PATCH 1/1] cpuidle: teo: Add optional util-awareness 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).