linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 7614/7828] ipc/shm.c:1368:3: error: too few arguments to function 'do_munmap'
@ 2017-02-05  1:02 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-02-05  1:02 UTC (permalink / raw)
  To: Mike Rapoport; +Cc: kbuild-all, Andrew Morton, Linux Memory Management List

[-- 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 --]

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

only message in thread, other threads:[~2017-02-05  1:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-05  1:02 [linux-next:master 7614/7828] ipc/shm.c:1368:3: error: too few arguments to function 'do_munmap' kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox