[linusw-nomadik:b4/mcde-drm-regression-thirdfix 4/4] drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c:552:41: error: 'state' undeclared; did you mean 'statx'?

kernel test robot lkp at intel.com
Fri Nov 21 07:15:37 PST 2025


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git b4/mcde-drm-regression-thirdfix
head:   3e64b03a4bf2f67f43046af7e41c197df9fd6efb
commit: 3e64b03a4bf2f67f43046af7e41c197df9fd6efb [4/4] RFT: drm/rcar-du: Modify custom commit tail
config: arm-randconfig-002-20251121 (https://download.01.org/0day-ci/archive/20251121/202511212325.j72kz6Hj-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251121/202511212325.j72kz6Hj-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/202511212325.j72kz6Hj-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c: In function 'rcar_du_atomic_commit_tail':
>> drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c:552:41: error: 'state' undeclared (first use in this function); did you mean 'statx'?
     552 |         drm_encoder_bridge_disable(dev, state);
         |                                         ^~~~~
         |                                         statx
   drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c:552:41: note: each undeclared identifier is reported only once for each function it appears in


vim +552 drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c

   516	
   517	static void rcar_du_atomic_commit_tail(struct drm_atomic_state *old_state)
   518	{
   519		struct drm_device *dev = old_state->dev;
   520		struct rcar_du_device *rcdu = to_rcar_du_device(dev);
   521		struct drm_crtc_state *crtc_state;
   522		struct drm_crtc *crtc;
   523		unsigned int i;
   524	
   525		/*
   526		 * Store RGB routing to DPAD0 and DPAD1, the hardware will be configured
   527		 * when starting the CRTCs.
   528		 */
   529		rcdu->dpad1_source = -1;
   530	
   531		for_each_new_crtc_in_state(old_state, crtc, crtc_state, i) {
   532			struct rcar_du_crtc_state *rcrtc_state =
   533				to_rcar_crtc_state(crtc_state);
   534			struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc);
   535	
   536			if (rcrtc_state->outputs & BIT(RCAR_DU_OUTPUT_DPAD0))
   537				rcdu->dpad0_source = rcrtc->index;
   538	
   539			if (rcrtc_state->outputs & BIT(RCAR_DU_OUTPUT_DPAD1))
   540				rcdu->dpad1_source = rcrtc->index;
   541		}
   542	
   543		/*
   544		 * Apply the atomic update.
   545		 *
   546		 * We need special ordering to make sure the CRTC disabled last
   547		 * and enabled first. We do this with modified versions of the
   548		 * common modeset_disables/enables functions.
   549		 */
   550	
   551		/* Variant of drm_atomic_helper_commit_modeset_disables() */
 > 552		drm_encoder_bridge_disable(dev, state);
   553		drm_encoder_bridge_post_disable(dev, state);
   554		drm_crtc_disable(dev, state);
   555		drm_atomic_helper_update_legacy_modeset_state(dev, state);
   556		drm_atomic_helper_calc_timestamping_constants(state);
   557		drm_crtc_set_mode(dev, state);
   558	
   559		drm_atomic_helper_commit_planes(dev, old_state,
   560						DRM_PLANE_COMMIT_ACTIVE_ONLY);
   561	
   562		/* Variant of drm_atomic_helper_commit_modeset_enables() */
   563		drm_crtc_enable(dev, state);
   564		drm_encoder_bridge_pre_enable(dev, state);
   565		drm_encoder_bridge_enable(dev, state);
   566		drm_atomic_helper_commit_writebacks(dev, state);
   567	
   568		drm_atomic_helper_commit_hw_done(old_state);
   569		drm_atomic_helper_wait_for_flip_done(dev, old_state);
   570	
   571		drm_atomic_helper_cleanup_planes(dev, old_state);
   572	}
   573	

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



More information about the linux-arm-kernel mailing list