[drm-misc:drm-misc-next 4/5] drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c:191:17: error: implicit declaration of function 'drm_atomic_get_new_connector_state'; did you mean 'drm_atomic_helper_connector_reset'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
head:   be318d01a90366029e181068e8857c6252e1fadc
commit: 358e76fd613a762bdba18b6b9fb0469a481de3a3 [4/5] drm/sun4i: hdmi: Consolidate atomic_check and mode_valid
config: xtensa-randconfig-002-20240229 (https://download.01.org/0day-ci/archive/20240229/202402291942.zVb1Vx4Y-lkp@xxxxxxxxx/config)
compiler: xtensa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240229/202402291942.zVb1Vx4Y-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/202402291942.zVb1Vx4Y-lkp@xxxxxxxxx/

All error/warnings (new ones prefixed by >>):

   drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c: In function 'sun4i_hdmi_connector_atomic_check':
>> drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c:191:17: error: implicit declaration of function 'drm_atomic_get_new_connector_state'; did you mean 'drm_atomic_helper_connector_reset'? [-Werror=implicit-function-declaration]
     191 |                 drm_atomic_get_new_connector_state(state, connector);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                 drm_atomic_helper_connector_reset
>> drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c:191:17: warning: initialization of 'struct drm_connector_state *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   cc1: some warnings being treated as errors


vim +191 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c

   186	
   187	static int sun4i_hdmi_connector_atomic_check(struct drm_connector *connector,
   188						     struct drm_atomic_state *state)
   189	{
   190		struct drm_connector_state *conn_state =
 > 191			drm_atomic_get_new_connector_state(state, connector);
   192		struct drm_crtc *crtc = conn_state->crtc;
   193		struct drm_crtc_state *crtc_state = crtc->state;
   194		struct drm_display_mode *mode = &crtc_state->adjusted_mode;
   195		enum drm_mode_status status;
   196	
   197		status = sun4i_hdmi_connector_clock_valid(connector, mode,
   198							  mode->clock * 1000);
   199		if (status != MODE_OK)
   200			return -EINVAL;
   201	
   202		return 0;
   203	}
   204	

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



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux