[vfs:work.misc 25/30] drivers/sbus/char/openprom.c:393:8: error: too many arguments to function 'memdup_user_nul'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.misc
head:   904256144f9d88e6189a904953c91f639ca521aa
commit: 4212cdde8483ce3c3b5665657d74d1c2d4707dad [25/30] new helper: memdup_user_nul()
config: sparc64-allyesconfig (attached as .config)
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 4212cdde8483ce3c3b5665657d74d1c2d4707dad
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   drivers/sbus/char/openprom.c: In function 'copyin_string':
>> drivers/sbus/char/openprom.c:393:8: error: too many arguments to function 'memdup_user_nul'
     tmp = memdup_user_nul(user, len, GFP_KERNEL);
           ^
   In file included from include/linux/bitmap.h:8:0,
                    from include/linux/nodemask.h:92,
                    from include/linux/mmzone.h:16,
                    from include/linux/gfp.h:5,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/sbus/char/openprom.c:32:
   include/linux/string.h:13:14: note: declared here
    extern void *memdup_user_nul(const void __user *, size_t);
                 ^

vim +/memdup_user_nul +393 drivers/sbus/char/openprom.c

   387	{
   388		char *tmp;
   389	
   390		if ((ssize_t)len < 0 || (ssize_t)(len + 1) < 0)
   391			return -EINVAL;
   392	
 > 393		tmp = memdup_user_nul(user, len, GFP_KERNEL);
   394		if (IS_ERR(tmp))
   395			return PTR_ERR(tmp);
   396	

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux