drivers/gpu/drm/panel/panel-visionox-vtdr6130.c:255:15: error: implicit declaration of function 'devm_regulator_bulk_get_const'; did you mean 'devm_regulator_bulk_get_enable'?
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 985bf40edf4343dcb04c33f58b40b4a85c1776d4 commit: e0cb0c785250d0565c19ba17fc95bd7ab97670ba [7644/8126] drm/panel: visionox-vtdr6130: switch to devm_regulator_bulk_get_const config: openrisc-randconfig-r022-20230730 (https://download.01.org/0day-ci/archive/20240830/[email protected]/config) compiler: or1k-linux-gcc (GCC) 13.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240830/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
drivers/gpu/drm/panel/panel-visionox-vtdr6130.c: In function 'visionox_vtdr6130_probe':
>> drivers/gpu/drm/panel/panel-visionox-vtdr6130.c:255:15: error: implicit declaration of function 'devm_regulator_bulk_get_const'; did you mean 'devm_regulator_bulk_get_enable'? [-Werror=implicit-function-declaration]
255 | ret = devm_regulator_bulk_get_const(&dsi->dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| devm_regulator_bulk_get_enablecc1: some warnings being treated as errors
vim +255 drivers/gpu/drm/panel/panel-visionox-vtdr6130.c
244
245 static int visionox_vtdr6130_probe(struct mipi_dsi_device *dsi)
246 {
247 struct device *dev = &dsi->dev;
248 struct visionox_vtdr6130 *ctx;
249 int ret;
250
251 ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
252 if (!ctx)
253 return -ENOMEM;
254
> 255 ret = devm_regulator_bulk_get_const(&dsi->dev, 256 ARRAY_SIZE(visionox_vtdr6130_supplies), 257 visionox_vtdr6130_supplies, 258 &ctx->supplies);
259 if (ret < 0)
260 return ret;
261
262 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
263 if (IS_ERR(ctx->reset_gpio))
264 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio),
265 "Failed to get reset-gpios\n");
266
267 ctx->dsi = dsi;
268 mipi_dsi_set_drvdata(dsi, ctx);
269
270 dsi->lanes = 4;
271 dsi->format = MIPI_DSI_FMT_RGB888;
272 dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_NO_EOT_PACKET |
273 MIPI_DSI_CLOCK_NON_CONTINUOUS;
274 ctx->panel.prepare_prev_first = true;
275
276 drm_panel_init(&ctx->panel, dev, &visionox_vtdr6130_panel_funcs,
277 DRM_MODE_CONNECTOR_DSI);
278
279 ctx->panel.backlight = visionox_vtdr6130_create_backlight(dsi);
280 if (IS_ERR(ctx->panel.backlight))
281 return dev_err_probe(dev, PTR_ERR(ctx->panel.backlight),
282 "Failed to create backlight\n");
283
284 drm_panel_add(&ctx->panel);
285
286 ret = mipi_dsi_attach(dsi);
287 if (ret < 0) {
288 dev_err(dev, "Failed to attach to DSI host: %d\n", ret);
289 drm_panel_remove(&ctx->panel);
290 return ret;
291 }
292
293 return 0;
294 }
295
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Hi,
Quoted 13 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 985bf40edf4343dcb04c33f58b40b4a85c1776d4 commit: e0cb0c785250d0565c19ba17fc95bd7ab97670ba [7644/8126] drm/panel: visionox-vtdr6130: switch to devm_regulator_bulk_get_const config: openrisc-randconfig-r022-20230730 (https://download.01.org/0day-ci/archive/20240830/[email protected]/config) compiler: or1k-linux-gcc (GCC) 13.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240830/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Quoted 8 lines
All errors (new ones prefixed by >>):
drivers/gpu/drm/panel/panel-visionox-vtdr6130.c: In function 'visionox_vtdr6130_probe':Quoted 1 line
Quoted 1 line
drivers/gpu/drm/panel/panel-visionox-vtdr6130.c:255:15: error: implicit declaration of function 'devm_regulator_bulk_get_const'; did you mean 'devm_regulator_bulk_get_enable'? [-Werror=implicit-function-declaration]255 | ret = devm_regulator_bulk_get_const(&dsi->dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | devm_regulator_bulk_get_enablecc1: some warnings being treated as errors
Oh! I think when I added devm_regulator_bulk_get_const() all those years ago I didn't add an inline-noop version. Let me post a patch now.
-Doug
Hi,
Quoted 21 lines · Doug Anderson
Hi,
Quoted 17 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 985bf40edf4343dcb04c33f58b40b4a85c1776d4 commit: e0cb0c785250d0565c19ba17fc95bd7ab97670ba [7644/8126] drm/panel: visionox-vtdr6130: switch to devm_regulator_bulk_get_const config: openrisc-randconfig-r022-20230730 (https://download.01.org/0day-ci/archive/20240830/[email protected]/config) compiler: or1k-linux-gcc (GCC) 13.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240830/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All errors (new ones prefixed by >>):
drivers/gpu/drm/panel/panel-visionox-vtdr6130.c: In function 'visionox_vtdr6130_probe':Quoted 1 line
Quoted 1 line
drivers/gpu/drm/panel/panel-visionox-vtdr6130.c:255:15: error: implicit declaration of function 'devm_regulator_bulk_get_const'; did you mean 'devm_regulator_bulk_get_enable'? [-Werror=implicit-function-declaration]
Quoted 8 lines
Quoted 4 lines
255 | ret = devm_regulator_bulk_get_const(&dsi->dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | devm_regulator_bulk_get_enablecc1: some warnings being treated as errors
Oh! I think when I added
devm_regulator_bulk_get_const()all those years ago I didn't add an inline-noop version. Let me post a patch now.
OK, I've posted:
https://lore.kernel.org/r/20240830073511.1.Ib733229a8a19fad8179213c05e1af01b51e42328@changeid
That should fix the issue. I assume having that go through the regulator tree ought to be fine, though it will mean randconfig on the DRM trees could keep hitting this failure until the DRM trees rebase onto a kernel with the fix.
-Doug