Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [jlayton:mgtime 8/13] kernel/time/timekeeping_debug.c:59:15: warning: no previous prototype for function 'timekeeping_mg_get_floor_swaps'
@ 2024-09-19 13:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-19 13:24 UTC (permalink / raw)
  To: Jeff Layton; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git mgtime
head:   c276587422e7965813f945523c522b95b0f5ffcf
commit: 6f453b2b31051a046df355061b0bfcfe32198083 [8/13] timekeeping: add percpu counter for tracking floor swap events
config: arm-exynos_defconfig (https://download.01.org/0day-ci/archive/20240919/202409192115.qF1AILLT-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/20240919/202409192115.qF1AILLT-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/202409192115.qF1AILLT-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> kernel/time/timekeeping_debug.c:59:15: warning: no previous prototype for function 'timekeeping_mg_get_floor_swaps' [-Wmissing-prototypes]
      59 | unsigned long timekeeping_mg_get_floor_swaps(void)
         |               ^
   kernel/time/timekeeping_debug.c:59:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
      59 | unsigned long timekeeping_mg_get_floor_swaps(void)
         | ^
         | static 
   1 warning generated.


vim +/timekeeping_mg_get_floor_swaps +59 kernel/time/timekeeping_debug.c

    58	
  > 59	unsigned long timekeeping_mg_get_floor_swaps(void)
    60	{
    61		int i;
    62		unsigned long sum = 0;
    63	
    64		for_each_possible_cpu(i)
    65			sum += per_cpu(timekeeping_mg_floor_swaps, i);
    66		return sum < 0 ? 0 : sum;
    67	}
    68	

-- 
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-09-19 13:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-19 13:24 [jlayton:mgtime 8/13] kernel/time/timekeeping_debug.c:59:15: warning: no previous prototype for function 'timekeeping_mg_get_floor_swaps' 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