mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, x86@kernel.org
Subject: [tip:tmp.tmp2 299/364] include/asm-generic/memory_model.h:34:55: error: 'mem_map' undeclared; did you mean 'memcmp'?
Date: Mon, 14 Jun 2021 07:05:57 +0800	[thread overview]
Message-ID: <202106140750.BrGi49sx-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 18642 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head:   adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 4392e2ebf7f46654e0f80914a847a293fbbb3e11 [299/364] sched/headers, fs: Simplify <linux/fs.h> dependencies
config: i386-defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=4392e2ebf7f46654e0f80914a847a293fbbb3e11
        git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
        git fetch --no-tags tip tmp.tmp2
        git checkout 4392e2ebf7f46654e0f80914a847a293fbbb3e11
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/page.h:76,
                    from arch/x86/include/asm/processor.h:23,
                    from include/linux/mutex.h:21,
                    from include/linux/notifier.h:14,
                    from include/linux/reboot.h:6,
                    from arch/x86/kernel/crash.c:19:
   include/linux/kexec.h: In function 'page_to_boot_pfn':
>> include/asm-generic/memory_model.h:34:55: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'?
      34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \
         |                                                       ^~~~~~~
   include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
      81 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn'
     373 |  return page_to_pfn(page);
         |         ^~~~~~~~~~~
   include/asm-generic/memory_model.h:34:55: note: each undeclared identifier is reported only once for each function it appears in
      34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \
         |                                                       ^~~~~~~
   include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
      81 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn'
     373 |  return page_to_pfn(page);
         |         ^~~~~~~~~~~
   include/linux/kexec.h: In function 'boot_pfn_to_page':
   include/asm-generic/memory_model.h:33:29: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'?
      33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                             ^~~~~~~
   include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
      82 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:380:9: note: in expansion of macro 'pfn_to_page'
     380 |  return pfn_to_page(boot_pfn);
         |         ^~~~~~~~~~~
   In file included from include/linux/uaccess.h:11,
                    from include/linux/compat.h:19,
                    from include/linux/kexec.h:25,
                    from arch/x86/kernel/crash.c:20:
   arch/x86/kernel/crash.c: At top level:
   arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
      46 | static inline bool pagefault_disabled(void);
         |                    ^~~~~~~~~~~~~~~~~~
--
   In file included from arch/x86/include/asm/page.h:76,
                    from arch/x86/include/asm/user_32.h:5,
                    from arch/x86/include/asm/user.h:6,
                    from include/linux/user.h:1,
                    from include/linux/elfcore.h:5,
                    from include/linux/crash_core.h:6,
                    from include/linux/kexec.h:18,
                    from include/linux/crash_dump.h:5,
                    from arch/x86/kernel/e820.c:12:
   include/linux/kexec.h: In function 'page_to_boot_pfn':
>> include/asm-generic/memory_model.h:34:55: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'?
      34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \
         |                                                       ^~~~~~~
   include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
      81 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn'
     373 |  return page_to_pfn(page);
         |         ^~~~~~~~~~~
   include/asm-generic/memory_model.h:34:55: note: each undeclared identifier is reported only once for each function it appears in
      34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \
         |                                                       ^~~~~~~
   include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
      81 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn'
     373 |  return page_to_pfn(page);
         |         ^~~~~~~~~~~
   include/linux/kexec.h: In function 'boot_pfn_to_page':
   include/asm-generic/memory_model.h:33:29: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'?
      33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                             ^~~~~~~
   include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
      82 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:380:9: note: in expansion of macro 'pfn_to_page'
     380 |  return pfn_to_page(boot_pfn);
         |         ^~~~~~~~~~~
   In file included from include/linux/uaccess.h:11,
                    from include/linux/compat.h:19,
                    from include/linux/kexec.h:25,
                    from include/linux/crash_dump.h:5,
                    from arch/x86/kernel/e820.c:12:
   arch/x86/kernel/e820.c: At top level:
   arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
      46 | static inline bool pagefault_disabled(void);
         |                    ^~~~~~~~~~~~~~~~~~
