From: kbuild test robot <lkp@intel.com>
To: Nick Hu <nickhu@andestech.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Palmer Dabbelt <palmerdabbelt@google.com>
Subject: include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared; did you mean 'mem_map'?
Date: Thu, 20 Feb 2020 09:39:32 +0800 [thread overview]
Message-ID: <202002200927.E4FcU0aB%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 19642 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4b205766d8fcb1627429ff31a4b36248b71a0df1
commit: 8ad8b72721d0f07fa02dbe71f901743f9c71c8e6 riscv: Add KASAN support
date: 4 weeks ago
config: riscv-randconfig-a001-20200219 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 8ad8b72721d0f07fa02dbe71f901743f9c71c8e6
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/stat.h:19,
from include/linux/module.h:13,
from drivers/net//arcnet/arcnet.c:46:
arch/riscv/include/asm/pgtable-64.h: In function 'pud_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
include/asm-generic/memory_model.h:54:29: note: each undeclared identifier is reported only once for each function it appears in
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
--
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/stat.h:19,
from include/linux/module.h:13,
from fs//cifs/cifsfs.c:26:
arch/riscv/include/asm/pgtable-64.h: In function 'pud_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
include/asm-generic/memory_model.h:54:29: note: each undeclared identifier is reported only once for each function it appears in
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
In file included from fs//cifs/cifsglob.h:32:0,
from fs//cifs/cifsfs.c:46:
fs//cifs/smb2pdu.h: At top level:
fs//cifs/smb2pdu.h:28:10: fatal error: cifsacl.h: No such file or directory
#include <cifsacl.h>
^~~~~~~~~~~
compilation terminated.
--
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/linux/uio.h:9,
from include/linux/socket.h:8,
from include/uapi/linux/in.h:24,
from include/linux/in.h:19,
from include/linux/nfs_fs.h:22,
from fs//nfs/nfstrace.c:5:
arch/riscv/include/asm/pgtable-64.h: In function 'pud_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
include/asm-generic/memory_model.h:54:29: note: each undeclared identifier is reported only once for each function it appears in
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
In file included from fs//nfs/nfstrace.h:1207:0,
from fs//nfs/nfstrace.c:10:
include/trace/define_trace.h: At top level:
include/trace/define_trace.h:95:42: fatal error: ./nfstrace.h: No such file or directory
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
^
compilation terminated.
--
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/linux/uio.h:9,
from include/linux/socket.h:8,
from include/uapi/linux/in.h:24,
from include/linux/in.h:19,
from include/linux/nfs_fs.h:22,
from fs//nfs/nfs4trace.c:5:
arch/riscv/include/asm/pgtable-64.h: In function 'pud_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
include/asm-generic/memory_model.h:54:29: note: each undeclared identifier is reported only once for each function it appears in
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
In file included from fs//nfs/nfs4trace.h:2105:0,
from fs//nfs/nfs4trace.c:13:
include/trace/define_trace.h: At top level:
include/trace/define_trace.h:95:42: fatal error: ./nfs4trace.h: No such file or directory
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
^
compilation terminated.
--
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from fs//ocfs2/alloc.c:12:
arch/riscv/include/asm/pgtable-64.h: In function 'pud_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
include/asm-generic/memory_model.h:54:29: note: each undeclared identifier is reported only once for each function it appears in
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
fs//ocfs2/alloc.c: At top level:
fs//ocfs2/alloc.c:21:10: fatal error: cluster/masklog.h: No such file or directory
#include <cluster/masklog.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
--
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from fs//ocfs2/aops.c:8:
arch/riscv/include/asm/pgtable-64.h: In function 'pud_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
include/asm-generic/memory_model.h:54:29: note: each undeclared identifier is reported only once for each function it appears in
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
fs//ocfs2/aops.c: At top level:
fs//ocfs2/aops.c:20:10: fatal error: cluster/masklog.h: No such file or directory
#include <cluster/masklog.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
--
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/buffer_head.h:12,
from fs//ocfs2/blockcheck.c:15:
arch/riscv/include/asm/pgtable-64.h: In function 'pud_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
include/asm-generic/memory_model.h:54:29: note: each undeclared identifier is reported only once for each function it appears in
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
fs//ocfs2/blockcheck.c: At top level:
fs//ocfs2/blockcheck.c:22:10: fatal error: cluster/masklog.h: No such file or directory
#include <cluster/masklog.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
--
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from fs//ocfs2/buffer_head_io.c:12:
arch/riscv/include/asm/pgtable-64.h: In function 'pud_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
include/asm-generic/memory_model.h:54:29: note: each undeclared identifier is reported only once for each function it appears in
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
fs//ocfs2/buffer_head_io.c: At top level:
fs//ocfs2/buffer_head_io.c:17:10: fatal error: cluster/masklog.h: No such file or directory
#include <cluster/masklog.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
--
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from fs//ocfs2/dir.c:25:
arch/riscv/include/asm/pgtable-64.h: In function 'pud_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
include/asm-generic/memory_model.h:54:29: note: each undeclared identifier is reported only once for each function it appears in
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page'
return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
^~~~~~~~~~~
fs//ocfs2/dir.c: At top level:
fs//ocfs2/dir.c:33:10: fatal error: cluster/masklog.h: No such file or directory
#include <cluster/masklog.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
..
vim +54 include/asm-generic/memory_model.h
8f6aac419bd590 Christoph Lameter 2007-10-16 52
af901ca181d92a André Goddard Rosa 2009-11-14 53 /* memmap is virtually contiguous. */
8f6aac419bd590 Christoph Lameter 2007-10-16 @54 #define __pfn_to_page(pfn) (vmemmap + (pfn))
32272a26974d20 Martin Schwidefsky 2008-12-25 55 #define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
8f6aac419bd590 Christoph Lameter 2007-10-16 56
:::::: The code at line 54 was first introduced by commit
:::::: 8f6aac419bd590f535fb110875a51f7db2b62b5b Generic Virtual Memmap support for SPARSEMEM
:::::: TO: Christoph Lameter <clameter@sgi.com>
:::::: CC: Linus Torvalds <torvalds@woody.linux-foundation.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: 34487 bytes --]
next reply other threads:[~2020-02-20 1:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-20 1:39 kbuild test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-12-20 12:43 kbuild test robot
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=202002200927.E4FcU0aB%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nickhu@andestech.com \
--cc=palmerdabbelt@google.com \
/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®