[linux-next:master 6771/7300] fs/afs/main.c:159:9: sparse: sparse: incorrect type in argument 1 (different address spaces)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   48e8992e33abf054bcc0bb2e77b2d43bb899212e
commit: 83101146668283fa5109921fde006287e0f4e195 [6771/7300] afs: Provide a way to configure address priorities
config: nios2-randconfig-r112-20231213 (https://download.01.org/0day-ci/archive/20231213/202312131907.mnyTUNnO-lkp@xxxxxxxxx/config)
compiler: nios2-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231213/202312131907.mnyTUNnO-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/202312131907.mnyTUNnO-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> fs/afs/main.c:159:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct callback_head *head @@     got struct callback_head [noderef] __rcu * @@
   fs/afs/main.c:159:9: sparse:     expected struct callback_head *head
   fs/afs/main.c:159:9: sparse:     got struct callback_head [noderef] __rcu *
>> fs/afs/main.c:159:9: sparse: sparse: cast removes address space '__rcu' of expression

vim +159 fs/afs/main.c

   144	
   145	/*
   146	 * Clean up and destroy an AFS network namespace record.
   147	 */
   148	static void __net_exit afs_net_exit(struct net *net_ns)
   149	{
   150		struct afs_net *net = afs_net(net_ns);
   151	
   152		net->live = false;
   153		afs_fs_probe_cleanup(net);
   154		afs_cell_purge(net);
   155		afs_purge_servers(net);
   156		afs_close_socket(net);
   157		afs_proc_cleanup(net);
   158		afs_put_sysnames(net->sysnames);
 > 159		kfree_rcu(net->address_prefs, rcu);
   160	}
   161	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux