tree: git://linuxtv.org/media_tree.git master head: 7d459937dc09bb8e448d9985ec4623779427d8a5 commit: 7d459937dc09bb8e448d9985ec4623779427d8a5 [499/499] [media] Add driver for Samsung S5K5BAF camera sensor config: x86_64-randconfig-s3-12241534 (attached as .config) All warnings: drivers/media/i2c/s5k5baf.c: In function 's5k5baf_fw_parse': >> drivers/media/i2c/s5k5baf.c:362:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=] dev_err(dev, "firmware file too short (%d)\n", count); ^ >> drivers/media/i2c/s5k5baf.c:383:4: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat=] f->count, 2 * (count + S5K5BAG_FW_TAG_LEN)); ^ vim +362 drivers/media/i2c/s5k5baf.c 356 { 357 struct s5k5baf_fw *f; 358 u16 *d, i, *end; 359 int ret; 360 361 if (count < S5K5BAG_FW_TAG_LEN + 1) { > 362 dev_err(dev, "firmware file too short (%d)\n", count); 363 return -EINVAL; 364 } 365 366 ret = memcmp(data, S5K5BAF_FW_TAG, S5K5BAG_FW_TAG_LEN * sizeof(u16)); 367 if (ret != 0) { 368 dev_err(dev, "invalid firmware magic number\n"); 369 return -EINVAL; 370 } 371 372 data += S5K5BAG_FW_TAG_LEN; 373 count -= S5K5BAG_FW_TAG_LEN; 374 375 d = devm_kzalloc(dev, count * sizeof(u16), GFP_KERNEL); 376 377 for (i = 0; i < count; ++i) 378 d[i] = le16_to_cpu(data[i]); 379 380 f = (struct s5k5baf_fw *)d; 381 if (count < 1 + 2 * f->count) { 382 dev_err(dev, "invalid firmware header (count=%d size=%d)\n", > 383 f->count, 2 * (count + S5K5BAG_FW_TAG_LEN)); 384 return -EINVAL; 385 } 386 end = d + count; --- 0-DAY kernel build testing backend Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation