Hi Tian, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on linus/master] [also build test WARNING on v5.11-rc2 next-20210108] [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/Tian-Tao/drm-connector-Set-the-default-callback-function-for-drm_connector_funcs/20210108-165753 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git f5e6c330254ae691f6d7befe61c786eb5056007e config: m68k-allmodconfig (attached as .config) compiler: m68k-linux-gcc (GCC) 9.3.0 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 # https://github.com/0day-ci/linux/commit/37e7ae0ccb8825f7718028991d1635d60323f9dc git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Tian-Tao/drm-connector-Set-the-default-callback-function-for-drm_connector_funcs/20210108-165753 git checkout 37e7ae0ccb8825f7718028991d1635d60323f9dc # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/err.h:5, from include/linux/regulator/consumer.h:34, from drivers/gpu/drm/exynos/exynos_drm_dpi.c:11: include/linux/scatterlist.h: In function 'sg_set_buf': arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra] 174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory) | ^~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ drivers/gpu/drm/exynos/exynos_drm_dpi.c: In function 'exynos_dpi_create_connector': >> drivers/gpu/drm/exynos/exynos_drm_dpi.c:102:6: warning: passing argument 3 of 'drm_connector_init' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 102 | &exynos_dpi_connector_funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/drm/drm_modes.h:33, from include/drm/drm_crtc.h:40, from include/drm/drm_atomic_helper.h:31, from drivers/gpu/drm/exynos/exynos_drm_dpi.c:13: include/drm/drm_connector.h:1515:38: note: expected 'struct drm_connector_funcs *' but argument is of type 'const struct drm_connector_funcs *' 1515 | struct drm_connector_funcs *funcs, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -- In file included from include/linux/err.h:5, from include/linux/clk.h:12, from drivers/gpu/drm/exynos/exynos_drm_dsi.c:10: include/linux/scatterlist.h: In function 'sg_set_buf': arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra] 174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory) | ^~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ drivers/gpu/drm/exynos/exynos_drm_dsi.c: In function 'exynos_dsi_create_connector': >> drivers/gpu/drm/exynos/exynos_drm_dsi.c:1502:43: warning: passing argument 3 of 'drm_connector_init' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1502 | ret = drm_connector_init(drm, connector, &exynos_dsi_connector_funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/drm/drm_modes.h:33, from include/drm/drm_crtc.h:40, from include/drm/drm_atomic_helper.h:31, from drivers/gpu/drm/exynos/exynos_drm_dsi.c:26: include/drm/drm_connector.h:1515:38: note: expected 'struct drm_connector_funcs *' but argument is of type 'const struct drm_connector_funcs *' 1515 | struct drm_connector_funcs *funcs, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -- In file included from include/linux/kernel.h:10, from drivers/gpu/drm/exynos/exynos_drm_vidi.c:10: include/linux/scatterlist.h: In function 'sg_set_buf': arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra] 174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory) | ^~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ drivers/gpu/drm/exynos/exynos_drm_vidi.c: In function 'vidi_create_connector': >> drivers/gpu/drm/exynos/exynos_drm_vidi.c:346:4: warning: passing argument 3 of 'drm_connector_init' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 346 | &vidi_connector_funcs, DRM_MODE_CONNECTOR_VIRTUAL); | ^~~~~~~~~~~~~~~~~~~~~ In file included from include/drm/drm_modes.h:33, from include/drm/drm_crtc.h:40, from include/drm/drm_atomic_helper.h:31, from drivers/gpu/drm/exynos/exynos_drm_vidi.c:14: include/drm/drm_connector.h:1515:38: note: expected 'struct drm_connector_funcs *' but argument is of type 'const struct drm_connector_funcs *' 1515 | struct drm_connector_funcs *funcs, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -- drivers/gpu/drm/imx/parallel-display.c: In function 'imx_pd_register': >> drivers/gpu/drm/imx/parallel-display.c:282:8: warning: passing argument 3 of 'drm_connector_init' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 282 | &imx_pd_connector_funcs, | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/drm/drm_modes.h:33, from include/drm/drm_crtc.h:40, from include/drm/drm_atomic_helper.h:31, from drivers/gpu/drm/imx/parallel-display.c:15: include/drm/drm_connector.h:1515:38: note: expected 'struct drm_connector_funcs *' but argument is of type 'const struct drm_connector_funcs *' 1515 | struct drm_connector_funcs *funcs, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -- In file included from include/linux/err.h:5, from include/linux/clk.h:12, from drivers/gpu/drm/rockchip/cdn-dp-core.c:7: include/linux/scatterlist.h: In function 'sg_set_buf': arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra] 174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory) | ^~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ drivers/gpu/drm/rockchip/cdn-dp-core.c: In function 'cdn_dp_bind': >> drivers/gpu/drm/rockchip/cdn-dp-core.c:1045:6: warning: passing argument 3 of 'drm_connector_init' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1045 | &cdn_dp_atomic_connector_funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/drm/drm_modes.h:33, from include/drm/drm_crtc.h:40, from include/drm/drm_atomic_helper.h:31, from drivers/gpu/drm/rockchip/cdn-dp-core.c:18: include/drm/drm_connector.h:1515:38: note: expected 'struct drm_connector_funcs *' but argument is of type 'const struct drm_connector_funcs *' 1515 | struct drm_connector_funcs *funcs, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ At top level: drivers/gpu/drm/rockchip/cdn-dp-core.c:1124:12: warning: 'cdn_dp_resume' defined but not used [-Wunused-function] 1124 | static int cdn_dp_resume(struct device *dev) | ^~~~~~~~~~~~~ -- In file included from include/linux/err.h:5, from include/linux/clk.h:12, from drivers/gpu/drm/rockchip/rockchip_lvds.c:9: include/linux/scatterlist.h: In function 'sg_set_buf': arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra] 174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory) | ^~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ drivers/gpu/drm/rockchip/rockchip_lvds.c: In function 'rockchip_lvds_bind': >> drivers/gpu/drm/rockchip/rockchip_lvds.c:620:7: warning: passing argument 3 of 'drm_connector_init' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 620 | &rockchip_lvds_connector_funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/drm/drm_modes.h:33, from include/drm/drm_crtc.h:40, from include/drm/drm_atomic_helper.h:31, from drivers/gpu/drm/rockchip/rockchip_lvds.c:20: include/drm/drm_connector.h:1515:38: note: expected 'struct drm_connector_funcs *' but argument is of type 'const struct drm_connector_funcs *' 1515 | struct drm_connector_funcs *funcs, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -- In file included from include/linux/build_bug.h:5, from include/linux/bits.h:22, from include/linux/ioport.h:13, from include/linux/acpi.h:12, from include/linux/i2c.h:13, from include/drm/drm_crtc.h:28, from include/drm/drm_atomic_helper.h:31, from drivers/gpu/drm/vc4/vc4_vec.c:16: include/linux/scatterlist.h: In function 'sg_set_buf': arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra] 174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory) | ^~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ drivers/gpu/drm/vc4/vc4_vec.c: In function 'vc4_vec_connector_init': >> drivers/gpu/drm/vc4/vc4_vec.c:364:37: warning: passing argument 3 of 'drm_connector_init' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 364 | drm_connector_init(dev, connector, &vc4_vec_connector_funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/drm/drm_modes.h:33, from include/drm/drm_crtc.h:40, from include/drm/drm_atomic_helper.h:31, from drivers/gpu/drm/vc4/vc4_vec.c:16: include/drm/drm_connector.h:1515:38: note: expected 'struct drm_connector_funcs *' but argument is of type 'const struct drm_connector_funcs *' 1515 | struct drm_connector_funcs *funcs, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ vim +102 drivers/gpu/drm/exynos/exynos_drm_dpi.c 14b6873a01981b2 Andrzej Hajda 2014-03-17 92 2b8376c803c4c1c Gustavo Padovan 2015-08-15 93 static int exynos_dpi_create_connector(struct drm_encoder *encoder) 14b6873a01981b2 Andrzej Hajda 2014-03-17 94 { 2b8376c803c4c1c Gustavo Padovan 2015-08-15 95 struct exynos_dpi *ctx = encoder_to_dpi(encoder); 14b6873a01981b2 Andrzej Hajda 2014-03-17 96 struct drm_connector *connector = &ctx->connector; 14b6873a01981b2 Andrzej Hajda 2014-03-17 97 int ret; 14b6873a01981b2 Andrzej Hajda 2014-03-17 98 14b6873a01981b2 Andrzej Hajda 2014-03-17 99 connector->polled = DRM_CONNECTOR_POLL_HPD; 14b6873a01981b2 Andrzej Hajda 2014-03-17 100 14b6873a01981b2 Andrzej Hajda 2014-03-17 101 ret = drm_connector_init(encoder->dev, connector, 14b6873a01981b2 Andrzej Hajda 2014-03-17 @102 &exynos_dpi_connector_funcs, 14b6873a01981b2 Andrzej Hajda 2014-03-17 103 DRM_MODE_CONNECTOR_VGA); 14b6873a01981b2 Andrzej Hajda 2014-03-17 104 if (ret) { 6f83d20838c0993 Inki Dae 2019-04-15 105 DRM_DEV_ERROR(ctx->dev, 6f83d20838c0993 Inki Dae 2019-04-15 106 "failed to initialize connector with drm\n"); 14b6873a01981b2 Andrzej Hajda 2014-03-17 107 return ret; 14b6873a01981b2 Andrzej Hajda 2014-03-17 108 } 14b6873a01981b2 Andrzej Hajda 2014-03-17 109 14b6873a01981b2 Andrzej Hajda 2014-03-17 110 drm_connector_helper_add(connector, &exynos_dpi_connector_helper_funcs); cde4c44d8769c1b Daniel Vetter 2018-07-09 111 drm_connector_attach_encoder(connector, encoder); 14b6873a01981b2 Andrzej Hajda 2014-03-17 112 14b6873a01981b2 Andrzej Hajda 2014-03-17 113 return 0; 14b6873a01981b2 Andrzej Hajda 2014-03-17 114 } 14b6873a01981b2 Andrzej Hajda 2014-03-17 115 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org