drivers/gpu/drm/rockchip/inno_hdmi.c:499:22: error: implicit declaration of function 'drm_atomic_get_new_connector_state'; did you mean 'drm_atomic_helper_connector_reset'?
kernel test robot
build bottree: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next head: 632ca3c92f3840d91ba7ddda0271f84813036a11 commit: d3e040f450ec8e46ff42fa495a433b976ab47686 [6/21] drm/rockchip: inno_hdmi: Get rid of mode_set config: s390-randconfig-001-20240109 (https://download.01.org/0day-ci/archive/20240110/[email protected]/config) compiler: s390-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240110/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All error/warnings (new ones prefixed by >>):
drivers/gpu/drm/rockchip/inno_hdmi.c: In function 'inno_hdmi_encoder_enable':
>> drivers/gpu/drm/rockchip/inno_hdmi.c:499:22: error: implicit declaration of function 'drm_atomic_get_new_connector_state'; did you mean 'drm_atomic_helper_connector_reset'? [-Werror=implicit-function-declaration]
499 | conn_state = drm_atomic_get_new_connector_state(state, &hdmi->connector);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| drm_atomic_helper_connector_reset
>> drivers/gpu/drm/rockchip/inno_hdmi.c:499:20: warning: assignment to 'struct drm_connector_state *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
499 | conn_state = drm_atomic_get_new_connector_state(state, &hdmi->connector);
| ^
>> drivers/gpu/drm/rockchip/inno_hdmi.c:503:22: error: implicit declaration of function 'drm_atomic_get_new_crtc_state'; did you mean 'drm_atomic_helper_swap_state'? [-Werror=implicit-function-declaration]
503 | crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| drm_atomic_helper_swap_state
>> drivers/gpu/drm/rockchip/inno_hdmi.c:503:20: warning: assignment to 'struct drm_crtc_state *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
503 | crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc);
| ^cc1: some warnings being treated as errors
vim +499 drivers/gpu/drm/rockchip/inno_hdmi.c
491
492 static void inno_hdmi_encoder_enable(struct drm_encoder *encoder,
493 struct drm_atomic_state *state)
494 {
495 struct inno_hdmi *hdmi = encoder_to_inno_hdmi(encoder);
496 struct drm_connector_state *conn_state;
497 struct drm_crtc_state *crtc_state;
498
> 499 conn_state = drm_atomic_get_new_connector_state(state, &hdmi->connector); 500 if (WARN_ON(!conn_state)) 501 return; 502 > 503 crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc);
504 if (WARN_ON(!crtc_state))
505 return;
506
507 inno_hdmi_setup(hdmi, &crtc_state->adjusted_mode);
508 inno_hdmi_set_pwr_mode(hdmi, NORMAL);
509 }
510
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki