From: kernel test robot <lkp@intel.com>
To: Anup Patel <anup.patel@oss.qualcomm.com>
Cc: oe-kbuild-all@lists.linux.dev,
Himanshu Chauhan <himanshu.chauhan@oss.qualcomm.com>
Subject: [avpatel:riscv_mpxy_imp_v1 2/5] include/asm-generic/memory_model.h:56:21: error: implicit declaration of function 'memdesc_section'
Date: Wed, 30 Sep 2026 04:21:31 +0200 [thread overview]
Message-ID: <202609300412.K0Nx5T4e-lkp@intel.com> (raw)
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
reply other threads:[~2026-09-30 2:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202609300412.K0Nx5T4e-lkp@intel.com \
--to=lkp@intel.com \
--cc=anup.patel@oss.qualcomm.com \
--cc=himanshu.chauhan@oss.qualcomm.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.