Linux Media Controller development
 help / color / mirror / Atom feed
* [sailus-media-tree:frame-desc 28/38] drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c:51:25: warning: format '%p' expects argument of type 'void *', but argument 5 has type 'long int'
@ 2026-08-24 14:19 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-24 14:19 UTC (permalink / raw)
  To: Sakari Ailus; +Cc: oe-kbuild-all, linux-media, Frank Li

tree:   git://linuxtv.org/sailus/media_tree.git frame-desc
head:   7c1e8e3f907ccd6c51f2c23e1a4ac09b6d4b1f04
commit: d4fcc2fd2e12bdb46cd8a49eff24056dd12ad846 [28/38] media: nxp: imx8-isi: Use v4l2_subdev_get_frame_desc()
config: arc-allmodconfig (https://download.01.org/0day-ci/archive/20260824/202608242201.UypJNTA2-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260824/202608242201.UypJNTA2-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/202608242201.UypJNTA2-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
                    from drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c:9:
   drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c: In function 'mxc_isi_crossbar_gasket_enable':
>> drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c:51:25: warning: format '%p' expects argument of type 'void *', but argument 5 has type 'long int' [-Wformat=]
      51 |                         "failed to get frame descriptor from '%s':%u: %pe\n",
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                              ^~~
   include/linux/dev_printk.h:154:56: note: in expansion of macro 'dev_fmt'
     154 |         dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
         |                                                        ^~~~~~~
   drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c:50:17: note: in expansion of macro 'dev_err'
      50 |                 dev_err(isi->dev,
         |                 ^~~~~~~
   drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c:51:72: note: format string is defined here
      51 |                         "failed to get frame descriptor from '%s':%u: %pe\n",
         |                                                                       ~^
         |                                                                        |
         |                                                                        void *
         |                                                                       %ld


vim +51 drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c

    27	
    28	static int mxc_isi_crossbar_gasket_enable(struct mxc_isi_crossbar *xbar,
    29						  struct v4l2_subdev_state *state,
    30						  struct v4l2_subdev *remote_sd,
    31						  u32 remote_pad, unsigned int port)
    32	{
    33		struct mxc_isi_dev *isi = xbar->isi;
    34		const struct mxc_gasket_ops *gasket_ops = isi->pdata->gasket_ops;
    35		const struct v4l2_mbus_framefmt *fmt;
    36	
    37		if (!gasket_ops)
    38			return 0;
    39	
    40		/*
    41		 * Configure and enable the gasket with the frame size and CSI-2 data
    42		 * type. For YUV422 8-bit, enable dual component mode unconditionally,
    43		 * to match the configuration of the CSIS.
    44		 */
    45	
    46		struct v4l2_mbus_frame_desc *fd __free(v4l2_subdev_free_frame_desc) =
    47			v4l2_subdev_get_frame_desc(remote_sd, remote_pad,
    48						   V4L2_MBUS_FRAME_DESC_TYPE_PARALLEL);
    49		if (IS_ERR(fd)) {
    50			dev_err(isi->dev,
  > 51				"failed to get frame descriptor from '%s':%u: %pe\n",
    52				remote_sd->name, remote_pad, PTR_ERR(fd));
    53			return PTR_ERR(fd);
    54		}
    55	
    56		if (fd->num_entries != 1) {
    57			dev_err(isi->dev, "invalid frame descriptor for '%s':%u\n",
    58				remote_sd->name, remote_pad);
    59			return -EINVAL;
    60		}
    61	
    62		fmt = v4l2_subdev_state_get_format(state, port, 0);
    63		if (!fmt)
    64			return -EINVAL;
    65	
    66		gasket_ops->enable(isi, fd, fmt, port);
    67		return 0;
    68	}
    69	

--
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:[~2026-08-24 14:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-24 14:19 [sailus-media-tree:frame-desc 28/38] drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c:51:25: warning: format '%p' expects argument of type 'void *', but argument 5 has type 'long int' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox