From: kernel test robot <lkp@intel.com>
To: "Dr. David Alan Gilbert" <linux@treblig.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
x86@kernel.org, Thomas Gleixner <tglx@linutronix.de>
Subject: [tip:timers/core 25/25] kernel/time/clocksource.c:1258:13: warning: '__clocksource_change_rating' defined but not used
Date: Thu, 10 Oct 2024 09:10:30 +0800 [thread overview]
Message-ID: <202410100903.emvWh4LZ-lkp@intel.com> (raw)
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
reply other threads:[~2024-10-10 1:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202410100903.emvWh4LZ-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@treblig.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox