[avpatel:riscv_trace_support_v5 86/108] include/asm-generic/memory_model.h:56:14: error: implicit declaration of function 'memdesc_section'
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://github.com/avpatel/linux.git riscv_trace_support_v5 head: e58ea3f194d326370813c549a76ecdfa211a4768 commit: a81b95aa56abb5c8e32d24bcdd6d51cc998f1fcf [86/108] RISC-V: Move common MPXY helper routines to arch/riscv config: riscv-randconfig-001-20260821 (https://download.01.org/0day-ci/archive/20260821/[email protected]/config) compiler: riscv32-linux-gcc (GCC) 9.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260821/[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]/ All errors (new ones prefixed by >>): In file included from arch/riscv/kernel/sbi_mpxy.c:16: arch/riscv/kernel/sbi_mpxy.c: In function 'mpxy_setup_shmem': >> include/asm-generic/memory_model.h:56:14: error: implicit declaration of function 'memdesc_section' [-Werror=implicit-function-declaration] 56 | int __sec = memdesc_section(__pg->flags); \ | ^~~~~~~~~~~~~~~ arch/riscv/include/asm/sbi.h:634:15: note: in definition of macro 'sbi_ecall' 634 | __sbi_ecall(a0, a1, a2, a3, a4, a5, f, e) | ^~ include/asm-generic/memory_model.h:73:21: note: in expansion of macro '__page_to_pfn' 73 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/asm-generic/memory_model.h:79:24: note: in expansion of macro 'page_to_pfn' 79 | unsigned long __pfn = page_to_pfn(page); \ | ^~~~~~~~~~~ arch/riscv/kernel/sbi_mpxy.c:287:5: note: in expansion of macro 'page_to_phys' 287 | page_to_phys(shmem_page), 0, 0, 0, 0, 0); | ^~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/memdesc_section +56 include/asm-generic/memory_model.h 8f6aac419bd590 Christoph Lameter 2007-10-16 48 a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27 49 #elif defined(CONFIG_SPARSEMEM) a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27 50 /* 1a49123b343461 Zhang Yanfei 2013-10-03 51 * Note: section's mem_map is encoded to reflect its start_pfn. a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27 52 * section[i].section_mem_map == mem_map's address - start_pfn; a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27 53 */ 67de648211fa04 Andy Whitcroft 2006-06-23 54 #define __page_to_pfn(pg) \ aa462abe8aaf21 Ian Campbell 2011-08-17 55 ({ const struct page *__pg = (pg); \ 56d578c1300f7e Matthew Wilcox (Oracle 2025-08-05 @56) int __sec = memdesc_section(__pg->flags); \ f05b6284ee5d3b Randy Dunlap 2007-02-10 57 (unsigned long)(__pg - __section_mem_map_addr(__nr_to_section(__sec))); \ a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27 58 }) a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27 59 :::::: The code at line 56 was first introduced by commit :::::: 56d578c1300f7efe9605b75714173dd3fda16fe2 mm: convert page_to_section() to memdesc_section() :::::: TO: Matthew Wilcox (Oracle) <[email protected]> :::::: CC: Andrew Morton <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki