kernel test robot
2020-Jul-28 00:30 UTC
[vhost:vhost 38/45] include/linux/vdpa.h:43:21: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost head: 84d40e4b4bc64456abf5ef5663871053b40e84ac commit: fee8fe6bd8ccacd27e963b71b4f943be3721779e [38/45] vdpa: make sure set_features in invoked for legacy config: m68k-randconfig-r022-20200727 (attached as .config) compiler: m68k-linux-gcc (GCC) 9.3.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 git checkout fee8fe6bd8ccacd27e963b71b4f943be3721779e # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp at intel.com> All errors (new ones prefixed by >>): In file included from include/linux/kernel.h:11, from drivers/vhost/vdpa.c:14: include/linux/scatterlist.h: In function 'sg_set_buf': arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra] 169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory) | ^~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON' 143 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid' 143 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ In file included from drivers/vhost/vdpa.c:21: include/linux/vdpa.h: At top level:>> include/linux/vdpa.h:43:21: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token43 | bool features_valid. | ^ include/linux/vdpa.h: In function 'vdpa_reset':>> include/linux/vdpa.h:276:6: error: 'struct vdpa_device' has no member named 'features_valid'276 | vdev->features_valid = false; | ^~ include/linux/vdpa.h: In function 'vdpa_set_features': include/linux/vdpa.h:284:6: error: 'struct vdpa_device' has no member named 'features_valid' 284 | vdev->features_valid = true; | ^~ include/linux/vdpa.h: In function 'vdpa_get_config': include/linux/vdpa.h:298:11: error: 'struct vdpa_device' has no member named 'features_valid' 298 | if (!vdev->features_valid) | ^~ In file included from arch/m68k/include/asm/bug.h:32, from include/linux/bug.h:5, from include/linux/thread_info.h:12, from include/asm-generic/preempt.h:5, from ./arch/m68k/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/spinlock.h:51, from include/linux/seqlock.h:36, from include/linux/time.h:6, from include/linux/stat.h:19, from include/linux/module.h:13, from drivers/vhost/vdpa.c:15: include/linux/dma-mapping.h: In function 'dma_map_resource': arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra] 169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory) | ^~ include/asm-generic/bug.h:144:27: note: in definition of macro 'WARN_ON_ONCE' 144 | int __ret_warn_once = !!(condition); \ | ^~~~~~~~~ arch/m68k/include/asm/page_mm.h:170:25: note: in expansion of macro 'virt_addr_valid' 170 | #define pfn_valid(pfn) virt_addr_valid(pfn_to_virt(pfn)) | ^~~~~~~~~~~~~~~ include/linux/dma-mapping.h:352:19: note: in expansion of macro 'pfn_valid' 352 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr)))) | ^~~~~~~~~ -- In file included from drivers/vdpa/vdpa.c:13:>> include/linux/vdpa.h:43:21: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token43 | bool features_valid. | ^ include/linux/vdpa.h: In function 'vdpa_reset':>> include/linux/vdpa.h:276:6: error: 'struct vdpa_device' has no member named 'features_valid'276 | vdev->features_valid = false; | ^~ include/linux/vdpa.h: In function 'vdpa_set_features': include/linux/vdpa.h:284:6: error: 'struct vdpa_device' has no member named 'features_valid' 284 | vdev->features_valid = true; | ^~ include/linux/vdpa.h: In function 'vdpa_get_config': include/linux/vdpa.h:298:11: error: 'struct vdpa_device' has no member named 'features_valid' 298 | if (!vdev->features_valid) | ^~ drivers/vdpa/vdpa.c: In function '__vdpa_alloc_device':>> drivers/vdpa/vdpa.c:99:6: error: 'struct vdpa_device' has no member named 'features_valid'99 | vdev->features_valid = false; | ^~ vim +43 include/linux/vdpa.h 29 30 /** 31 * vDPA device - representation of a vDPA device 32 * @dev: underlying device 33 * @dma_dev: the actual device that is performing DMA 34 * @config: the configuration ops for this device. 35 * @index: device index 36 * @features_valid: were features initialized? for legacy guests 37 */ 38 struct vdpa_device { 39 struct device dev; 40 struct device *dma_dev; 41 const struct vdpa_config_ops *config; 42 unsigned int index; > 43 bool features_valid. 44 }; 45 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all at lists.01.org -------------- next part -------------- A non-text attachment was scrubbed... Name: .config.gz Type: application/gzip Size: 28745 bytes Desc: not available URL: <http://lists.linuxfoundation.org/pipermail/virtualization/attachments/20200728/d13a9ec4/attachment-0001.gz>