tree: git://git.cmpxchg.org/linux-mmotm.git master head: 7e456521f271ddf5487e61004994f9ab8dac520d commit: 1daa26c7ab0641f44fc949c251f4ff0f01640d9a [400/474] lib/test_user_copy.c: check __copy_in_user()/copy_in_user() config: i386-randconfig-n1-201531 (attached as .config) reproduce: git checkout 1daa26c7ab0641f44fc949c251f4ff0f01640d9a # save the attached .config to linux build tree make ARCH=i386 All error/warnings (new ones prefixed by >>): lib/test_user_copy.c: In function 'test_user_copy_init': >> lib/test_user_copy.c:67:2: error: implicit declaration of function 'copy_in_user' [-Werror=implicit-function-declaration] ret |= test(copy_in_user(usermem, usermem + PAGE_SIZE, PAGE_SIZE), ^ >> lib/test_user_copy.c:84:2: error: implicit declaration of function '__copy_in_user' [-Werror=implicit-function-declaration] ret |= test(__copy_in_user(usermem, usermem + PAGE_SIZE, PAGE_SIZE), ^ cc1: some warnings being treated as errors vim +/copy_in_user +67 lib/test_user_copy.c 61 62 /* Legitimate usage: none of these should fail. */ 63 ret |= test(copy_from_user(kmem, usermem, PAGE_SIZE), 64 "legitimate copy_from_user failed"); 65 ret |= test(copy_to_user(usermem, kmem, PAGE_SIZE), 66 "legitimate copy_to_user failed"); > 67 ret |= test(copy_in_user(usermem, usermem + PAGE_SIZE, PAGE_SIZE), 68 "legitimate copy_in_user failed"); 69 ret |= test(get_user(value, (unsigned long __user *)usermem), 70 "legitimate get_user failed"); 71 ret |= test(put_user(value, (unsigned long __user *)usermem), 72 "legitimate put_user failed"); 73 ret |= test(clear_user(usermem, PAGE_SIZE) != 0, 74 "legitimate clear_user passed"); 75 76 ret |= test(!access_ok(VERIFY_READ, usermem, PAGE_SIZE * 2), 77 "legitimate access_ok VERIFY_READ failed"); 78 ret |= test(!access_ok(VERIFY_WRITE, usermem, PAGE_SIZE * 2), 79 "legitimate access_ok VERIFY_WRITE failed"); 80 ret |= test(__copy_from_user(kmem, usermem, PAGE_SIZE), 81 "legitimate __copy_from_user failed"); 82 ret |= test(__copy_to_user(usermem, kmem, PAGE_SIZE), 83 "legitimate __copy_to_user failed"); > 84 ret |= test(__copy_in_user(usermem, usermem + PAGE_SIZE, PAGE_SIZE), 85 "legitimate __copy_in_user failed"); 86 ret |= test(__get_user(value, (unsigned long __user *)usermem), 87 "legitimate __get_user failed"); --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation