[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'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx/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@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/202312220829.0yltDocK-lkp@xxxxxxxxx/

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




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux