[vfs:untested-uaccess 39/79] arch/m32r/include/asm/uaccess.h:469:2: error: implicit declaration of function 'prefetchw'

[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:   e4c5cc79ec8eab6bc3e74d9994b33f368f137223
commit: 16bfbc92cfda8c402fb227be346da801d5517ff0 [39/79] m32r: switch to RAW_COPY_USER
config: m32r-m32104ut_defconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 16bfbc92cfda8c402fb227be346da801d5517ff0
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   In file included from include/linux/uaccess.h:13:0,
                    from include/net/checksum.h:25,
                    from include/linux/skbuff.h:31,
                    from include/linux/icmpv6.h:4,
                    from include/linux/ipv6.h:82,
                    from include/net/ipv6.h:16,
                    from net/ipv6/addrconf_core.c:7:
   arch/m32r/include/asm/uaccess.h: In function 'raw_copy_from_user':
>> arch/m32r/include/asm/uaccess.h:469:2: error: implicit declaration of function 'prefetchw' [-Werror=implicit-function-declaration]
     prefetchw(to);
     ^~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/uaccess.h:13:0,
                    from arch/m32r/kernel/traps.c:25:
   arch/m32r/include/asm/uaccess.h: In function 'raw_copy_from_user':
>> arch/m32r/include/asm/uaccess.h:469:2: error: implicit declaration of function 'prefetchw' [-Werror=implicit-function-declaration]
     prefetchw(to);
     ^~~~~~~~~
   arch/m32r/kernel/traps.c: In function 'do_trap':
   arch/m32r/kernel/traps.c:255:8: error: implicit declaration of function 'fixup_exception' [-Werror=implicit-function-declaration]
      if (!fixup_exception(regs))
           ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/uaccess.h:13:0,
                    from arch/m32r/kernel/m32r_ksyms.c:11:
   arch/m32r/include/asm/uaccess.h: In function 'raw_copy_from_user':
>> arch/m32r/include/asm/uaccess.h:469:2: error: implicit declaration of function 'prefetchw' [-Werror=implicit-function-declaration]
     prefetchw(to);
     ^~~~~~~~~
   In file included from include/linux/linkage.h:6:0,
                    from include/linux/kernel.h:6,
                    from include/linux/list.h:8,
                    from include/linux/module.h:9,
                    from arch/m32r/kernel/m32r_ksyms.c:1:
   arch/m32r/kernel/m32r_ksyms.c: At top level:
>> arch/m32r/kernel/m32r_ksyms.c:29:15: error: '__generic_copy_from_user' undeclared here (not in a function)
    EXPORT_SYMBOL(__generic_copy_from_user);
                  ^
   include/linux/export.h:65:16: note: in definition of macro '___EXPORT_SYMBOL'
     extern typeof(sym) sym;      \
                   ^~~
   arch/m32r/kernel/m32r_ksyms.c:29:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(__generic_copy_from_user);
    ^~~~~~~~~~~~~
>> arch/m32r/kernel/m32r_ksyms.c:30:15: error: '__generic_copy_to_user' undeclared here (not in a function)
    EXPORT_SYMBOL(__generic_copy_to_user);
                  ^
   include/linux/export.h:65:16: note: in definition of macro '___EXPORT_SYMBOL'
     extern typeof(sym) sym;      \
                   ^~~
   arch/m32r/kernel/m32r_ksyms.c:30:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(__generic_copy_to_user);
    ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/prefetchw +469 arch/m32r/include/asm/uaccess.h

   463	/* We let the __ versions of copy_from/to_user inline, because they're often
   464	 * used in fast paths and have only a small space overhead.
   465	 */
   466	static inline unsigned long
   467	raw_copy_from_user(void *to, const void __user *from, unsigned long n)
   468	{
 > 469		prefetchw(to);
   470		__copy_user(to, from, n);
   471		return n;
   472	}

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