tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: d2c5af89e80c5b71f1da59879464a930947306a2
commit: 2b06044daf23bebbc3e61d430dea24bb1779d0b8 [91/132] drm/panel: Add Feixin K101
IM2BA02 panel
config: arm-randconfig-r023-20210318 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
436c6c9c20cc522c92a923440a5fc509c342a7db)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 2b06044daf23bebbc3e61d430dea24bb1779d0b8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c:442:15: error:
incompatible function pointer types initializing 'int (*)(struct drm_panel *)'
with an expression of type 'int (struct drm_panel *, struct drm_connector *)'
[-Werror,-Wincompatible-function-pointer-types]
.get_modes =
k101_im2ba02_get_modes,
^~~~~~~~~~~~~~~~~~~~~~
> drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c:474:30: error:
too many arguments to function call, expected single argument 'panel', have 4
arguments
drm_panel_init(&ctx->panel, &dsi->dev,
&k101_im2ba02_funcs,
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_panel.h:150:6: note: 'drm_panel_init' declared here
void drm_panel_init(struct drm_panel *panel);
^
> drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c:477:8: error:
implicit declaration of function 'drm_panel_of_backlight'
[-Werror,-Wimplicit-function-declaration]
ret =
drm_panel_of_backlight(&ctx->panel);
^
3 errors generated.
vim +442 drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c
436
437 static const struct drm_panel_funcs k101_im2ba02_funcs = {
438 .disable = k101_im2ba02_disable,
439 .unprepare = k101_im2ba02_unprepare,
440 .prepare = k101_im2ba02_prepare,
441 .enable = k101_im2ba02_enable,
442 .get_modes = k101_im2ba02_get_modes,
443 };
444
445 static int k101_im2ba02_dsi_probe(struct mipi_dsi_device *dsi)
446 {
447 struct k101_im2ba02 *ctx;
448 unsigned int i;
449 int ret;
450
451 ctx = devm_kzalloc(&dsi->dev, sizeof(*ctx), GFP_KERNEL);
452 if (!ctx)
453 return -ENOMEM;
454
455 mipi_dsi_set_drvdata(dsi, ctx);
456 ctx->dsi = dsi;
457
458 for (i = 0; i < ARRAY_SIZE(ctx->supplies); i++)
459 ctx->supplies[i].supply = regulator_names[i];
460
461 ret = devm_regulator_bulk_get(&dsi->dev, ARRAY_SIZE(ctx->supplies),
462 ctx->supplies);
463 if (ret < 0) {
464 DRM_DEV_ERROR(&dsi->dev, "Couldn't get regulators\n");
465 return ret;
466 }
467
468 ctx->reset = devm_gpiod_get(&dsi->dev, "reset",
GPIOD_OUT_LOW);
469 if (IS_ERR(ctx->reset)) {
470 DRM_DEV_ERROR(&dsi->dev, "Couldn't get our reset GPIO\n");
471 return PTR_ERR(ctx->reset);
472 }
473
474 drm_panel_init(&ctx->panel, &dsi->dev,
&k101_im2ba02_funcs,
475 DRM_MODE_CONNECTOR_DSI);
476
477 ret = drm_panel_of_backlight(&ctx->panel);
478 if (ret)
479 return ret;
480
481 ret = drm_panel_add(&ctx->panel);
482 if (ret < 0)
483 return ret;
484
485 dsi->mode_flags = MIPI_DSI_MODE_VIDEO;
486 dsi->format = MIPI_DSI_FMT_RGB888;
487 dsi->lanes = 4;
488
489 ret = mipi_dsi_attach(dsi);
490 if (ret < 0) {
491 drm_panel_remove(&ctx->panel);
492 return ret;
493 }
494
495 return 0;
496 }
497
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org