[tip:timers/core 25/25] kernel/time/clocksource.c:1258:13: warning: '__clocksource_change_rating' defined but not used

From: kernel test robot
Date: Wed Oct 09 2024 - 21:10:59 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core
head: 5ce9bb4d5af2f5ef38f134e3cb400c873d357de7
commit: 5ce9bb4d5af2f5ef38f134e3cb400c873d357de7 [25/25] clocksource: Remove unused clocksource_change_rating
config: openrisc-allnoconfig (https://download.01.org/0day-ci/archive/20241010/202410100903.emvWh4LZ-lkp@xxxxxxxxx/config)
compiler: or1k-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241010/202410100903.emvWh4LZ-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/202410100903.emvWh4LZ-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> kernel/time/clocksource.c:1258:13: warning: '__clocksource_change_rating' defined but not used [-Wunused-function]
1258 | static void __clocksource_change_rating(struct clocksource *cs, int rating)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/__clocksource_change_rating +1258 kernel/time/clocksource.c

d7e81c269db899 John Stultz 2010-05-07 1257
d0981a1b21a038 Thomas Gleixner 2009-08-19 @1258 static void __clocksource_change_rating(struct clocksource *cs, int rating)
d0981a1b21a038 Thomas Gleixner 2009-08-19 1259 {
d0981a1b21a038 Thomas Gleixner 2009-08-19 1260 list_del(&cs->list);
d0981a1b21a038 Thomas Gleixner 2009-08-19 1261 cs->rating = rating;
d0981a1b21a038 Thomas Gleixner 2009-08-19 1262 clocksource_enqueue(cs);
d0981a1b21a038 Thomas Gleixner 2009-08-19 1263 }
d0981a1b21a038 Thomas Gleixner 2009-08-19 1264

:::::: The code at line 1258 was first introduced by commit
:::::: d0981a1b21a03866c8da7f44e35e389c2e0d6061 clocksource: Protect the watchdog rating changes with clocksource_mutex

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

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