arch/mips/include/asm/uaccess.h:889:44: error: 'len' undeclared

[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.uaccess
head:   96ab63186a96337f75ffe347cef9328d8aadd69e
commit: 5821b3d89d534f1fc0df2c67d36dca9b699b34b4 mips: switch to RAW_COPY_USER
date:   3 hours ago
config: mips-allmodconfig (attached as .config)
compiler: mips-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 5821b3d89d534f1fc0df2c67d36dca9b699b34b4
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/uaccess.h:13:0,
                    from include/linux/highmem.h:8,
                    from include/linux/bio.h:21,
                    from include/linux/writeback.h:205,
                    from include/linux/memcontrol.h:30,
                    from include/linux/swap.h:8,
                    from include/linux/suspend.h:4,
                    from arch/mips/kernel/asm-offsets.c:16:
   arch/mips/include/asm/uaccess.h: In function 'raw_copy_to_user':
>> arch/mips/include/asm/uaccess.h:889:44: error: 'len' undeclared (first use in this function)
      return __invoke_copy_to_kernel(to, from, len);
                                               ^
   arch/mips/include/asm/uaccess.h:831:16: note: in definition of macro '__invoke_copy_to'
     __cu_len_r = (n);      \
                   ^
>> arch/mips/include/asm/uaccess.h:889:10: note: in expansion of macro '__invoke_copy_to_kernel'
      return __invoke_copy_to_kernel(to, from, len);
             ^~~~~~~~~~~~~~~~~~~~~~~
   arch/mips/include/asm/uaccess.h:889:44: note: each undeclared identifier is reported only once for each function it appears in
      return __invoke_copy_to_kernel(to, from, len);
                                               ^
   arch/mips/include/asm/uaccess.h:831:16: note: in definition of macro '__invoke_copy_to'
     __cu_len_r = (n);      \
                   ^
>> arch/mips/include/asm/uaccess.h:889:10: note: in expansion of macro '__invoke_copy_to_kernel'
      return __invoke_copy_to_kernel(to, from, len);
             ^~~~~~~~~~~~~~~~~~~~~~~
   arch/mips/include/asm/uaccess.h: In function 'raw_copy_from_user':
   arch/mips/include/asm/uaccess.h:898:46: error: 'len' undeclared (first use in this function)
      return __invoke_copy_from_kernel(to, from, len);
                                                 ^
   arch/mips/include/asm/uaccess.h:808:16: note: in definition of macro '__invoke_copy_from'
     __cu_len_r = (n);      \
                   ^
>> arch/mips/include/asm/uaccess.h:898:10: note: in expansion of macro '__invoke_copy_from_kernel'
      return __invoke_copy_from_kernel(to, from, len);
             ^~~~~~~~~~~~~~~~~~~~~~~~~
   make[2]: *** [arch/mips/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +/len +889 arch/mips/include/asm/uaccess.h

   883	#endif /* CONFIG_EVA */
   884	
   885	static inline unsigned long
   886	raw_copy_to_user(void __user *to, const void *from, unsigned long n)
   887	{
   888		if (eva_kernel_access())
 > 889			return __invoke_copy_to_kernel(to, from, len);
   890		else
   891			return __invoke_copy_to_user(to, from, len);
   892	}
   893	
   894	static inline unsigned long
   895	raw_copy_from_user(void *to, const void __user *from, unsigned long n)
   896	{
   897		if (eva_kernel_access())
 > 898			return __invoke_copy_from_kernel(to, from, len);
   899		else
   900			return __invoke_copy_from_user(to, from, len);
   901	}

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