From: kbuild test robot <lkp@intel.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: kbuild-all@01.org, linux-arch@vger.kernel.org,
Arnd Bergmann <arnd@arndb.de>
Subject: [asm-generic:master 2/6] arch/x86//mm/mpx.c:57:26: error: 'MAP_PRIVATE' undeclared; did you mean 'DQF_PRIVATE'?
Date: Tue, 19 Feb 2019 00:28:55 +0800 [thread overview]
Message-ID: <201902190052.bZjV0Dgp%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2959 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git master
head: 3c4fcc2648569c3fe573849f9254c8c3499ec648
commit: 9ac483109d19095e22414e46d38a6817520883b9 [2/6] arch: move common mmap flags to linux/mman.h
config: x86_64-kexec (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 9ac483109d19095e22414e46d38a6817520883b9
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
arch/x86//mm/mpx.c: In function 'mpx_mmap':
>> arch/x86//mm/mpx.c:57:26: error: 'MAP_PRIVATE' undeclared (first use in this function); did you mean 'DQF_PRIVATE'?
MAP_ANONYMOUS | MAP_PRIVATE, VM_MPX, 0, &populate, NULL);
^~~~~~~~~~~
DQF_PRIVATE
arch/x86//mm/mpx.c:57:26: note: each undeclared identifier is reported only once for each function it appears in
vim +57 arch/x86//mm/mpx.c
613fcb7d3 Dave Hansen 2015-06-07 41
57319d80e Qiaowei Ren 2014-11-14 42 /*
57319d80e Qiaowei Ren 2014-11-14 43 * This is really a simplified "vm_mmap". it only handles MPX
57319d80e Qiaowei Ren 2014-11-14 44 * bounds tables (the bounds directory is user-allocated).
57319d80e Qiaowei Ren 2014-11-14 45 */
57319d80e Qiaowei Ren 2014-11-14 46 static unsigned long mpx_mmap(unsigned long len)
57319d80e Qiaowei Ren 2014-11-14 47 {
57319d80e Qiaowei Ren 2014-11-14 48 struct mm_struct *mm = current->mm;
1fcfd8db7 Oleg Nesterov 2015-09-09 49 unsigned long addr, populate;
57319d80e Qiaowei Ren 2014-11-14 50
eb099e5bc Dave Hansen 2015-06-07 51 /* Only bounds table can be allocated here */
613fcb7d3 Dave Hansen 2015-06-07 52 if (len != mpx_bt_size_bytes(mm))
57319d80e Qiaowei Ren 2014-11-14 53 return -EINVAL;
57319d80e Qiaowei Ren 2014-11-14 54
57319d80e Qiaowei Ren 2014-11-14 55 down_write(&mm->mmap_sem);
1fcfd8db7 Oleg Nesterov 2015-09-09 56 addr = do_mmap(NULL, 0, len, PROT_READ | PROT_WRITE,
897ab3e0c Mike Rapoport 2017-02-24 @57 MAP_ANONYMOUS | MAP_PRIVATE, VM_MPX, 0, &populate, NULL);
57319d80e Qiaowei Ren 2014-11-14 58 up_write(&mm->mmap_sem);
1fcfd8db7 Oleg Nesterov 2015-09-09 59 if (populate)
1fcfd8db7 Oleg Nesterov 2015-09-09 60 mm_populate(addr, populate);
57319d80e Qiaowei Ren 2014-11-14 61
1fcfd8db7 Oleg Nesterov 2015-09-09 62 return addr;
57319d80e Qiaowei Ren 2014-11-14 63 }
fcc7ffd67 Dave Hansen 2014-11-14 64
:::::: The code at line 57 was first introduced by commit
:::::: 897ab3e0c49e24b62e2d54d165c7afec6bbca65b userfaultfd: non-cooperative: add event for memory unmaps
:::::: TO: Mike Rapoport <rppt@linux.vnet.ibm.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26402 bytes --]
next reply other threads:[~2019-02-18 16:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-18 16:28 kbuild test robot [this message]
2019-02-18 16:44 ` [asm-generic:master 2/6] arch/x86//mm/mpx.c:57:26: error: 'MAP_PRIVATE' undeclared; did you mean 'DQF_PRIVATE'? Michael S. Tsirkin
2019-02-18 16:52 ` Arnd Bergmann
2019-02-18 17:26 ` Michael S. Tsirkin
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=201902190052.bZjV0Dgp%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=arnd@arndb.de \
--cc=kbuild-all@01.org \
--cc=linux-arch@vger.kernel.org \
--cc=mst@redhat.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