tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 01c8787d7f7ea56c16d94cf7133022189be231ad commit: ecc83243e1d4f67015906017e420435aff1104c9 [2058/2223] uaccess: reimplement probe_kernel_address() using probe_kernel_read() config: powerpc-xes_mpc85xx_defconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout ecc83243e1d4f67015906017e420435aff1104c9 # save the attached .config to linux build tree make.cross ARCH=powerpc All warnings (new ones prefixed by >>): In file included from arch/powerpc/sysdev/fsl_pci.c:31:0: arch/powerpc/sysdev/fsl_pci.c: In function 'fsl_pci_mcheck_exception': include/linux/uaccess.h:112:2: error: passing argument 2 of 'probe_kernel_read' makes pointer from integer without a cast [-Werror] probe_kernel_read(&retval, addr, sizeof(retval)) ^ >> arch/powerpc/sysdev/fsl_pci.c:1002:10: note: in expansion of macro 'probe_kernel_address' ret = probe_kernel_address(regs->nip, inst); ^ include/linux/uaccess.h:87:13: note: expected 'const void *' but argument is of type 'long unsigned int' extern long probe_kernel_read(void *dst, const void *src, size_t size); ^ cc1: all warnings being treated as errors vim +/probe_kernel_address +1002 arch/powerpc/sysdev/fsl_pci.c 4e0e3435 Hongtao Jia 2013-04-28 986 /* Let KVM/QEMU deal with the exception */ 4e0e3435 Hongtao Jia 2013-04-28 987 if (regs->msr & MSR_GS) 4e0e3435 Hongtao Jia 2013-04-28 988 return 0; 4e0e3435 Hongtao Jia 2013-04-28 989 4e0e3435 Hongtao Jia 2013-04-28 990 #ifdef CONFIG_PHYS_64BIT 4e0e3435 Hongtao Jia 2013-04-28 991 addr = mfspr(SPRN_MCARU); 4e0e3435 Hongtao Jia 2013-04-28 992 addr <<= 32; 4e0e3435 Hongtao Jia 2013-04-28 993 #endif 4e0e3435 Hongtao Jia 2013-04-28 994 addr += mfspr(SPRN_MCAR); 4e0e3435 Hongtao Jia 2013-04-28 995 4e0e3435 Hongtao Jia 2013-04-28 996 if (is_in_pci_mem_space(addr)) { 4e0e3435 Hongtao Jia 2013-04-28 997 if (user_mode(regs)) { 4e0e3435 Hongtao Jia 2013-04-28 998 pagefault_disable(); 4e0e3435 Hongtao Jia 2013-04-28 999 ret = get_user(regs->nip, &inst); 4e0e3435 Hongtao Jia 2013-04-28 1000 pagefault_enable(); 4e0e3435 Hongtao Jia 2013-04-28 1001 } else { 4e0e3435 Hongtao Jia 2013-04-28 @1002 ret = probe_kernel_address(regs->nip, inst); 4e0e3435 Hongtao Jia 2013-04-28 1003 } 4e0e3435 Hongtao Jia 2013-04-28 1004 4e0e3435 Hongtao Jia 2013-04-28 1005 if (mcheck_handle_load(regs, inst)) { 4e0e3435 Hongtao Jia 2013-04-28 1006 regs->nip += 4; 4e0e3435 Hongtao Jia 2013-04-28 1007 return 1; 4e0e3435 Hongtao Jia 2013-04-28 1008 } 4e0e3435 Hongtao Jia 2013-04-28 1009 } 4e0e3435 Hongtao Jia 2013-04-28 1010 :::::: The code at line 1002 was first introduced by commit :::::: 4e0e3435b50285eafe5898124ce02f7577f6803a powerpc/85xx: Add machine check handler to fix PCIe erratum on mpc85xx :::::: TO: Hongtao Jia :::::: CC: Scott Wood --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation