All of lore.kernel.org
 help / color / mirror / Atom feed
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_trace_support_v5 86/108] include/asm-generic/memory_model.h:56:14: error: implicit declaration of function 'memdesc_section'
Date: Fri, 21 Aug 2026 16:58:34 +0800	[thread overview]
Message-ID: <202608211609.BQbIh963-lkp@intel.com> (raw)

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/202608211609.BQbIh963-lkp@intel.com/config)
compiler: riscv32-linux-gcc (GCC) 9.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260821/202608211609.BQbIh963-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/202608211609.BQbIh963-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: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) <willy@infradead.org>
:::::: CC: Andrew Morton <akpm@linux-foundation.org>

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

                 reply	other threads:[~2026-08-21  8:59 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=202608211609.BQbIh963-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.