tree: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git uaccess.parisc head: 321c9817cee84c17b104cf4d16bdc135b21adfb4 commit: 321c9817cee84c17b104cf4d16bdc135b21adfb4 [10/10] parisc: switch to RAW_COPY_USER config: parisc-allnoconfig (attached as .config) compiler: hppa-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 321c9817cee84c17b104cf4d16bdc135b21adfb4 # save the attached .config to linux build tree make.cross ARCH=parisc All errors (new ones prefixed by >>): arch/parisc/lib/memcpy.c:39:15: error: redefinition of '__copy_to_user' unsigned long __copy_to_user(void __user *dst, const void *src, ^~~~~~~~~~~~~~ In file included from arch/parisc/lib/memcpy.c:28:0: include/linux/uaccess.h:101:1: note: previous definition of '__copy_to_user' was here __copy_to_user(void __user *to, const void *from, unsigned long n) ^~~~~~~~~~~~~~ arch/parisc/lib/memcpy.c: In function '__copy_to_user': arch/parisc/lib/memcpy.c:43:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ >> arch/parisc/lib/memcpy.c:48:32: error: expected declaration specifiers before ';' token EXPORT_SYMBOL(raw_copy_to_user); ^ arch/parisc/lib/memcpy.c:52:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ arch/parisc/lib/memcpy.c:57:34: error: expected declaration specifiers before ';' token EXPORT_SYMBOL(raw_copy_from_user); ^ arch/parisc/lib/memcpy.c:60:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ arch/parisc/lib/memcpy.c:68:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ arch/parisc/lib/memcpy.c:75:32: error: expected declaration specifiers before ';' token EXPORT_SYMBOL(raw_copy_in_user); ^ arch/parisc/lib/memcpy.c:76:22: error: expected declaration specifiers before ';' token EXPORT_SYMBOL(memcpy); ^ arch/parisc/lib/memcpy.c:79:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ arch/parisc/lib/memcpy.c:88:1: error: expected '{' at end of input } ^ arch/parisc/lib/memcpy.c:88:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ vim +48 arch/parisc/lib/memcpy.c 22 * Copyright (C) 1991, 1997, 2003 Free Software Foundation, Inc. 23 * 24 */ 25 26 #include <linux/module.h> 27 #include <linux/compiler.h> > 28 #include <linux/uaccess.h> 29 30 DECLARE_PER_CPU(struct exception_data, exception_data); 31 32 #define get_user_space() (uaccess_kernel() ? 0 : mfsp(3)) 33 #define get_kernel_space() (0) 34 35 /* Returns 0 for success, otherwise, returns number of bytes not transferred. */ 36 extern unsigned long pa_memcpy(void *dst, const void *src, 37 unsigned long len); 38 39 unsigned long __copy_to_user(void __user *dst, const void *src, 40 unsigned long len) 41 unsigned long raw_copy_to_user(void __user *dst, const void *src, 42 unsigned long len) 43 { 44 mtsp(get_kernel_space(), 1); 45 mtsp(get_user_space(), 2); 46 return pa_memcpy((void __force *)dst, src, len); 47 } > 48 EXPORT_SYMBOL(raw_copy_to_user); 49 50 unsigned long raw_copy_from_user(void *dst, const void __user *src, 51 unsigned long len) --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip