* [sailus-media-tree:media-ref 36/40] drivers/media/test-drivers/vim2m.c:1321:44: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long'
@ 2023-12-22 0:22 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-22 0:22 UTC (permalink / raw)
To: Sakari Ailus; +Cc: llvm, oe-kbuild-all, linux-media
tree: git://linuxtv.org/sailus/media_tree.git media-ref
head: 9587641ab37e563866fb73acc04735eccd59a2d3
commit: b42c2dd3479e60f6dbaefdbdc6b232d925c716e5 [36/40] koe
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20231222/202312220829.0yltDocK-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231222/202312220829.0yltDocK-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/202312220829.0yltDocK-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/media/test-drivers/vim2m.c:1321:44: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
printk("OBJECT vim2m %p, size %x\n", dev, sizeof(*dev));
~~ ^~~~~~~~~~~~
%lx
include/linux/printk.h:455:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:427:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
~~~~ ^~~~~~~~~~~
1 warning generated.
vim +1321 drivers/media/test-drivers/vim2m.c
1310
1311 static int vim2m_probe(struct platform_device *pdev)
1312 {
1313 struct vim2m_dev *dev;
1314 struct video_device *vfd;
1315 int ret;
1316
1317 dev = kzalloc(sizeof(*dev), GFP_KERNEL);
1318 if (!dev)
1319 return -ENOMEM;
1320
> 1321 printk("OBJECT vim2m %p, size %x\n", dev, sizeof(*dev));
1322
1323 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev);
1324 if (ret)
1325 goto error_free;
1326
1327 atomic_set(&dev->num_inst, 0);
1328 mutex_init(&dev->dev_mutex);
1329
1330 dev->vfd = vim2m_videodev;
1331 vfd = &dev->vfd;
1332 vfd->lock = &dev->dev_mutex;
1333 vfd->v4l2_dev = &dev->v4l2_dev;
1334
1335 video_set_drvdata(vfd, dev);
1336 v4l2_info(&dev->v4l2_dev,
1337 "Device registered as /dev/video%d\n", vfd->num);
1338
1339 platform_set_drvdata(pdev, dev);
1340
1341 dev->m2m_dev = v4l2_m2m_init(&m2m_ops);
1342 if (IS_ERR(dev->m2m_dev)) {
1343 v4l2_err(&dev->v4l2_dev, "Failed to init mem2mem device\n");
1344 ret = PTR_ERR(dev->m2m_dev);
1345 dev->m2m_dev = NULL;
1346 goto error_dev;
1347 }
1348
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-22 0:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-22 0:22 [sailus-media-tree:media-ref 36/40] drivers/media/test-drivers/vim2m.c:1321:44: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' kernel test robot
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.