Re: [PATCH] kernel/profile: remove setup_profiling_timer
From: kernel test robot
Date: Sun Aug 23 2026 - 09:23:50 EST
Hi Anthony,
kernel test robot noticed the following build warnings:
[auto build test WARNING on akpm-mm/mm-everything]
[also build test WARNING on linus/master v7.2 next-20260821]
[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/Anthony-Iliopoulos/kernel-profile-remove-setup_profiling_timer/20260821-111744
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20260821091744.91496-1-ailiop%40suse.com
patch subject: [PATCH] kernel/profile: remove setup_profiling_timer
config: loongarch-randconfig-001-20260823 (https://download.01.org/0day-ci/archive/20260823/202608231532.dENn2OSP-lkp@xxxxxxxxx/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 935bfc708590c60147a79c7df145bb6e68b1d388)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260823/202608231532.dENn2OSP-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608231532.dENn2OSP-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
>> arch/loongarch/kernel/smp.c:720:5: warning: no previous prototype for function 'setup_profiling_timer' [-Wmissing-prototypes]
720 | int setup_profiling_timer(unsigned int multiplier)
| ^
arch/loongarch/kernel/smp.c:720:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
720 | int setup_profiling_timer(unsigned int multiplier)
| ^
| static
1 warning generated.
vim +/setup_profiling_timer +720 arch/loongarch/kernel/smp.c
46859ac8af52ae Huacai Chen 2022-05-31 718
c718a0bad75cce Bibo Mao 2023-09-20 719 #ifdef CONFIG_PROFILING
46859ac8af52ae Huacai Chen 2022-05-31 @720 int setup_profiling_timer(unsigned int multiplier)
46859ac8af52ae Huacai Chen 2022-05-31 721 {
46859ac8af52ae Huacai Chen 2022-05-31 722 return 0;
46859ac8af52ae Huacai Chen 2022-05-31 723 }
c718a0bad75cce Bibo Mao 2023-09-20 724 #endif
46859ac8af52ae Huacai Chen 2022-05-31 725
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki