[drm-misc:drm-misc-next 6/21] drivers/gpu/drm/rockchip/inno_hdmi.c:499:13: warning: assignment makes pointer from integer without a cast

kernel test robot lkp at intel.com
Mon Jan 15 22:39:09 UTC 2024


tree:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
head:   ea489a3d983ba788c64712a55073d2a541e30d44
commit: d3e040f450ec8e46ff42fa495a433b976ab47686 [6/21] drm/rockchip: inno_hdmi: Get rid of mode_set
config: um-randconfig-r113-20240116 (https://download.01.org/0day-ci/archive/20240116/202401160618.cgYEdslz-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240116/202401160618.cgYEdslz-lkp@intel.com/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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401160618.cgYEdslz-lkp@intel.com/

All 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:15: error: implicit declaration of function 'drm_atomic_get_new_connector_state'; did you mean 'drm_atomic_helper_connector_reset'? [-Werror=implicit-function-declaration]
     conn_state = drm_atomic_get_new_connector_state(state, &hdmi->connector);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  drm_atomic_helper_connector_reset
>> drivers/gpu/drm/rockchip/inno_hdmi.c:499:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     conn_state = drm_atomic_get_new_connector_state(state, &hdmi->connector);
                ^
   drivers/gpu/drm/rockchip/inno_hdmi.c:503:15: error: implicit declaration of function 'drm_atomic_get_new_crtc_state'; did you mean 'drm_atomic_helper_swap_state'? [-Werror=implicit-function-declaration]
     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:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     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	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


More information about the dri-devel mailing list