From: kernel test robot <lkp@intel.com>
To: Neil Armstrong <neil.armstrong@linaro.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
Douglas Anderson <dianders@chromium.org>
Subject: [linux-next:master 7644/8126] drivers/gpu/drm/panel/panel-visionox-vtdr6130.c:255:8: error: call to undeclared function 'devm_regulator_bulk_get_const'; ISO C99 and later do not support implicit function declarations
Date: Sun, 1 Sep 2024 08:24:55 +0800 [thread overview]
Message-ID: <202409010839.kJVvn5zx-lkp@intel.com> (raw)
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: i386-randconfig-012-20240901 (https://download.01.org/0day-ci/archive/20240901/202409010839.kJVvn5zx-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240901/202409010839.kJVvn5zx-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/202409010839.kJVvn5zx-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/panel/panel-visionox-vtdr6130.c:255:8: error: call to undeclared function 'devm_regulator_bulk_get_const'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
255 | ret = devm_regulator_bulk_get_const(&dsi->dev,
| ^
1 error generated.
vim +/devm_regulator_bulk_get_const +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
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-09-01 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=202409010839.kJVvn5zx-lkp@intel.com \
--to=lkp@intel.com \
--cc=dianders@chromium.org \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
--cc=neil.armstrong@linaro.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox