kernel/time/hrtimer.c:1876:20: error: unused function '__hrtimer_peek_ahead_timers'

From: kernel test robot
Date: Wed Nov 29 2023 - 18:15:22 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3b47bc037bd44f142ac09848e8d3ecccc726be99
commit: 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94 hrtimers: Push pending hrtimers away from outgoing CPU earlier
date: 3 weeks ago
config: x86_64-sof-customedconfig-fuzz-defconfig (https://download.01.org/0day-ci/archive/20231130/202311300441.Pn3mlj4p-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231130/202311300441.Pn3mlj4p-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/202311300441.Pn3mlj4p-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

kernel/time/hrtimer.c:147:20: error: unused function 'is_migration_base' [-Werror,-Wunused-function]
static inline bool is_migration_base(struct hrtimer_clock_base *base)
^
>> kernel/time/hrtimer.c:1876:20: error: unused function '__hrtimer_peek_ahead_timers' [-Werror,-Wunused-function]
static inline void __hrtimer_peek_ahead_timers(void)
^
2 errors generated.


vim +/__hrtimer_peek_ahead_timers +1876 kernel/time/hrtimer.c

54cdfdb47f73b5 kernel/hrtimer.c Thomas Gleixner 2007-02-16 1874
016da20148a169 kernel/time/hrtimer.c Stephen Boyd 2017-03-16 1875 /* called with interrupts disabled */
c6eb3f70d44828 kernel/time/hrtimer.c Thomas Gleixner 2015-04-14 @1876 static inline void __hrtimer_peek_ahead_timers(void)
8bdec955b0da2f kernel/hrtimer.c Thomas Gleixner 2009-01-05 1877 {
8bdec955b0da2f kernel/hrtimer.c Thomas Gleixner 2009-01-05 1878 struct tick_device *td;
8bdec955b0da2f kernel/hrtimer.c Thomas Gleixner 2009-01-05 1879
8bdec955b0da2f kernel/hrtimer.c Thomas Gleixner 2009-01-05 1880 if (!hrtimer_hres_active())
8bdec955b0da2f kernel/hrtimer.c Thomas Gleixner 2009-01-05 1881 return;
8bdec955b0da2f kernel/hrtimer.c Thomas Gleixner 2009-01-05 1882
22127e93c587af kernel/time/hrtimer.c Christoph Lameter 2014-08-17 1883 td = this_cpu_ptr(&tick_cpu_device);
8bdec955b0da2f kernel/hrtimer.c Thomas Gleixner 2009-01-05 1884 if (td && td->evtdev)
8bdec955b0da2f kernel/hrtimer.c Thomas Gleixner 2009-01-05 1885 hrtimer_interrupt(td->evtdev);
8bdec955b0da2f kernel/hrtimer.c Thomas Gleixner 2009-01-05 1886 }
8bdec955b0da2f kernel/hrtimer.c Thomas Gleixner 2009-01-05 1887

:::::: The code at line 1876 was first introduced by commit
:::::: c6eb3f70d4482806dc2d3e1e3c7736f497b1d418 hrtimer: Get rid of hrtimer softirq

:::::: TO: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
:::::: CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki