public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [paulmck-rcu:dev.2024.07.04a 51/60] kernel/rcu/tasks.h:2048:13: warning: 'test_rcu_tasks_callback' defined but not used
Date: Fri, 5 Jul 2024 10:57:00 +0800	[thread overview]
Message-ID: <202407051058.MZAxjsJZ-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2024.07.04a
head:   eb325da54c0ff3147fa6dc7be2a313f45715f904
commit: 9bd3378dd10ba24793a049b5c71f87e01ddb3b51 [51/60] rcu-tasks: Remove RCU Tasks Rude asynchronous APIs
config: i386-buildonly-randconfig-002-20240705 (https://download.01.org/0day-ci/archive/20240705/202407051058.MZAxjsJZ-lkp@intel.com/config)
compiler: gcc-9 (Ubuntu 9.5.0-4ubuntu2) 9.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240705/202407051058.MZAxjsJZ-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/202407051058.MZAxjsJZ-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from kernel/rcu/update.c:656:
>> kernel/rcu/tasks.h:2048:13: warning: 'test_rcu_tasks_callback' defined but not used [-Wunused-function]
    2048 | static void test_rcu_tasks_callback(struct rcu_head *rhp)
         |             ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from kernel/rcu/update.c:656:
>> kernel/rcu/tasks.h:399:13: warning: 'rcu_barrier_tasks_generic' defined but not used [-Wunused-function]
     399 | static void rcu_barrier_tasks_generic(struct rcu_tasks *rtp)
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~


vim +/test_rcu_tasks_callback +2048 kernel/rcu/tasks.h

bfba7ed084f8ab Uladzislau Rezki (Sony  2020-12-09  2047) 
bfba7ed084f8ab Uladzislau Rezki (Sony  2020-12-09 @2048) static void test_rcu_tasks_callback(struct rcu_head *rhp)
bfba7ed084f8ab Uladzislau Rezki (Sony  2020-12-09  2049) {
bfba7ed084f8ab Uladzislau Rezki (Sony  2020-12-09  2050) 	struct rcu_tasks_test_desc *rttd =
bfba7ed084f8ab Uladzislau Rezki (Sony  2020-12-09  2051) 		container_of(rhp, struct rcu_tasks_test_desc, rh);
bfba7ed084f8ab Uladzislau Rezki (Sony  2020-12-09  2052) 
bfba7ed084f8ab Uladzislau Rezki (Sony  2020-12-09  2053) 	pr_info("Callback from %s invoked.\n", rttd->name);
bfba7ed084f8ab Uladzislau Rezki (Sony  2020-12-09  2054) 
1cf1144e8473e8 Paul E. McKenney        2022-06-07  2055  	rttd->notrun = false;
bfba7ed084f8ab Uladzislau Rezki (Sony  2020-12-09  2056) }
bfba7ed084f8ab Uladzislau Rezki (Sony  2020-12-09  2057) 

:::::: The code at line 2048 was first introduced by commit
:::::: bfba7ed084f8ab0269a5a1d2f51b07865456c334 rcu-tasks: Add RCU-tasks self tests

:::::: TO: Uladzislau Rezki (Sony) <urezki@gmail.com>
:::::: CC: Paul E. McKenney <paulmck@kernel.org>

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

                 reply	other threads:[~2024-07-05  2:57 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=202407051058.MZAxjsJZ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=paulmck@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