Hi Andrzej, kernel test robot noticed the following build warnings: [auto build test WARNING 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: m68k-randconfig-r132-20231209 (https://download.01.org/0day-ci/archive/20231209/202312091817.u3BjKBcF-lkp@xxxxxxxxx/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20231209/202312091817.u3BjKBcF-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/202312091817.u3BjKBcF-lkp@xxxxxxxxx/ sparse warnings: (new ones prefixed by >>) >> drivers/usb/gadget/legacy/webcam.c:229:69: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned short [usertype] w_width @@ got restricted __le16 static const [toplevel] [usertype] wWidth @@ drivers/usb/gadget/legacy/webcam.c:229:69: sparse: expected unsigned short [usertype] w_width drivers/usb/gadget/legacy/webcam.c:229:69: sparse: got restricted __le16 static const [toplevel] [usertype] wWidth >> drivers/usb/gadget/legacy/webcam.c:230:69: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned short [usertype] w_height @@ got restricted __le16 static const [toplevel] [usertype] wHeight @@ drivers/usb/gadget/legacy/webcam.c:230:69: sparse: expected unsigned short [usertype] w_height drivers/usb/gadget/legacy/webcam.c:230:69: sparse: got restricted __le16 static const [toplevel] [usertype] wHeight >> drivers/usb/gadget/legacy/webcam.c:231:69: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] dw_min_bit_rate @@ got restricted __le32 static const [toplevel] [usertype] dwMinBitRate @@ drivers/usb/gadget/legacy/webcam.c:231:69: sparse: expected unsigned int [usertype] dw_min_bit_rate drivers/usb/gadget/legacy/webcam.c:231:69: sparse: got restricted __le32 static const [toplevel] [usertype] dwMinBitRate >> drivers/usb/gadget/legacy/webcam.c:232:69: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] dw_max_bit_rate @@ got restricted __le32 static const [toplevel] [usertype] dwMaxBitRate @@ drivers/usb/gadget/legacy/webcam.c:232:69: sparse: expected unsigned int [usertype] dw_max_bit_rate drivers/usb/gadget/legacy/webcam.c:232:69: sparse: got restricted __le32 static const [toplevel] [usertype] dwMaxBitRate >> drivers/usb/gadget/legacy/webcam.c:233:69: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] dw_max_video_frame_buffer_size @@ got restricted __le32 static const [toplevel] [usertype] dwMaxVideoFrameBufferSize @@ drivers/usb/gadget/legacy/webcam.c:233:69: sparse: expected unsigned int [usertype] dw_max_video_frame_buffer_size drivers/usb/gadget/legacy/webcam.c:233:69: sparse: got restricted __le32 static const [toplevel] [usertype] dwMaxVideoFrameBufferSize >> drivers/usb/gadget/legacy/webcam.c:234:69: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] dw_default_frame_interval @@ got restricted __le32 static const [toplevel] [usertype] dwDefaultFrameInterval @@ drivers/usb/gadget/legacy/webcam.c:234:69: sparse: expected unsigned int [usertype] dw_default_frame_interval drivers/usb/gadget/legacy/webcam.c:234:69: sparse: got restricted __le32 static const [toplevel] [usertype] dwDefaultFrameInterval drivers/usb/gadget/legacy/webcam.c:268:69: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned short [usertype] w_width @@ got restricted __le16 static const [toplevel] [usertype] wWidth @@ drivers/usb/gadget/legacy/webcam.c:268:69: sparse: expected unsigned short [usertype] w_width drivers/usb/gadget/legacy/webcam.c:268:69: sparse: got restricted __le16 static const [toplevel] [usertype] wWidth drivers/usb/gadget/legacy/webcam.c:269:69: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned short [usertype] w_height @@ got restricted __le16 static const [toplevel] [usertype] wHeight @@ drivers/usb/gadget/legacy/webcam.c:269:69: sparse: expected unsigned short [usertype] w_height drivers/usb/gadget/legacy/webcam.c:269:69: sparse: got restricted __le16 static const [toplevel] [usertype] wHeight drivers/usb/gadget/legacy/webcam.c:270:69: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] dw_min_bit_rate @@ got restricted __le32 static const [toplevel] [usertype] dwMinBitRate @@ drivers/usb/gadget/legacy/webcam.c:270:69: sparse: expected unsigned int [usertype] dw_min_bit_rate drivers/usb/gadget/legacy/webcam.c:270:69: sparse: got restricted __le32 static const [toplevel] [usertype] dwMinBitRate drivers/usb/gadget/legacy/webcam.c:271:69: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] dw_max_bit_rate @@ got restricted __le32 static const [toplevel] [usertype] dwMaxBitRate @@ drivers/usb/gadget/legacy/webcam.c:271:69: sparse: expected unsigned int [usertype] dw_max_bit_rate drivers/usb/gadget/legacy/webcam.c:271:69: sparse: got restricted __le32 static const [toplevel] [usertype] dwMaxBitRate drivers/usb/gadget/legacy/webcam.c:272:69: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] dw_max_video_frame_buffer_size @@ got restricted __le32 static const [toplevel] [usertype] dwMaxVideoFrameBufferSize @@ drivers/usb/gadget/legacy/webcam.c:272:69: sparse: expected unsigned int [usertype] dw_max_video_frame_buffer_size drivers/usb/gadget/legacy/webcam.c:272:69: sparse: got restricted __le32 static const [toplevel] [usertype] dwMaxVideoFrameBufferSize drivers/usb/gadget/legacy/webcam.c:273:69: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] dw_default_frame_interval @@ got restricted __le32 static const [toplevel] [usertype] dwDefaultFrameInterval @@ drivers/usb/gadget/legacy/webcam.c:273:69: sparse: expected unsigned int [usertype] dw_default_frame_interval drivers/usb/gadget/legacy/webcam.c:273:69: sparse: got restricted __le32 static const [toplevel] [usertype] dwDefaultFrameInterval drivers/usb/gadget/legacy/webcam.c:337:70: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned short [usertype] w_width @@ got restricted __le16 static const [toplevel] [usertype] wWidth @@ drivers/usb/gadget/legacy/webcam.c:337:70: sparse: expected unsigned short [usertype] w_width drivers/usb/gadget/legacy/webcam.c:337:70: sparse: got restricted __le16 static const [toplevel] [usertype] wWidth drivers/usb/gadget/legacy/webcam.c:338:70: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned short [usertype] w_height @@ got restricted __le16 static const [toplevel] [usertype] wHeight @@ drivers/usb/gadget/legacy/webcam.c:338:70: sparse: expected unsigned short [usertype] w_height drivers/usb/gadget/legacy/webcam.c:338:70: sparse: got restricted __le16 static const [toplevel] [usertype] wHeight drivers/usb/gadget/legacy/webcam.c:339:70: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] dw_min_bit_rate @@ got restricted __le32 static const [toplevel] [usertype] dwMinBitRate @@ drivers/usb/gadget/legacy/webcam.c:339:70: sparse: expected unsigned int [usertype] dw_min_bit_rate drivers/usb/gadget/legacy/webcam.c:339:70: sparse: got restricted __le32 static const [toplevel] [usertype] dwMinBitRate drivers/usb/gadget/legacy/webcam.c:340:70: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] dw_max_bit_rate @@ got restricted __le32 static const [toplevel] [usertype] dwMaxBitRate @@ drivers/usb/gadget/legacy/webcam.c:340:70: sparse: expected unsigned int [usertype] dw_max_bit_rate drivers/usb/gadget/legacy/webcam.c:340:70: sparse: got restricted __le32 static const [toplevel] [usertype] dwMaxBitRate drivers/usb/gadget/legacy/webcam.c:341:70: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] dw_max_video_frame_buffer_size @@ got restricted __le32 static const [toplevel] [usertype] dwMaxVideoFrameBufferSize @@ drivers/usb/gadget/legacy/webcam.c:341:70: sparse: expected unsigned int [usertype] dw_max_video_frame_buffer_size drivers/usb/gadget/legacy/webcam.c:341:70: sparse: got restricted __le32 static const [toplevel] [usertype] dwMaxVideoFrameBufferSize drivers/usb/gadget/legacy/webcam.c:342:70: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] dw_default_frame_interval @@ got restricted __le32 static const [toplevel] [usertype] dwDefaultFrameInterval @@ drivers/usb/gadget/legacy/webcam.c:342:70: sparse: expected unsigned int [usertype] dw_default_frame_interval drivers/usb/gadget/legacy/webcam.c:342:70: sparse: got restricted __le32 static const [toplevel] [usertype] dwDefaultFrameInterval drivers/usb/gadget/legacy/webcam.c:376:70: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned short [usertype] w_width @@ got restricted __le16 static const [toplevel] [usertype] wWidth @@ drivers/usb/gadget/legacy/webcam.c:376:70: sparse: expected unsigned short [usertype] w_width drivers/usb/gadget/legacy/webcam.c:376:70: sparse: got restricted __le16 static const [toplevel] [usertype] wWidth drivers/usb/gadget/legacy/webcam.c:377:70: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned short [usertype] w_height @@ got restricted __le16 static const [toplevel] [usertype] wHeight @@ drivers/usb/gadget/legacy/webcam.c:377:70: sparse: expected unsigned short [usertype] w_height drivers/usb/gadget/legacy/webcam.c:377:70: sparse: got restricted __le16 static const [toplevel] [usertype] wHeight drivers/usb/gadget/legacy/webcam.c:378:70: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] dw_min_bit_rate @@ got restricted __le32 static const [toplevel] [usertype] dwMinBitRate @@ drivers/usb/gadget/legacy/webcam.c:378:70: sparse: expected unsigned int [usertype] dw_min_bit_rate drivers/usb/gadget/legacy/webcam.c:378:70: sparse: got restricted __le32 static const [toplevel] [usertype] dwMinBitRate drivers/usb/gadget/legacy/webcam.c:379:70: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] dw_max_bit_rate @@ got restricted __le32 static const [toplevel] [usertype] dwMaxBitRate @@ drivers/usb/gadget/legacy/webcam.c:379:70: sparse: expected unsigned int [usertype] dw_max_bit_rate drivers/usb/gadget/legacy/webcam.c:379:70: sparse: got restricted __le32 static const [toplevel] [usertype] dwMaxBitRate drivers/usb/gadget/legacy/webcam.c:380:70: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] dw_max_video_frame_buffer_size @@ got restricted __le32 static const [toplevel] [usertype] dwMaxVideoFrameBufferSize @@ drivers/usb/gadget/legacy/webcam.c:380:70: sparse: expected unsigned int [usertype] dw_max_video_frame_buffer_size drivers/usb/gadget/legacy/webcam.c:380:70: sparse: got restricted __le32 static const [toplevel] [usertype] dwMaxVideoFrameBufferSize drivers/usb/gadget/legacy/webcam.c:381:70: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] dw_default_frame_interval @@ got restricted __le32 static const [toplevel] [usertype] dwDefaultFrameInterval @@ drivers/usb/gadget/legacy/webcam.c:381:70: sparse: expected unsigned int [usertype] dw_default_frame_interval drivers/usb/gadget/legacy/webcam.c:381:70: sparse: got restricted __le32 static const [toplevel] [usertype] dwDefaultFrameInterval drivers/usb/gadget/legacy/webcam.c: note: in included file (through include/linux/rculist.h, include/linux/pid.h, include/linux/sched.h, ...): include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true vim +229 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