Hi Andrzej, kernel test robot noticed the following build errors: [auto build test ERROR on 33cc938e65a98f1d29d0a18403dbbee050dcad9a] url: https://github.com/intel-lab-lkp/linux/commits/Andrzej-Pietrasiewicz/usb-gadget-webcam-Make-g_webcam-loadable-again/20231208-211513 base: 33cc938e65a98f1d29d0a18403dbbee050dcad9a patch link: https://lore.kernel.org/r/20231208131342.65671-1-andrzej.p%40collabora.com patch subject: [PATCH v2] usb: gadget: webcam: Make g_webcam loadable again config: x86_64-randconfig-r111-20231209 (https://download.01.org/0day-ci/archive/20231209/202312091825.1MSZeBRA-lkp@xxxxxxxxx/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231209/202312091825.1MSZeBRA-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202312091825.1MSZeBRA-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): >> drivers/usb/gadget/legacy/webcam.c:224:17: error: initializer element is not constant .b_length = uvc_frame_yuv_360p.bLength, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:224:17: note: (near initialization for 'uvcg_frame_yuv_360p.frame.b_length') drivers/usb/gadget/legacy/webcam.c:225:25: error: initializer element is not constant .b_descriptor_type = uvc_frame_yuv_360p.bDescriptorType, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:225:25: note: (near initialization for 'uvcg_frame_yuv_360p.frame.b_descriptor_type') drivers/usb/gadget/legacy/webcam.c:226:28: error: initializer element is not constant .b_descriptor_subtype = uvc_frame_yuv_360p.bDescriptorSubType, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:226:28: note: (near initialization for 'uvcg_frame_yuv_360p.frame.b_descriptor_subtype') drivers/usb/gadget/legacy/webcam.c:227:22: error: initializer element is not constant .b_frame_index = uvc_frame_yuv_360p.bFrameIndex, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:227:22: note: (near initialization for 'uvcg_frame_yuv_360p.frame.b_frame_index') drivers/usb/gadget/legacy/webcam.c:228:23: error: initializer element is not constant .bm_capabilities = uvc_frame_yuv_360p.bmCapabilities, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:228:23: note: (near initialization for 'uvcg_frame_yuv_360p.frame.bm_capabilities') drivers/usb/gadget/legacy/webcam.c:229:16: error: initializer element is not constant .w_width = uvc_frame_yuv_360p.wWidth, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:229:16: note: (near initialization for 'uvcg_frame_yuv_360p.frame.w_width') drivers/usb/gadget/legacy/webcam.c:230:17: error: initializer element is not constant .w_height = uvc_frame_yuv_360p.wHeight, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:230:17: note: (near initialization for 'uvcg_frame_yuv_360p.frame.w_height') drivers/usb/gadget/legacy/webcam.c:231:23: error: initializer element is not constant .dw_min_bit_rate = uvc_frame_yuv_360p.dwMinBitRate, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:231:23: note: (near initialization for 'uvcg_frame_yuv_360p.frame.dw_min_bit_rate') drivers/usb/gadget/legacy/webcam.c:232:23: error: initializer element is not constant .dw_max_bit_rate = uvc_frame_yuv_360p.dwMaxBitRate, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:232:23: note: (near initialization for 'uvcg_frame_yuv_360p.frame.dw_max_bit_rate') drivers/usb/gadget/legacy/webcam.c:233:37: error: initializer element is not constant .dw_max_video_frame_buffer_size = uvc_frame_yuv_360p.dwMaxVideoFrameBufferSize, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:233:37: note: (near initialization for 'uvcg_frame_yuv_360p.frame.dw_max_video_frame_buffer_size') drivers/usb/gadget/legacy/webcam.c:234:32: error: initializer element is not constant .dw_default_frame_interval = uvc_frame_yuv_360p.dwDefaultFrameInterval, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:234:32: note: (near initialization for 'uvcg_frame_yuv_360p.frame.dw_default_frame_interval') drivers/usb/gadget/legacy/webcam.c:235:29: error: initializer element is not constant .b_frame_interval_type = uvc_frame_yuv_360p.bFrameIntervalType, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:235:29: note: (near initialization for 'uvcg_frame_yuv_360p.frame.b_frame_interval_type') drivers/usb/gadget/legacy/webcam.c:263:17: error: initializer element is not constant .b_length = uvc_frame_yuv_720p.bLength, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:263:17: note: (near initialization for 'uvcg_frame_yuv_720p.frame.b_length') drivers/usb/gadget/legacy/webcam.c:264:25: error: initializer element is not constant .b_descriptor_type = uvc_frame_yuv_720p.bDescriptorType, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:264:25: note: (near initialization for 'uvcg_frame_yuv_720p.frame.b_descriptor_type') drivers/usb/gadget/legacy/webcam.c:265:28: error: initializer element is not constant .b_descriptor_subtype = uvc_frame_yuv_720p.bDescriptorSubType, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:265:28: note: (near initialization for 'uvcg_frame_yuv_720p.frame.b_descriptor_subtype') drivers/usb/gadget/legacy/webcam.c:266:22: error: initializer element is not constant .b_frame_index = uvc_frame_yuv_720p.bFrameIndex, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:266:22: note: (near initialization for 'uvcg_frame_yuv_720p.frame.b_frame_index') drivers/usb/gadget/legacy/webcam.c:267:23: error: initializer element is not constant .bm_capabilities = uvc_frame_yuv_720p.bmCapabilities, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:267:23: note: (near initialization for 'uvcg_frame_yuv_720p.frame.bm_capabilities') drivers/usb/gadget/legacy/webcam.c:268:16: error: initializer element is not constant .w_width = uvc_frame_yuv_720p.wWidth, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:268:16: note: (near initialization for 'uvcg_frame_yuv_720p.frame.w_width') drivers/usb/gadget/legacy/webcam.c:269:17: error: initializer element is not constant .w_height = uvc_frame_yuv_720p.wHeight, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:269:17: note: (near initialization for 'uvcg_frame_yuv_720p.frame.w_height') drivers/usb/gadget/legacy/webcam.c:270:23: error: initializer element is not constant .dw_min_bit_rate = uvc_frame_yuv_720p.dwMinBitRate, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:270:23: note: (near initialization for 'uvcg_frame_yuv_720p.frame.dw_min_bit_rate') drivers/usb/gadget/legacy/webcam.c:271:23: error: initializer element is not constant .dw_max_bit_rate = uvc_frame_yuv_720p.dwMaxBitRate, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:271:23: note: (near initialization for 'uvcg_frame_yuv_720p.frame.dw_max_bit_rate') drivers/usb/gadget/legacy/webcam.c:272:37: error: initializer element is not constant .dw_max_video_frame_buffer_size = uvc_frame_yuv_720p.dwMaxVideoFrameBufferSize, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:272:37: note: (near initialization for 'uvcg_frame_yuv_720p.frame.dw_max_video_frame_buffer_size') drivers/usb/gadget/legacy/webcam.c:273:32: error: initializer element is not constant .dw_default_frame_interval = uvc_frame_yuv_720p.dwDefaultFrameInterval, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:273:32: note: (near initialization for 'uvcg_frame_yuv_720p.frame.dw_default_frame_interval') drivers/usb/gadget/legacy/webcam.c:274:29: error: initializer element is not constant .b_frame_interval_type = uvc_frame_yuv_720p.bFrameIntervalType, ^~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:274:29: note: (near initialization for 'uvcg_frame_yuv_720p.frame.b_frame_interval_type') drivers/usb/gadget/legacy/webcam.c:332:17: error: initializer element is not constant .b_length = uvc_frame_mjpg_360p.bLength, ^~~~~~~~~~~~~~~~~~~ drivers/usb/gadget/legacy/webcam.c:332:17: note: (near initialization for 'uvcg_frame_mjpeg_360p.frame.b_length') drivers/usb/gadget/legacy/webcam.c:333:25: error: initializer element is not constant vim +224 drivers/usb/gadget/legacy/webcam.c 220 221 static const struct uvcg_frame uvcg_frame_yuv_360p = { 222 .fmt_type = UVCG_UNCOMPRESSED, 223 .frame = { > 224 .b_length = uvc_frame_yuv_360p.bLength, 225 .b_descriptor_type = uvc_frame_yuv_360p.bDescriptorType, 226 .b_descriptor_subtype = uvc_frame_yuv_360p.bDescriptorSubType, 227 .b_frame_index = uvc_frame_yuv_360p.bFrameIndex, 228 .bm_capabilities = uvc_frame_yuv_360p.bmCapabilities, 229 .w_width = uvc_frame_yuv_360p.wWidth, 230 .w_height = uvc_frame_yuv_360p.wHeight, 231 .dw_min_bit_rate = uvc_frame_yuv_360p.dwMinBitRate, 232 .dw_max_bit_rate = uvc_frame_yuv_360p.dwMaxBitRate, 233 .dw_max_video_frame_buffer_size = uvc_frame_yuv_360p.dwMaxVideoFrameBufferSize, 234 .dw_default_frame_interval = uvc_frame_yuv_360p.dwDefaultFrameInterval, 235 .b_frame_interval_type = uvc_frame_yuv_360p.bFrameIntervalType, 236 }, 237 .dw_frame_interval = (u32 *)uvc_frame_yuv_360p.dwFrameInterval, 238 }; 239 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki