public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [spandruvada:idle-inject 10/13] drivers/thermal/intel/intel_powerclamp.c:449:6: warning: no previous prototype for function 'idle_inject_end'
@ 2022-09-14 19:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-09-14 19:10 UTC (permalink / raw)
  To: Srinivas Pandruvada; +Cc: llvm, kbuild-all, linux-kernel

tree:   https://github.com/spandruvada/linux-kernel idle-inject
head:   adb26b2a9269625eac48c04d39443e741894a569
commit: 85a53ba91f9b1a7511239c5bb33a44d78fa5e4a5 [10/13] thermal/drivers/intel_powerclamp: Use powercap idle-inject framework
config: x86_64-randconfig-a005 (https://download.01.org/0day-ci/archive/20220915/202209150259.dx4CzR7v-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/spandruvada/linux-kernel/commit/85a53ba91f9b1a7511239c5bb33a44d78fa5e4a5
        git remote add spandruvada https://github.com/spandruvada/linux-kernel
        git fetch --no-tags spandruvada idle-inject
        git checkout 85a53ba91f9b1a7511239c5bb33a44d78fa5e4a5
        # 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=x86_64 SHELL=/bin/bash drivers/thermal/intel/

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

All warnings (new ones prefixed by >>):

>> drivers/thermal/intel/intel_powerclamp.c:449:6: warning: no previous prototype for function 'idle_inject_end' [-Wmissing-prototypes]
   void idle_inject_end(unsigned int cpu, unsigned int idle_duration, unsigned int run_duration)
        ^
   drivers/thermal/intel/intel_powerclamp.c:449:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void idle_inject_end(unsigned int cpu, unsigned int idle_duration, unsigned int run_duration)
   ^
   static 
   1 warning generated.


vim +/idle_inject_end +449 drivers/thermal/intel/intel_powerclamp.c

   448	
 > 449	void idle_inject_end(unsigned int cpu, unsigned int idle_duration, unsigned int run_duration)
   450	{
   451		unsigned int runtime;
   452	
   453		runtime = get_run_time(&powerclamp_data);
   454		idle_inject_set_duration(ii_dev, runtime, idle_duration);
   455	}
   456	

-- 
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-14 19:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-14 19:10 [spandruvada:idle-inject 10/13] drivers/thermal/intel/intel_powerclamp.c:449:6: warning: no previous prototype for function 'idle_inject_end' 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