Messages in this thread | | | Date | Thu, 14 Oct 2021 01:52:44 +0800 | From | kernel test robot <> | Subject | [lpieralisi-pci:pci/qcom 4/6] include/linux/stddef.h:8:14: error: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git pci/qcom head: bab406fc1147f27b9602d9e3c6d7a6edbee2ea16 commit: 64bb1ea81641fdcce4423e2672025e63ebe0bee4 [4/6] PCI: qcom: Replace ops with struct pcie_cfg in pcie match data config: powerpc-allyesconfig (attached as .config) compiler: powerpc-linux-gcc (GCC) 11.2.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/lpieralisi/pci.git/commit/?id=64bb1ea81641fdcce4423e2672025e63ebe0bee4 git remote add lpieralisi-pci https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git git fetch --no-tags lpieralisi-pci pci/qcom git checkout 64bb1ea81641fdcce4423e2672025e63ebe0bee4 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/uapi/linux/posix_types.h:5, from include/uapi/linux/types.h:14, from include/linux/types.h:6, from include/linux/kasan-checks.h:5, from include/asm-generic/rwonce.h:26, from ./arch/powerpc/include/generated/asm/rwonce.h:1, from include/linux/compiler.h:266, from include/linux/err.h:5, from include/linux/clk.h:12, from drivers/pci/controller/dwc/pcie-qcom.c:11: drivers/pci/controller/dwc/pcie-qcom.c: In function 'qcom_pcie_probe': >> include/linux/stddef.h:8:14: error: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Werror=int-conversion] 8 | #define NULL ((void *)0) | ^ drivers/pci/controller/dwc/pcie-qcom.c:1531:24: note: in expansion of macro 'NULL' 1531 | return NULL; | ^~~~ cc1: all warnings being treated as errors
vim +8 include/linux/stddef.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 6 ^1da177e4c3f41 Linus Torvalds 2005-04-16 7 #undef NULL ^1da177e4c3f41 Linus Torvalds 2005-04-16 @8 #define NULL ((void *)0) 6e218287432472 Richard Knutsson 2006-09-30 9
:::::: The code at line 8 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org> :::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |