lkml.org 
[lkml]   [2017]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[rcu:ms 2/2] mm/mlock.c:825:35: error: passing argument 1 of 'down_write_killable_mmap_sem' from incompatible pointer type
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git ms
head: 49683159093b2bd63321b7e997e225a40fe5f3cd
commit: 49683159093b2bd63321b7e997e225a40fe5f3cd [2/2] mm: Apply mmap_sem locking wrappers
config: i386-tinyconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 49683159093b2bd63321b7e997e225a40fe5f3cd
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

mm/mlock.c: In function 'sys_munlockall':
>> mm/mlock.c:825:35: error: passing argument 1 of 'down_write_killable_mmap_sem' from incompatible pointer type [-Werror=incompatible-pointer-types]
if (down_write_killable_mmap_sem(&current->mm))
^
In file included from include/linux/mm.h:16:0,
from include/linux/mman.h:4,
from mm/mlock.c:9:
include/linux/mm_types.h:550:19: note: expected 'struct mm_struct *' but argument is of type 'struct mm_struct **'
static inline int down_write_killable_mmap_sem(struct mm_struct *mm)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +/down_write_killable_mmap_sem +825 mm/mlock.c

819 }
820
821 SYSCALL_DEFINE0(munlockall)
822 {
823 int ret;
824
> 825 if (down_write_killable_mmap_sem(&current->mm))
826 return -EINTR;
827 ret = apply_mlockall_flags(0);
828 up_write_mmap_sem(current->mm);

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2017-05-23 23:07    [W:0.042 / U:1.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site