* [sashal-linux-stable:queue-5.4 92/132] drivers/gpu/drm/panel/panel-elida-kd35t133.c:233:15: error: incompatible function pointer types initializing 'int drm_panel with an expression of type 'int (struct drm_panel struct drm_connector
@ 2021-03-20 7:19 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-20 7:19 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4795 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: d2c5af89e80c5b71f1da59879464a930947306a2
commit: e2bf810d1ab3ed29b696968b2b4cceb58f2f5bad [92/132] drm/panel: add panel driver for Elida KD35T133 panels
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/commit/?id=e2bf810d1ab3ed29b696968b2b4cceb58f2f5bad
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 e2bf810d1ab3ed29b696968b2b4cceb58f2f5bad
# 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@intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/panel/panel-elida-kd35t133.c:233: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 = kd35t133_get_modes,
^~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/panel/panel-elida-kd35t133.c:281:30: error: too many arguments to function call, expected single argument 'panel', have 4 arguments
drm_panel_init(&ctx->panel, &dsi->dev, &kd35t133_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-elida-kd35t133.c:284: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 +233 drivers/gpu/drm/panel/panel-elida-kd35t133.c
229
230 static const struct drm_panel_funcs kd35t133_funcs = {
231 .unprepare = kd35t133_unprepare,
232 .prepare = kd35t133_prepare,
> 233 .get_modes = kd35t133_get_modes,
234 };
235
236 static int kd35t133_probe(struct mipi_dsi_device *dsi)
237 {
238 struct device *dev = &dsi->dev;
239 struct kd35t133 *ctx;
240 int ret;
241
242 ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
243 if (!ctx)
244 return -ENOMEM;
245
246 ctx->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
247 if (IS_ERR(ctx->reset_gpio)) {
248 DRM_DEV_ERROR(dev, "cannot get reset gpio\n");
249 return PTR_ERR(ctx->reset_gpio);
250 }
251
252 ctx->vdd = devm_regulator_get(dev, "vdd");
253 if (IS_ERR(ctx->vdd)) {
254 ret = PTR_ERR(ctx->vdd);
255 if (ret != -EPROBE_DEFER)
256 DRM_DEV_ERROR(dev,
257 "Failed to request vdd regulator: %d\n",
258 ret);
259 return ret;
260 }
261
262 ctx->iovcc = devm_regulator_get(dev, "iovcc");
263 if (IS_ERR(ctx->iovcc)) {
264 ret = PTR_ERR(ctx->iovcc);
265 if (ret != -EPROBE_DEFER)
266 DRM_DEV_ERROR(dev,
267 "Failed to request iovcc regulator: %d\n",
268 ret);
269 return ret;
270 }
271
272 mipi_dsi_set_drvdata(dsi, ctx);
273
274 ctx->dev = dev;
275
276 dsi->lanes = 1;
277 dsi->format = MIPI_DSI_FMT_RGB888;
278 dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
279 MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET;
280
> 281 drm_panel_init(&ctx->panel, &dsi->dev, &kd35t133_funcs,
282 DRM_MODE_CONNECTOR_DSI);
283
> 284 ret = drm_panel_of_backlight(&ctx->panel);
285 if (ret)
286 return ret;
287
288 drm_panel_add(&ctx->panel);
289
290 ret = mipi_dsi_attach(dsi);
291 if (ret < 0) {
292 DRM_DEV_ERROR(dev, "mipi_dsi_attach failed: %d\n", ret);
293 drm_panel_remove(&ctx->panel);
294 return ret;
295 }
296
297 return 0;
298 }
299
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33024 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-20 7:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-20 7:19 [sashal-linux-stable:queue-5.4 92/132] drivers/gpu/drm/panel/panel-elida-kd35t133.c:233:15: error: incompatible function pointer types initializing 'int drm_panel with an expression of type 'int (struct drm_panel struct drm_connector kernel test robot
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.