[vfs:untested.uaccess 40/51] arch/sparc/include/asm/checksum_32.h:73:5: error: 'err_ptr' undeclared; did you mean 'si_ptr'?

[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 untested.uaccess
head:   5cc28922fce057003f404a956c978adbfb9fba93
commit: 2ddca056919eada9622f445a8d1da635d9118639 [40/51] sparc: switch to providing csum_and_copy_from_user()
config: sparc-defconfig (attached as .config)
compiler: sparc-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 2ddca056919eada9622f445a8d1da635d9118639
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=sparc 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   In file included from arch/sparc/include/asm/checksum.h:8:0,
                    from include/net/checksum.h:22,
                    from include/linux/skbuff.h:28,
                    from include/linux/if_ether.h:19,
                    from include/uapi/linux/ethtool.h:19,
                    from include/linux/ethtool.h:18,
                    from include/linux/netdevice.h:37,
                    from net/socket.c:62:
   arch/sparc/include/asm/checksum_32.h: In function 'csum_and_copy_from_user':
>> arch/sparc/include/asm/checksum_32.h:73:5: error: 'err_ptr' undeclared (first use in this function); did you mean 'si_ptr'?
       *err_ptr = -EFAULT;
        ^~~~~~~
        si_ptr
   arch/sparc/include/asm/checksum_32.h:73:5: note: each undeclared identifier is reported only once for each function it appears in
--
   In file included from arch/sparc/include/asm/checksum.h:8:0,
                    from include/net/checksum.h:22,
                    from include/linux/skbuff.h:28,
                    from include/linux/if_ether.h:19,
                    from include/uapi/linux/ethtool.h:19,
                    from include/linux/ethtool.h:18,
                    from include/linux/netdevice.h:37,
                    from include/linux/rtnetlink.h:7,
                    from net/core/flow_offload.c:5:
   arch/sparc/include/asm/checksum_32.h: In function 'csum_and_copy_from_user':
>> arch/sparc/include/asm/checksum_32.h:73:5: error: 'err_ptr' undeclared (first use in this function); did you mean 'rht_ptr'?
       *err_ptr = -EFAULT;
        ^~~~~~~
        rht_ptr
   arch/sparc/include/asm/checksum_32.h:73:5: note: each undeclared identifier is reported only once for each function it appears in

vim +73 arch/sparc/include/asm/checksum_32.h

    61	
    62	static inline __wsum
    63	csum_and_copy_from_user(const void __user *src, void *dst, int len,
    64				    __wsum sum, int *err)
    65	  {
    66		register unsigned long ret asm("o0") = (unsigned long)src;
    67		register char *d asm("o1") = dst;
    68		register int l asm("g1") = len;
    69		register __wsum s asm("g7") = sum;
    70	
    71		if (unlikely(!access_ok(src, len))) {
    72			if (len)
  > 73				*err_ptr = -EFAULT;
    74			return sum;
    75		}
    76	
    77		__asm__ __volatile__ (
    78		".section __ex_table,#alloc\n\t"
    79		".align 4\n\t"
    80		".word 1f,2\n\t"
    81		".previous\n"
    82		"1:\n\t"
    83		"call __csum_partial_copy_sparc_generic\n\t"
    84		" st %8, [%%sp + 64]\n"
    85		: "=&r" (ret), "=&r" (d), "=&r" (l), "=&r" (s)
    86		: "0" (ret), "1" (d), "2" (l), "3" (s), "r" (err)
    87		: "o2", "o3", "o4", "o5", "o7", "g2", "g3", "g4", "g5",
    88		  "cc", "memory");
    89		return (__force __wsum)ret;
    90	}
    91	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

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