From: kernel test robot <lkp@intel.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-media@vger.kernel.org
Subject: [sailus-media-tree:media-ref 21/27] drivers/media/test-drivers/vim2m.c:1537:44: warning: format specifies type 'unsigned int' but the argument has type '__size_t' (aka 'unsigned long')
Date: Fri, 23 Oct 2026 04:59:20 +0800 [thread overview]
Message-ID: <202610230433.v7bfVQgL-lkp@intel.com> (raw)
tree: git://linuxtv.org/sailus/media_tree.git media-ref
head: bb43fe9fe0f40894bec0e5045aade6652ef6a46c
commit: 5df2cfc0b2f0f0b584050f1b56cf75c78c6e0091 [21/27] koe
config: x86_64-randconfig-1007-20261022 (https://download.01.org/0day-ci/archive/20261023/202610230433.v7bfVQgL-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261023/202610230433.v7bfVQgL-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610230433.v7bfVQgL-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/media/test-drivers/vim2m.c:1537:44: warning: format specifies type 'unsigned int' but the argument has type '__size_t' (aka 'unsigned long') [-Wformat]
1537 | printk("OBJECT vim2m %p, size %x\n", dev, sizeof(*dev));
| ~~ ^~~~~~~~~~~~
| %zx
include/linux/printk.h:511:60: note: expanded from macro 'printk'
511 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/printk.h:483:19: note: expanded from macro 'printk_index_wrap'
483 | _p_func(_fmt, ##__VA_ARGS__); \
| ~~~~ ^~~~~~~~~~~
1 warning generated.
vim +1537 drivers/media/test-drivers/vim2m.c
1526
1527 static int vim2m_probe(struct platform_device *pdev)
1528 {
1529 struct vim2m_dev *dev;
1530 struct video_device *vfd;
1531 int ret;
1532
1533 dev = kzalloc_obj(*dev);
1534 if (!dev)
1535 return -ENOMEM;
1536
> 1537 printk("OBJECT vim2m %p, size %x\n", dev, sizeof(*dev));
1538
1539 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev);
1540 if (ret)
1541 goto error_free;
1542
1543 atomic_set(&dev->num_inst, 0);
1544 mutex_init(&dev->dev_mutex);
1545
1546 dev->multiplanar = (multiplanar == 2);
1547
1548 dev->vfd = vim2m_videodev;
1549 vfd = &dev->vfd;
1550 vfd->lock = &dev->dev_mutex;
1551 vfd->v4l2_dev = &dev->v4l2_dev;
1552 vfd->device_caps |= (dev->multiplanar) ? V4L2_CAP_VIDEO_M2M_MPLANE :
1553 V4L2_CAP_VIDEO_M2M;
1554
1555 video_set_drvdata(vfd, dev);
1556 platform_set_drvdata(pdev, dev);
1557
1558 dev->m2m_dev = v4l2_m2m_init(&m2m_ops);
1559 if (IS_ERR(dev->m2m_dev)) {
1560 v4l2_err(&dev->v4l2_dev, "Failed to init mem2mem device\n");
1561 ret = PTR_ERR(dev->m2m_dev);
1562 dev->m2m_dev = NULL;
1563 goto error_dev;
1564 }
1565
1566 dev->mdev.dev = &pdev->dev;
1567 strscpy(dev->mdev.model, "vim2m", sizeof(dev->mdev.model));
1568 strscpy(dev->mdev.bus_info, "platform:vim2m",
1569 sizeof(dev->mdev.bus_info));
1570 media_device_init(&dev->mdev);
1571 dev->mdev.ops = &m2m_media_ops;
1572 dev->v4l2_dev.mdev = &dev->mdev;
1573
1574 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0);
1575 if (ret) {
1576 v4l2_err(&dev->v4l2_dev, "Failed to register video device\n");
1577 goto error_m2m;
1578 }
1579
1580 v4l2_info(&dev->v4l2_dev,
1581 "Device registered as /dev/video%d\n", vfd->num);
1582
1583 ret = v4l2_m2m_register_media_controller(dev->m2m_dev, vfd,
1584 MEDIA_ENT_F_PROC_VIDEO_SCALER);
1585 if (ret) {
1586 v4l2_err(&dev->v4l2_dev, "Failed to init mem2mem media controller\n");
1587 goto error_v4l2;
1588 }
1589
1590 ret = media_device_register(&dev->mdev);
1591 if (ret) {
1592 v4l2_err(&dev->v4l2_dev, "Failed to register mem2mem media device\n");
1593 goto error_m2m_mc;
1594 }
1595
1596 return 0;
1597
1598 error_m2m_mc:
1599 v4l2_m2m_unregister_media_controller(dev->m2m_dev);
1600 error_v4l2:
1601 video_unregister_device(&dev->vfd);
1602 /* vim2m_device_release called by video_unregister_device to release various objects */
1603 return ret;
1604 error_m2m:
1605 v4l2_m2m_release(dev->m2m_dev);
1606 error_dev:
1607 v4l2_device_unregister(&dev->v4l2_dev);
1608 error_free:
1609 kfree(dev);
1610
1611 return ret;
1612 }
1613
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-10-22 20:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202610230433.v7bfVQgL-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-media@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.