Hi Grace,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip drm-exynos/exynos-drm-next
tegra-drm/drm/tegra/for-next linus/master v5.14-rc1 next-20210714]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Grace-An/drm-return-int-error-co...
base:
git://anongit.freedesktop.org/drm-intel for-linux-next
config: xtensa-randconfig-s031-20210713 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
#
https://github.com/0day-ci/linux/commit/2f5324deb5c8ffa632b47e073c8f7c270...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Grace-An/drm-return-int-error-code-from-mode_fixup/20210714-154532
git checkout 2f5324deb5c8ffa632b47e073c8f7c27046d79a9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=xtensa
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/exynos/exynos_drm_crtc.c:112:16: error:
initialization of 'int (*)(struct drm_crtc *, const struct drm_display_mode *, struct
drm_display_mode *)' from incompatible pointer type 'bool (*)(struct drm_crtc *,
const struct drm_display_mode *, struct drm_display_mode *)' {aka '_Bool
(*)(struct drm_crtc *, const struct drm_display_mode *, struct drm_display_mode *)'}
[-Werror=incompatible-pointer-types]
112 | .mode_fixup =
exynos_crtc_mode_fixup,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/exynos/exynos_drm_crtc.c:112:16: note: (near initialization for
'exynos_crtc_helper_funcs.mode_fixup')
cc1: some warnings being treated as errors
--
> drivers/gpu/drm/vc4/vc4_dsi.c:1324:16: error: initialization of
'int (*)(struct drm_encoder *, const struct drm_display_mode *, struct
drm_display_mode *)' from incompatible pointer type 'bool (*)(struct drm_encoder
*, const struct drm_display_mode *, struct drm_display_mode *)' {aka '_Bool
(*)(struct drm_encoder *, const struct drm_display_mode *, struct drm_display_mode
*)'} [-Werror=incompatible-pointer-types]
1324 | .mode_fixup =
vc4_dsi_encoder_mode_fixup,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/vc4/vc4_dsi.c:1324:16: note: (near initialization for
'vc4_dsi_encoder_helper_funcs.mode_fixup')
cc1: some warnings being treated as errors
--
> drivers/gpu/drm/vc4/vc4_vec.c:501:16: error: initialization of
'int (*)(struct drm_encoder *, const struct drm_display_mode *, struct
drm_display_mode *)' from incompatible pointer type 'bool (*)(struct drm_encoder
*, const struct drm_display_mode *, struct drm_display_mode *)' {aka '_Bool
(*)(struct drm_encoder *, const struct drm_display_mode *, struct drm_display_mode
*)'} [-Werror=incompatible-pointer-types]
501 | .mode_fixup =
vc4_vec_encoder_mode_fixup,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/vc4/vc4_vec.c:501:16: note: (near initialization for
'vc4_vec_encoder_helper_funcs.mode_fixup')
cc1: some warnings being treated as errors
vim +112 drivers/gpu/drm/exynos/exynos_drm_crtc.c
2466db97e39d54 Andrzej Hajda 2017-09-29 108
2466db97e39d54 Andrzej Hajda 2017-09-29 109
a392276d1dec63 Andrzej Hajda 2017-03-14 110 static const struct drm_crtc_helper_funcs
exynos_crtc_helper_funcs = {
c3653fede57f30 Andrzej Hajda 2017-08-24 111 .mode_valid = exynos_crtc_mode_valid,
2466db97e39d54 Andrzej Hajda 2017-09-29 @112 .mode_fixup = exynos_crtc_mode_fixup,
a392276d1dec63 Andrzej Hajda 2017-03-14 113 .atomic_check =
exynos_crtc_atomic_check,
a392276d1dec63 Andrzej Hajda 2017-03-14 114 .atomic_begin =
exynos_crtc_atomic_begin,
a392276d1dec63 Andrzej Hajda 2017-03-14 115 .atomic_flush =
exynos_crtc_atomic_flush,
0b20a0f8c3cb6f Laurent Pinchart 2017-06-30 116 .atomic_enable =
exynos_drm_crtc_atomic_enable,
64581714b58bc3 Laurent Pinchart 2017-06-30 117 .atomic_disable =
exynos_drm_crtc_atomic_disable,
a392276d1dec63 Andrzej Hajda 2017-03-14 118 };
a392276d1dec63 Andrzej Hajda 2017-03-14 119
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org