linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Mike Rapoport <rppt@linux.vnet.ibm.com>
Cc: kbuild-all@01.org, Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 7614/7828] ipc/shm.c:1368:3: error: too few arguments to function 'do_munmap'
Date: Sun, 5 Feb 2017 09:02:45 +0800	[thread overview]
Message-ID: <201702050936.w69pXavt%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3570 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   421cf055e6a2d2d91556320781175b8050da2b7c
commit: 197b090832eaa4a6ed2e092ff8d4ab3f0511a049 [7614/7828] userfaultfd: non-cooperative: add event for memory unmaps
config: c6x-evmc6678_defconfig (attached as .config)
compiler: c6x-elf-gcc (GCC) 6.2.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 197b090832eaa4a6ed2e092ff8d4ab3f0511a049
        # save the attached .config to linux build tree
        make.cross ARCH=c6x 

All errors (new ones prefixed by >>):

   ipc/shm.c: In function 'SYSC_shmdt':
>> ipc/shm.c:1368:3: error: too few arguments to function 'do_munmap'
      do_munmap(mm, vma->vm_start, vma->vm_end - vma->vm_start);
      ^~~~~~~~~
   In file included from ipc/shm.c:28:0:
   include/linux/mm.h:2093:12: note: declared here
    extern int do_munmap(struct mm_struct *, unsigned long, size_t,
               ^~~~~~~~~
--
>> mm/nommu.c:1201:15: error: conflicting types for 'do_mmap'
    unsigned long do_mmap(struct file *file,
                  ^~~~~~~
   In file included from mm/nommu.c:19:0:
   include/linux/mm.h:2089:22: note: previous declaration of 'do_mmap' was here
    extern unsigned long do_mmap(struct file *file, unsigned long addr,
                         ^~~~~~~
>> mm/nommu.c:1580:5: error: conflicting types for 'do_munmap'
    int do_munmap(struct mm_struct *mm, unsigned long start, size_t len)
        ^~~~~~~~~
   In file included from mm/nommu.c:19:0:
   include/linux/mm.h:2093:12: note: previous declaration of 'do_munmap' was here
    extern int do_munmap(struct mm_struct *, unsigned long, size_t,
               ^~~~~~~~~
   In file included from mm/nommu.c:18:0:
   mm/nommu.c:1638:15: error: conflicting types for 'do_munmap'
    EXPORT_SYMBOL(do_munmap);
                  ^
   include/linux/export.h:58:21: note: in definition of macro '___EXPORT_SYMBOL'
     extern typeof(sym) sym;      \
                        ^~~
   mm/nommu.c:1638:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(do_munmap);
    ^~~~~~~~~~~~~
   In file included from mm/nommu.c:19:0:
   include/linux/mm.h:2093:12: note: previous declaration of 'do_munmap' was here
    extern int do_munmap(struct mm_struct *, unsigned long, size_t,
               ^~~~~~~~~

vim +/do_munmap +1368 ipc/shm.c

^1da177e4 Linus Torvalds  2005-04-16  1362  
8feae1311 David Howells   2009-01-08  1363  #else	/* CONFIG_MMU */
8feae1311 David Howells   2009-01-08  1364  	/* under NOMMU conditions, the exact address to be destroyed must be
63980c80e Shailesh Pandey 2016-12-14  1365  	 * given
63980c80e Shailesh Pandey 2016-12-14  1366  	 */
530fcd16d Davidlohr Bueso 2013-09-11  1367  	if (vma && vma->vm_start == addr && vma->vm_ops == &shm_vm_ops) {
8feae1311 David Howells   2009-01-08 @1368  		do_munmap(mm, vma->vm_start, vma->vm_end - vma->vm_start);
8feae1311 David Howells   2009-01-08  1369  		retval = 0;
8feae1311 David Howells   2009-01-08  1370  	}
8feae1311 David Howells   2009-01-08  1371  

:::::: The code at line 1368 was first introduced by commit
:::::: 8feae13110d60cc6287afabc2887366b0eb226c2 NOMMU: Make VMAs per MM as for MMU-mode linux

:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: David Howells <dhowells@redhat.com>

---
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: 5211 bytes --]

                 reply	other threads:[~2017-02-05  1:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=201702050936.w69pXavt%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    --cc=rppt@linux.vnet.ibm.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