tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 0f5f12ac05f36f117e793656c3f560625e927f1b commit: ae3436a5e7c2ef4f92938133bd99f92fc47ea34e [1690/4884] drm/rockchip: rk3066_hdmi: Switch encoder hooks to atomic config: x86_64-buildonly-randconfig-003-20231204 (https://download.01.org/0day-ci/archive/20231205/202312051333.Z0rH44Jk-lkp@xxxxxxxxx/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231205/202312051333.Z0rH44Jk-lkp@xxxxxxxxx/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202312051333.Z0rH44Jk-lkp@xxxxxxxxx/ Note: the linux-next/master HEAD 0f5f12ac05f36f117e793656c3f560625e927f1b builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): >> drivers/gpu/drm/rockchip/rk3066_hdmi.c:397:15: error: call to undeclared function 'drm_atomic_get_new_connector_state'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] conn_state = drm_atomic_get_new_connector_state(state, &hdmi->connector); ^ drivers/gpu/drm/rockchip/rk3066_hdmi.c:397:15: note: did you mean 'drm_atomic_helper_connector_reset'? include/drm/drm_atomic_state_helper.h:73:6: note: 'drm_atomic_helper_connector_reset' declared here void drm_atomic_helper_connector_reset(struct drm_connector *connector); ^ >> drivers/gpu/drm/rockchip/rk3066_hdmi.c:397:13: error: incompatible integer to pointer conversion assigning to 'struct drm_connector_state *' from 'int' [-Wint-conversion] conn_state = drm_atomic_get_new_connector_state(state, &hdmi->connector); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/rockchip/rk3066_hdmi.c:401:15: error: call to undeclared function 'drm_atomic_get_new_crtc_state'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc); ^ >> drivers/gpu/drm/rockchip/rk3066_hdmi.c:401:13: error: incompatible integer to pointer conversion assigning to 'struct drm_crtc_state *' from 'int' [-Wint-conversion] crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 errors generated. vim +/drm_atomic_get_new_connector_state +397 drivers/gpu/drm/rockchip/rk3066_hdmi.c 388 389 static void rk3066_hdmi_encoder_enable(struct drm_encoder *encoder, 390 struct drm_atomic_state *state) 391 { 392 struct rk3066_hdmi *hdmi = encoder_to_rk3066_hdmi(encoder); 393 struct drm_connector_state *conn_state; 394 struct drm_crtc_state *crtc_state; 395 int mux, val; 396 > 397 conn_state = drm_atomic_get_new_connector_state(state, &hdmi->connector); 398 if (WARN_ON(!conn_state)) 399 return; 400 > 401 crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc); 402 if (WARN_ON(!crtc_state)) 403 return; 404 405 mux = drm_of_encoder_active_endpoint_id(hdmi->dev->of_node, encoder); 406 if (mux) 407 val = (HDMI_VIDEO_SEL << 16) | HDMI_VIDEO_SEL; 408 else 409 val = HDMI_VIDEO_SEL << 16; 410 411 regmap_write(hdmi->grf_regmap, GRF_SOC_CON0, val); 412 413 DRM_DEV_DEBUG(hdmi->dev, "hdmi encoder enable select: vop%s\n", 414 (mux) ? "1" : "0"); 415 416 rk3066_hdmi_setup(hdmi, &crtc_state->adjusted_mode); 417 } 418 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki