tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable head: f5938bbbb79d48ca167e305c228dccbecea0309e commit: 9bfba5059fed2bc8d3ae797bccec2985e67cf344 [88/100] mm/gup_test: start/stop/read functionality for PIN LONGTERM test config: arc-randconfig-r043-20221017 compiler: arceb-elf-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?id=9bfba5059fed2bc8d3ae797bccec2985e67cf344 git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git git fetch --no-tags akpm-mm mm-unstable git checkout 9bfba5059fed2bc8d3ae797bccec2985e67cf344 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): mm/gup_test.c: In function 'pin_longterm_test_read': >> mm/gup_test.c:302:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 302 | if (copy_to_user((void __user *)user_addr, addr, PAGE_SIZE)) | ^ vim +302 mm/gup_test.c 287 288 static inline int pin_longterm_test_read(unsigned long arg) 289 { 290 __u64 user_addr; 291 unsigned long i; 292 293 if (!pin_longterm_test_pages) 294 return -EINVAL; 295 296 if (copy_from_user(&user_addr, (void __user *)arg, sizeof(user_addr))) 297 return -EFAULT; 298 299 for (i = 0; i < pin_longterm_test_nr_pages; i++) { 300 void *addr = page_to_virt(pin_longterm_test_pages[i]); 301 > 302 if (copy_to_user((void __user *)user_addr, addr, PAGE_SIZE)) 303 return -EFAULT; 304 user_addr += PAGE_SIZE; 305 } 306 return 0; 307 } 308 -- 0-DAY CI Kernel Test Service https://01.org/lkp