* [linyunsheng:page_frag_cache_v3 12/14] include/asm-generic/memory_model.h:37:34: error: 'vmemmap' undeclared; did you mean 'mem_map'?
@ 2024-04-27 21:20 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-27 21:20 UTC (permalink / raw
To: Yunsheng Lin; +Cc: oe-kbuild-all
tree: https://github.com/gestionlin/linux.git page_frag_cache_v3
head: d4839424731dee0af1ba520ac3b177893e765399
commit: 72fcea0d811a05d5e8983f14fd6154f792054e7e [12/14] mm: page_frag: introduce prepare/probe/commit API
config: sparc-allmodconfig (https://download.01.org/0day-ci/archive/20240428/202404280542.KzacEpL7-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240428/202404280542.KzacEpL7-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/202404280542.KzacEpL7-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/sparc/include/asm/page_64.h:129,
from arch/sparc/include/asm/page.h:8,
from arch/sparc/include/asm/thread_info_64.h:27,
from arch/sparc/include/asm/thread_info.h:5,
from include/linux/thread_info.h:60,
from include/asm-generic/preempt.h:5,
from ./arch/sparc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:79,
from include/linux/spinlock.h:56,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:7,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:17,
from mm/page_frag_test.c:9:
include/linux/page_frag_cache.h: In function 'page_frag_alloc_pg_prepare':
>> include/asm-generic/memory_model.h:37:34: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
37 | #define __pfn_to_page(pfn) (vmemmap + (pfn))
| ^~~~~~~
include/asm-generic/memory_model.h:65:21: note: in expansion of macro '__pfn_to_page'
65 | #define pfn_to_page __pfn_to_page
| ^~~~~~~~~~~~~
arch/sparc/include/asm/page_64.h:151:33: note: in expansion of macro 'pfn_to_page'
151 | #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr)>>PAGE_SHIFT)
| ^~~~~~~~~~~
include/linux/page_frag_cache.h:158:24: note: in expansion of macro 'virt_to_page'
158 | page = virt_to_page(va);
| ^~~~~~~~~~~~
include/asm-generic/memory_model.h:37:34: note: each undeclared identifier is reported only once for each function it appears in
37 | #define __pfn_to_page(pfn) (vmemmap + (pfn))
| ^~~~~~~
include/asm-generic/memory_model.h:65:21: note: in expansion of macro '__pfn_to_page'
65 | #define pfn_to_page __pfn_to_page
| ^~~~~~~~~~~~~
arch/sparc/include/asm/page_64.h:151:33: note: in expansion of macro 'pfn_to_page'
151 | #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr)>>PAGE_SHIFT)
| ^~~~~~~~~~~
include/linux/page_frag_cache.h:158:24: note: in expansion of macro 'virt_to_page'
158 | page = virt_to_page(va);
| ^~~~~~~~~~~~
include/linux/page_frag_cache.h: In function 'page_frag_alloc_prepare':
>> include/asm-generic/memory_model.h:37:34: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
37 | #define __pfn_to_page(pfn) (vmemmap + (pfn))
| ^~~~~~~
include/asm-generic/memory_model.h:65:21: note: in expansion of macro '__pfn_to_page'
65 | #define pfn_to_page __pfn_to_page
| ^~~~~~~~~~~~~
arch/sparc/include/asm/page_64.h:151:33: note: in expansion of macro 'pfn_to_page'
151 | #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr)>>PAGE_SHIFT)
| ^~~~~~~~~~~
include/linux/page_frag_cache.h:187:24: note: in expansion of macro 'virt_to_page'
187 | page = virt_to_page(*va);
| ^~~~~~~~~~~~
include/linux/page_frag_cache.h: In function 'page_frag_alloc_probe':
>> include/asm-generic/memory_model.h:37:34: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
37 | #define __pfn_to_page(pfn) (vmemmap + (pfn))
| ^~~~~~~
include/asm-generic/memory_model.h:65:21: note: in expansion of macro '__pfn_to_page'
65 | #define pfn_to_page __pfn_to_page
| ^~~~~~~~~~~~~
arch/sparc/include/asm/page_64.h:151:33: note: in expansion of macro 'pfn_to_page'
151 | #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr)>>PAGE_SHIFT)
| ^~~~~~~~~~~
include/linux/page_frag_cache.h:210:16: note: in expansion of macro 'virt_to_page'
210 | page = virt_to_page(*va);
| ^~~~~~~~~~~~
vim +37 include/asm-generic/memory_model.h
8f6aac419bd590f Christoph Lameter 2007-10-16 35
af901ca181d92aa André Goddard Rosa 2009-11-14 36 /* memmap is virtually contiguous. */
8f6aac419bd590f Christoph Lameter 2007-10-16 @37 #define __pfn_to_page(pfn) (vmemmap + (pfn))
32272a26974d202 Martin Schwidefsky 2008-12-25 38 #define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
8f6aac419bd590f Christoph Lameter 2007-10-16 39
:::::: The code at line 37 was first introduced by commit
:::::: 8f6aac419bd590f535fb110875a51f7db2b62b5b Generic Virtual Memmap support for SPARSEMEM
:::::: TO: Christoph Lameter <clameter@sgi.com>
:::::: CC: Linus Torvalds <torvalds@woody.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:[~2024-04-27 21:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-27 21:20 [linyunsheng:page_frag_cache_v3 12/14] include/asm-generic/memory_model.h:37:34: error: 'vmemmap' undeclared; did you mean 'mem_map'? kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).