Re: [PATCH v2 3/3] drm/panel: add panel driver for Leadtek LTK500HD1829

From: kbuild test robot
Date: Wed Dec 25 2019 - 04:14:49 EST


Hi Heiko,

I love your patch! Perhaps something to improve:

[auto build test WARNING on robh/for-next]
[cannot apply to drm-exynos/exynos-drm-next drm-intel/for-linux-next tegra-drm/drm/tegra/for-next drm-tip/drm-tip linus/master drm/drm-next v5.5-rc3 next-20191220]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url: https://github.com/0day-ci/linux/commits/Heiko-Stuebner/dt-bindings-Add-vendor-prefix-for-Leadtek-Technology/20191221-062606
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-129-g341daf20-dirty
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c:411:22: sparse: sparse: incorrect type in initializer (different argument counts)
>> drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c:411:22: sparse: expected int ( *get_modes )( ... )
>> drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c:411:22: sparse: got int ( * )( ... )
drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c:463:15: sparse: sparse: undefined identifier 'drm_panel_of_backlight'

vim +411 drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c

407
408 static const struct drm_panel_funcs ltk500hd1829_funcs = {
409 .unprepare = ltk500hd1829_unprepare,
410 .prepare = ltk500hd1829_prepare,
> 411 .get_modes = ltk500hd1829_get_modes,
412 };
413

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx Intel Corporation