* [avpatel:riscv_mpxy_imp_v1 2/5] include/asm-generic/memory_model.h:56:21: error: implicit declaration of function 'memdesc_section'
@ 2026-09-30 2:21 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-30 2:21 UTC (permalink / raw)
To: Anup Patel; +Cc: oe-kbuild-all, Himanshu Chauhan
tree: https://github.com/avpatel/linux.git riscv_mpxy_imp_v1
head: ca441e957bb4806b528959ae80efb7e7a9f5447a
commit: 36c74ca9f1dd2278453c544310c73d45beb9c993 [2/5] RISC-V: Move common MPXY helper routines to arch/riscv
config: riscv-randconfig-2000-20260930 (https://download.01.org/0day-ci/archive/20260930/202609300412.K0Nx5T4e-lkp@intel.com/config)
compiler: riscv32-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260930/202609300412.K0Nx5T4e-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/202609300412.K0Nx5T4e-lkp@intel.com/
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:21: error: implicit declaration of function 'memdesc_section' [-Wimplicit-function-declaration]
56 | int __sec = memdesc_section(&__pg->flags); \
| ^~~~~~~~~~~~~~~
arch/riscv/include/asm/sbi.h:573:29: note: in definition of macro 'sbi_ecall'
573 | __sbi_ecall(a0, a1, a2, a3, a4, a5, f, e)
| ^~
include/asm-generic/memory_model.h:85:33: note: in expansion of macro 'PFN_PHYS'
85 | #define page_to_phys(page) PFN_PHYS(page_to_pfn(page))
| ^~~~~~~~
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:85:42: note: in expansion of macro 'page_to_pfn'
85 | #define page_to_phys(page) PFN_PHYS(page_to_pfn(page))
| ^~~~~~~~~~~
arch/riscv/kernel/sbi_mpxy.c:292:26: note: in expansion of macro 'page_to_phys'
292 | page_to_phys(shmem_page), 0, 0, 0, 0, 0);
| ^~~~~~~~~~~~
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); \
67a06fdfbf6f59 Hui Zhu 2026-06-30 @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
:::::: 67a06fdfbf6f590d3e47b0592559e8fdc2a6998a mm: fix ASSERT_EXCLUSIVE_BITS by passing memdesc_flags_t by pointer
:::::: TO: Hui Zhu <zhuhui@kylinos.cn>
:::::: CC: Andrew Morton <akpm@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-09-30 2:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-30 2:21 [avpatel:riscv_mpxy_imp_v1 2/5] include/asm-generic/memory_model.h:56:21: error: implicit declaration of function 'memdesc_section' 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.