public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [tip:timers/core 25/25] kernel/time/clocksource.c:1258:13: warning: '__clocksource_change_rating' defined but not used
@ 2024-10-10  1:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-10  1:10 UTC (permalink / raw)
  To: Dr. David Alan Gilbert; +Cc: oe-kbuild-all, linux-kernel, x86, Thomas Gleixner

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@intel.com/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@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/202410100903.emvWh4LZ-lkp@intel.com/

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@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

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

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-10  1:10 [tip:timers/core 25/25] kernel/time/clocksource.c:1258:13: warning: '__clocksource_change_rating' defined but not used 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