[linux-next:master 7614/7828] ipc/shm.c:1368:3: error: too few arguments to function 'do_munmap'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
:::::: CC: David Howells <dhowells@xxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]
  Powered by Linux