net/sunrpc/clnt.c:3332:9: sparse: sparse: cast removes address space '__rcu' of expression

From: kernel test robot

Date: Sun Feb 15 2026 - 14:48:12 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: bb7a3fc2c976b5d0deb35a54ca237519816d7ba9
commit: bb504321b96550f9a351920e169de141a3f4c6a1 SUNRPC: display total RPC tasks for RPC client
date: 1 year, 1 month ago
config: i386-randconfig-063-20260216 (https://download.01.org/0day-ci/archive/20260216/202602160345.qNQDuGRr-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260216/202602160345.qNQDuGRr-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/202602160345.qNQDuGRr-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> net/sunrpc/clnt.c:3332:9: sparse: sparse: cast removes address space '__rcu' of expression

vim +/__rcu +3332 net/sunrpc/clnt.c

3328
3329 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
3330 static void rpc_show_header(struct rpc_clnt *clnt)
3331 {
> 3332 printk(KERN_INFO "clnt[%pISpc] RPC tasks[%d]\n",
3333 (struct sockaddr *)&clnt->cl_xprt->addr,
3334 atomic_read(&clnt->cl_task_count));
3335 printk(KERN_INFO "-pid- flgs status -client- --rqstp- "
3336 "-timeout ---ops--\n");
3337 }
3338

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