lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202407051058.MZAxjsJZ-lkp@intel.com>
Date: Fri, 5 Jul 2024 10:57:00 +0800
From: kernel test robot <lkp@...el.com>
To: "Paul E. McKenney" <paulmck@...nel.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.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

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@...el.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@...il.com>
:::::: CC: Paul E. McKenney <paulmck@...nel.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