--
   In file included from arch/x86/include/asm/page.h:76,
                    from arch/x86/include/asm/user_32.h:5,
                    from arch/x86/include/asm/user.h:6,
                    from include/linux/user.h:1,
                    from include/linux/elfcore.h:5,
                    from include/linux/crash_core.h:6,
                    from include/linux/kexec.h:18,
                    from include/linux/crash_dump.h:5,
                    from arch/x86/kernel/setup.c:9:
   include/linux/kexec.h: In function 'page_to_boot_pfn':
>> include/asm-generic/memory_model.h:34:55: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'?
      34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \
         |                                                       ^~~~~~~
   include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
      81 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn'
     373 |  return page_to_pfn(page);
         |         ^~~~~~~~~~~
   include/asm-generic/memory_model.h:34:55: note: each undeclared identifier is reported only once for each function it appears in
      34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \
         |                                                       ^~~~~~~
   include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
      81 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn'
     373 |  return page_to_pfn(page);
         |         ^~~~~~~~~~~
   include/linux/kexec.h: In function 'boot_pfn_to_page':
   include/asm-generic/memory_model.h:33:29: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'?
      33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                             ^~~~~~~
   include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
      82 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:380:9: note: in expansion of macro 'pfn_to_page'
     380 |  return pfn_to_page(boot_pfn);
         |         ^~~~~~~~~~~
   In file included from include/linux/uaccess.h:11,
                    from include/linux/compat.h:19,
                    from include/linux/kexec.h:25,
                    from include/linux/crash_dump.h:5,
                    from arch/x86/kernel/setup.c:9:
   arch/x86/kernel/setup.c: At top level:
   arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
      46 | static inline bool pagefault_disabled(void);
         |                    ^~~~~~~~~~~~~~~~~~
--
   In file included from arch/x86/include/asm/page.h:76,
                    from arch/x86/include/asm/user_32.h:5,
                    from arch/x86/include/asm/user.h:6,
                    from include/linux/user.h:1,
                    from include/linux/elfcore.h:5,
                    from include/linux/crash_core.h:6,
                    from include/linux/kexec.h:18,
                    from kernel/reboot.c:12:
   include/linux/kexec.h: In function 'page_to_boot_pfn':
>> include/asm-generic/memory_model.h:34:55: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'?
      34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \
         |                                                       ^~~~~~~
   include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
      81 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn'
     373 |  return page_to_pfn(page);
         |         ^~~~~~~~~~~
   include/asm-generic/memory_model.h:34:55: note: each undeclared identifier is reported only once for each function it appears in
      34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \
         |                                                       ^~~~~~~
   include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
      81 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn'
     373 |  return page_to_pfn(page);
         |         ^~~~~~~~~~~
   include/linux/kexec.h: In function 'boot_pfn_to_page':
   include/asm-generic/memory_model.h:33:29: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'?
      33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                             ^~~~~~~
   include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
      82 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:380:9: note: in expansion of macro 'pfn_to_page'
     380 |  return pfn_to_page(boot_pfn);
         |         ^~~~~~~~~~~
   In file included from include/linux/uaccess.h:11,
                    from include/linux/compat.h:19,
                    from include/linux/kexec.h:25,
                    from kernel/reboot.c:12:
   kernel/reboot.c: At top level:
   arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
      46 | static inline bool pagefault_disabled(void);
         |                    ^~~~~~~~~~~~~~~~~~
--
   In file included from arch/x86/include/asm/page.h:76,
                    from arch/x86/include/asm/user_32.h:5,
                    from arch/x86/include/asm/user.h:6,
                    from include/linux/user.h:1,
                    from include/linux/elfcore.h:5,
                    from include/linux/crash_core.h:6,
                    from include/linux/kexec.h:18,
                    from include/linux/crash_dump.h:5,
                    from kernel/crash_dump.c:3:
   include/linux/kexec.h: In function 'page_to_boot_pfn':
