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 36/40] drivers/media/test-drivers/vim2m.c:1321:44: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long'
Date: Fri, 22 Dec 2023 08:22:30 +0800 [thread overview]
Message-ID: <202312220829.0yltDocK-lkp@intel.com> (raw)
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
reply other threads:[~2023-12-22 0:25 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=202312220829.0yltDocK-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.