[mst-vhost:vhost 11/19] include/linux/stddef.h:8:14: error: called object is not a function or function pointer
From: kernel test robot <hidden>
Date: 2022-10-07 22:46:25
Also in:
virtualization
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost head: 0613363a73cff31ebfbb0b13a6522b13d68c3a66 commit: 5d300519d4977317e70c62031c4b2cf282a42710 [11/19] virtio_pci: use common helper to configure SR-IOV config: m68k-randconfig-r024-20221005 compiler: m68k-linux-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/mst/vhost.git/commit/?id=5d300519d4977317e70c62031c4b2cf282a42710 git remote add mst-vhost https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git git fetch --no-tags mst-vhost vhost git checkout 5d300519d4977317e70c62031c4b2cf282a42710 # 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=m68k SHELL=/bin/bash drivers/virtio/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot [off-list ref] 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/m68k/include/generated/asm/rwonce.h:1, from include/linux/compiler.h:254, from include/linux/build_bug.h:5, from include/linux/container_of.h:5, from include/linux/list.h:5, from include/linux/module.h:12, from drivers/virtio/virtio_pci_common.h:19, from drivers/virtio/virtio_pci_common.c:17: drivers/virtio/virtio_pci_common.c: In function 'virtio_pci_sriov_configure':
quoted
include/linux/stddef.h:8:14: error: called object is not a function or function pointer
8 | #define NULL ((void *)0)
| ^
include/linux/pci.h:2231:41: note: in expansion of macro 'NULL'
2231 | #define pci_sriov_configure_simple NULL
| ^~~~
drivers/virtio/virtio_pci_common.c:617:16: note: in expansion of macro 'pci_sriov_configure_simple'
617 | return pci_sriov_configure_simple(pci_dev, num_vfs);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/virtio/virtio_pci_common.c:618:1: error: control reaches end of non-void function [-Werror=return-type]
618 | }
| ^
cc1: some 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 [off-list ref]
:::::: CC: Linus Torvalds [off-list ref]
--
0-DAY CI Kernel Test Service
https://01.org/lkp