[vfs:uaccess-fixes 17/28] arch/powerpc/include/asm/uaccess.h:311:16: error: unused variable 'over'

[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 uaccess-fixes
head:   e0d18a84b133198aacb436f5a1c2a6ed97ec0155
commit: 8346f23b615d1890e06cf1fdfe922f6769b7adfd [17/28] ppc32: fix copy_from_user()
config: powerpc-allnoconfig (attached as .config)
compiler: powerpc-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609
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 8346f23b615d1890e06cf1fdfe922f6769b7adfd
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   In file included from include/linux/uaccess.h:5:0,
                    from include/linux/regset.h:19,
                    from arch/powerpc/kernel/ptrace.c:24:
   arch/powerpc/include/asm/uaccess.h: In function 'copy_from_user':
>> arch/powerpc/include/asm/uaccess.h:311:16: error: unused variable 'over' [-Werror=unused-variable]
     unsigned long over;
                   ^
   arch/powerpc/include/asm/uaccess.h: In function 'copy_to_user':
   arch/powerpc/include/asm/uaccess.h:325:16: error: unused variable 'over' [-Werror=unused-variable]
     unsigned long over;
                   ^
   cc1: all warnings being treated as errors

vim +/over +311 arch/powerpc/include/asm/uaccess.h

2df5e8bc include/asm-powerpc/uaccess.h      Stephen Rothwell 2005-10-29  305  
2df5e8bc include/asm-powerpc/uaccess.h      Stephen Rothwell 2005-10-29  306  #ifndef __powerpc64__
5015b494 include/asm-powerpc/uaccess.h      Stephen Rothwell 2005-10-31  307  
4cfbdfff include/asm-powerpc/uaccess.h      Adrian Bunk      2006-12-01  308  static inline unsigned long copy_from_user(void *to,
5015b494 include/asm-powerpc/uaccess.h      Stephen Rothwell 2005-10-31  309  		const void __user *from, unsigned long n)
2df5e8bc include/asm-powerpc/uaccess.h      Stephen Rothwell 2005-10-29  310  {
2df5e8bc include/asm-powerpc/uaccess.h      Stephen Rothwell 2005-10-29 @311  	unsigned long over;
2df5e8bc include/asm-powerpc/uaccess.h      Stephen Rothwell 2005-10-29  312  
8346f23b arch/powerpc/include/asm/uaccess.h Al Viro          2016-08-21  313  	if (likely(access_ok(VERIFY_READ, from, n))) {
1d3c1324 arch/powerpc/include/asm/uaccess.h Kees Cook        2016-06-23  314  		if (!__builtin_constant_p(n))

:::::: The code at line 311 was first introduced by commit
:::::: 2df5e8bcca53e528a78ee0e3b114d0d21dd6d043 powerpc: merge uaccess.h

:::::: TO: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
:::::: CC: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>

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