>> include/asm-generic/memory_model.h:34:55: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'?
      34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \
         |                                                       ^~~~~~~
   include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
      81 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn'
     373 |  return page_to_pfn(page);
         |         ^~~~~~~~~~~
   include/asm-generic/memory_model.h:34:55: note: each undeclared identifier is reported only once for each function it appears in
      34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \
         |                                                       ^~~~~~~
   include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
      81 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn'
     373 |  return page_to_pfn(page);
         |         ^~~~~~~~~~~
   include/linux/kexec.h: In function 'boot_pfn_to_page':
   include/asm-generic/memory_model.h:33:29: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'?
      33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                             ^~~~~~~
   include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
      82 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:380:9: note: in expansion of macro 'pfn_to_page'
     380 |  return pfn_to_page(boot_pfn);
         |         ^~~~~~~~~~~
   In file included from include/linux/uaccess.h:11,
                    from include/linux/compat.h:19,
                    from include/linux/kexec.h:25,
                    from include/linux/crash_dump.h:5,
                    from kernel/crash_dump.c:3:
   kernel/crash_dump.c: At top level:
   arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
      46 | static inline bool pagefault_disabled(void);
         |                    ^~~~~~~~~~~~~~~~~~
--
   In file included from arch/x86/include/asm/page.h:76,
                    from arch/x86/include/asm/user_32.h:5,
                    from arch/x86/include/asm/user.h:6,
                    from include/linux/user.h:1,
                    from include/linux/elfcore.h:5,
                    from include/linux/crash_core.h:6,
                    from include/linux/kexec.h:18,
                    from lib/dump_stack.c:13:
   include/linux/kexec.h: In function 'page_to_boot_pfn':
>> include/asm-generic/memory_model.h:34:55: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'?
      34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \
         |                                                       ^~~~~~~
   include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
      81 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn'
     373 |  return page_to_pfn(page);
         |         ^~~~~~~~~~~
   include/asm-generic/memory_model.h:34:55: note: each undeclared identifier is reported only once for each function it appears in
      34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \
         |                                                       ^~~~~~~
   include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
      81 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn'
     373 |  return page_to_pfn(page);
         |         ^~~~~~~~~~~
   include/linux/kexec.h: In function 'boot_pfn_to_page':
   include/asm-generic/memory_model.h:33:29: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'?
      33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                             ^~~~~~~
   include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
      82 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   include/linux/kexec.h:380:9: note: in expansion of macro 'pfn_to_page'
     380 |  return pfn_to_page(boot_pfn);
         |         ^~~~~~~~~~~
   In file included from include/linux/uaccess.h:11,
                    from include/linux/compat.h:19,
                    from include/linux/kexec.h:25,
                    from lib/dump_stack.c:13:
   lib/dump_stack.c: At top level:
   arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
      46 | static inline bool pagefault_disabled(void);
         |                    ^~~~~~~~~~~~~~~~~~


vim +34 include/asm-generic/memory_model.h

a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27  32  
67de648211fa04 Andy Whitcroft    2006-06-23  33  #define __pfn_to_page(pfn)	(mem_map + ((pfn) - ARCH_PFN_OFFSET))
67de648211fa04 Andy Whitcroft    2006-06-23 @34  #define __page_to_pfn(page)	((unsigned long)((page) - mem_map) + \
a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27  35  				 ARCH_PFN_OFFSET)
a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27  36  #elif defined(CONFIG_DISCONTIGMEM)
a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27  37  

:::::: The code at line 34 was first introduced by commit
:::::: 67de648211fa041fe08a0c25241a4980bbb90698 [PATCH] squash duplicate page_to_pfn and pfn_to_page

:::::: TO: Andy Whitcroft <apw@shadowen.org>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29247 bytes --]

                 reply	other threads:[~2021-06-13 23:06 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=202106140750.BrGi49sx-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=x86@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®