Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1648677 > unrolled thread

[rcu:ms 2/2] mm/mlock.c:825:35: error: passing argument 1 of 'down_write_killable_mmap_sem' from incompatible pointer type

Started bykbuild test robot <fengguang.wu@intel.com>
First post2017-05-23 23:10 +0200
Last post2017-05-23 23:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [rcu:ms 2/2] mm/mlock.c:825:35: error: passing argument 1 of  'down_write_killable_mmap_sem' from incompatible pointer type kbuild test robot <fengguang.wu@intel.com> - 2017-05-23 23:10 +0200

#1648677 — [rcu:ms 2/2] mm/mlock.c:825:35: error: passing argument 1 of 'down_write_killable_mmap_sem' from incompatible pointer type

Fromkbuild test robot <fengguang.wu@intel.com>
Date2017-05-23 23:10 +0200
Subject[rcu:ms 2/2] mm/mlock.c:825:35: error: passing argument 1 of 'down_write_killable_mmap_sem' from incompatible pointer type
Message-ID<tKpe2-rD-15@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web