[willy-xarray:main 3/3] lib/xarray.c:2473:25: sparse: sparse: incorrect type in initializer (different address spaces)

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   git://git.infradead.org/users/willy/xarray.git main
head:   863810caeb3cf04ee479f3944a678574001af7a9
commit: 863810caeb3cf04ee479f3944a678574001af7a9 [3/3] XArray: Add CONFIG_DEBUG_XARRAY
config: parisc-randconfig-r111-20260818 (https://download.01.org/0day-ci/archive/20260819/[email protected]/config)
compiler: hppa-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260819/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)
   lib/xarray.c:2453:58: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const *entry @@     got void [noderef] __rcu * @@
   lib/xarray.c:2453:58: sparse:     expected void const *entry
   lib/xarray.c:2453:58: sparse:     got void [noderef] __rcu *
>> lib/xarray.c:2473:25: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void *entry @@     got void [noderef] __rcu *const xa_head @@
   lib/xarray.c:2473:25: sparse:     expected void *entry
   lib/xarray.c:2473:25: sparse:     got void [noderef] __rcu *const xa_head

vim +2473 lib/xarray.c

ad3d6c7263e368a Matthew Wilcox 2017-11-07  2470  
ad3d6c7263e368a Matthew Wilcox 2017-11-07  2471  void xa_dump(const struct xarray *xa)
ad3d6c7263e368a Matthew Wilcox 2017-11-07  2472  {
ad3d6c7263e368a Matthew Wilcox 2017-11-07 @2473  	void *entry = xa->xa_head;

:::::: The code at line 2473 was first introduced by commit
:::::: ad3d6c7263e368abdc151e1cc13dc78aa39cc7a7 xarray: Add XArray load operation

:::::: TO: Matthew Wilcox <[email protected]>
:::::: CC: Matthew Wilcox <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.