All of lore.kernel.org
 help / color / mirror / Atom feed
* [akpm-mm:mm-new 159/160] include/linux/mmzone.h:2052:18: sparse: sparse: incorrect type in return expression (different address spaces)
@ 2026-04-15 13:31 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-15 13:31 UTC (permalink / raw)
  To: Muchun Song
  Cc: oe-kbuild-all, David Hildenbrand, Andrew Morton,
	Linux Memory Management List

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
head:   f358e95febcb2f3d7ac6aafab0a2b9ace9cc8b7c
commit: 085038a33b6f00e4c43cceab8116315d1d42380c [159/160] mm/sparse: fix race on mem_section->usage in pfn walkers
config: i386-randconfig-r132-20260415 (https://download.01.org/0day-ci/archive/20260415/202604152138.zbTaYxbG-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260415/202604152138.zbTaYxbG-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/202604152138.zbTaYxbG-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   mm/sparse.c: note: in included file:
>> mm/internal.h:987:19: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct mem_section_usage [noderef] __rcu *usage @@     got struct mem_section_usage *usage @@
   mm/internal.h:987:19: sparse:     expected struct mem_section_usage [noderef] __rcu *usage
   mm/internal.h:987:19: sparse:     got struct mem_section_usage *usage
--
   mm/page_alloc.c: note: in included file (through include/linux/gfp.h, include/linux/mm.h):
>> include/linux/mmzone.h:2052:18: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected unsigned long * @@     got unsigned long [noderef] __rcu * @@
   include/linux/mmzone.h:2052:18: sparse:     expected unsigned long *
   include/linux/mmzone.h:2052:18: sparse:     got unsigned long [noderef] __rcu *
>> include/linux/mmzone.h:2052:18: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected unsigned long * @@     got unsigned long [noderef] __rcu * @@
   include/linux/mmzone.h:2052:18: sparse:     expected unsigned long *
   include/linux/mmzone.h:2052:18: sparse:     got unsigned long [noderef] __rcu *
>> include/linux/mmzone.h:2052:18: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected unsigned long * @@     got unsigned long [noderef] __rcu * @@
   include/linux/mmzone.h:2052:18: sparse:     expected unsigned long *
   include/linux/mmzone.h:2052:18: sparse:     got unsigned long [noderef] __rcu *
>> include/linux/mmzone.h:2052:18: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected unsigned long * @@     got unsigned long [noderef] __rcu * @@
   include/linux/mmzone.h:2052:18: sparse:     expected unsigned long *
   include/linux/mmzone.h:2052:18: sparse:     got unsigned long [noderef] __rcu *
>> include/linux/mmzone.h:2052:18: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected unsigned long * @@     got unsigned long [noderef] __rcu * @@
   include/linux/mmzone.h:2052:18: sparse:     expected unsigned long *
   include/linux/mmzone.h:2052:18: sparse:     got unsigned long [noderef] __rcu *

vim +2052 include/linux/mmzone.h

d41dee369bff3b Andy Whitcroft 2005-06-23  2049  
f1eca35a0dc7cb Dan Williams   2019-07-18  2050  static inline unsigned long *section_to_usemap(struct mem_section *ms)
f1eca35a0dc7cb Dan Williams   2019-07-18  2051  {
f1eca35a0dc7cb Dan Williams   2019-07-18 @2052  	return ms->usage->pageblock_flags;
f1eca35a0dc7cb Dan Williams   2019-07-18  2053  }
f1eca35a0dc7cb Dan Williams   2019-07-18  2054  

:::::: The code at line 2052 was first introduced by commit
:::::: f1eca35a0dc7cb3cdb00c88c8c5e5138a65face0 mm/sparsemem: introduce struct mem_section_usage

:::::: TO: Dan Williams <dan.j.williams@intel.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-15 13:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-15 13:31 [akpm-mm:mm-new 159/160] include/linux/mmzone.h:2052:18: sparse: sparse: incorrect type in return expression (different address spaces) kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.