Hi Daniel, kernel test robot noticed the following build errors:
[auto build test ERROR on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Daniel-Jurgens/virtio_pci-Remove-supported_cap-size-build-assert/20251014-004146 base: net-next/main patch link: https://lore.kernel.org/r/20251013152742.619423-2-danielj%40nvidia.com patch subject: [PATCH net-next v4 01/12] virtio_pci: Remove supported_cap size build assert config: s390-randconfig-001-20251014 (https://download.01.org/0day-ci/archive/20251014/[email protected]/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 39f292ffa13d7ca0d1edff27ac8fd55024bb4d19) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251014/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): >> drivers/virtio/virtio_pci_modern.c:326:26: error: no member named >> 'support_caps' in 'struct virtio_admin_cmd_query_cap_id_result' 326 | if (!(le64_to_cpu(data->support_caps[0]) & (1 << VIRTIO_DEV_PARTS_CAP))) | ~~~~ ^ include/linux/byteorder/generic.h:87:21: note: expanded from macro 'le64_to_cpu' 87 | #define le64_to_cpu __le64_to_cpu | ^ 1 error generated. vim +326 drivers/virtio/virtio_pci_modern.c 304 305 static void virtio_pci_admin_cmd_cap_init(struct virtio_device *virtio_dev) 306 { 307 struct virtio_pci_device *vp_dev = to_vp_device(virtio_dev); 308 struct virtio_admin_cmd_query_cap_id_result *data; 309 struct virtio_admin_cmd cmd = {}; 310 struct scatterlist result_sg; 311 int ret; 312 313 data = kzalloc(sizeof(*data), GFP_KERNEL); 314 if (!data) 315 return; 316 317 sg_init_one(&result_sg, data, sizeof(*data)); 318 cmd.opcode = cpu_to_le16(VIRTIO_ADMIN_CMD_CAP_ID_LIST_QUERY); 319 cmd.group_type = cpu_to_le16(VIRTIO_ADMIN_GROUP_TYPE_SELF); 320 cmd.result_sg = &result_sg; 321 322 ret = vp_modern_admin_cmd_exec(virtio_dev, &cmd); 323 if (ret) 324 goto end; 325 > 326 if (!(le64_to_cpu(data->support_caps[0]) & (1 << > VIRTIO_DEV_PARTS_CAP))) 327 goto end; 328 329 virtio_pci_admin_cmd_dev_parts_objects_enable(virtio_dev); 330 end: 331 kfree(data); 332 } 333 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
