All of lore.kernel.org
 help / color / mirror / Atom feed
* [asm-generic:master 2/6] arch/x86/mm/mpx.c:57:26: error: 'MAP_PRIVATE' undeclared
@ 2019-02-18 18:21 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-02-18 18:21 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: kbuild-all, linux-arch, Arnd Bergmann

[-- Attachment #1: Type: text/plain, Size: 2915 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-randconfig-l2-02182029 (attached as .config)
compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010
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)
             MAP_ANONYMOUS | MAP_PRIVATE, VM_MPX, 0, &populate, NULL);
                             ^
   arch/x86/mm/mpx.c:57:26: note: each undeclared identifier is reported only once for each function it appears in

vim +/MAP_PRIVATE +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: 32520 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-02-18 18:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-18 18:21 [asm-generic:master 2/6] arch/x86/mm/mpx.c:57:26: error: 'MAP_PRIVATE' undeclared kbuild test robot

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.