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:frame-desc 13/17] drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c:110:24: warning: format specifies type 'int' but the argument has type 'long'
Date: Fri, 15 May 2026 13:55:04 +0800 [thread overview]
Message-ID: <202605151324.0bRU6lCx-lkp@intel.com> (raw)
tree: git://linuxtv.org/sailus/media_tree.git frame-desc
head: a0e9f7cf4fcd819e3c994fd629a63789748d81c5
commit: 0cf56292ac3200bd6a515db66aa9ed69fa60b091 [13/17] media: rkisp1: Use v4l2_subdev_get_frame_desc()
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260515/202605151324.0bRU6lCx-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260515/202605151324.0bRU6lCx-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/202605151324.0bRU6lCx-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c:110:24: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
109 | "failed to get frame descriptor from '%s':%u: %d\n",
| ~~
| %ld
110 | source_sd->name, 0, PTR_ERR(fd));
| ^~~~~~~~~~~
include/linux/dev_printk.h:154:65: note: expanded from macro 'dev_err'
154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ~~~ ^~~~~~~~~~~
1 warning generated.
vim +110 drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
86
87 static int rkisp1_gasket_enable(struct rkisp1_device *rkisp1,
88 struct media_pad *source)
89 {
90 struct v4l2_subdev *source_sd;
91 struct v4l2_mbus_frame_desc *fd __free(v4l2_subdev_free_frame_desc) =
92 NULL;
93 unsigned int dt;
94 u32 mask;
95 u32 val;
96
97 /*
98 * Configure and enable the gasket with the CSI-2 data type. Set the
99 * vsync polarity as active high, as that is what the ISP is configured
100 * to expect in ISP_ACQ_PROP. Enable left justification, as the i.MX8MP
101 * ISP has a 16-bit wide input and expects data to be left-aligned.
102 */
103
104 source_sd = media_entity_to_v4l2_subdev(source->entity);
105 fd = v4l2_subdev_get_frame_desc(source_sd, source->index,
106 V4L2_MBUS_FRAME_DESC_TYPE_CSI2);
107 if (IS_ERR(fd)) {
108 dev_err(rkisp1->dev,
109 "failed to get frame descriptor from '%s':%u: %d\n",
> 110 source_sd->name, 0, PTR_ERR(fd));
111 return PTR_ERR(fd);
112 }
113
114 if (fd->num_entries != 1) {
115 dev_err(rkisp1->dev, "invalid frame descriptor for '%s':%u\n",
116 source_sd->name, 0);
117 return -EINVAL;
118 }
119
120 dt = fd->entry[0].bus.csi2.dt;
121
122 if (rkisp1->gasket_id == 0) {
123 mask = ISP_DEWARP_CONTROL_MIPI_CSI1_HS_POLARITY
124 | ISP_DEWARP_CONTROL_MIPI_CSI1_VS_SEL_MASK
125 | ISP_DEWARP_CONTROL_MIPI_ISP1_LEFT_JUST_MODE
126 | ISP_DEWARP_CONTROL_MIPI_ISP1_DATA_TYPE_MASK
127 | ISP_DEWARP_CONTROL_GPR_ISP_0_DISABLE;
128 val = ISP_DEWARP_CONTROL_MIPI_CSI1_VS_SEL_POSITIVE
129 | ISP_DEWARP_CONTROL_MIPI_ISP1_LEFT_JUST_MODE
130 | ISP_DEWARP_CONTROL_MIPI_ISP1_DATA_TYPE(dt);
131 } else {
132 mask = ISP_DEWARP_CONTROL_MIPI_CSI2_HS_POLARITY
133 | ISP_DEWARP_CONTROL_MIPI_CSI2_VS_SEL_MASK
134 | ISP_DEWARP_CONTROL_MIPI_ISP2_LEFT_JUST_MODE
135 | ISP_DEWARP_CONTROL_MIPI_ISP2_DATA_TYPE_MASK
136 | ISP_DEWARP_CONTROL_GPR_ISP_1_DISABLE;
137 val = ISP_DEWARP_CONTROL_MIPI_CSI2_VS_SEL_POSITIVE
138 | ISP_DEWARP_CONTROL_MIPI_ISP2_LEFT_JUST_MODE
139 | ISP_DEWARP_CONTROL_MIPI_ISP2_DATA_TYPE(dt);
140 }
141
142 regmap_update_bits(rkisp1->gasket, ISP_DEWARP_CONTROL, mask, val);
143
144 return 0;
145 }
146
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-05-15 5:55 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=202605151324.0bRU6lCx-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.