All of lore.kernel.org
 help / color / mirror / Atom feed
* [clangbuiltlinux:question_mark_operator 5/5] drivers/gpu/drm/drm_atomic.c:1302:78: error: expected expression before ';' token
@ 2026-09-12  4:01 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-12  4:01 UTC (permalink / raw)
  To: Nick Desaulniers; +Cc: oe-kbuild-all

tree:   https://github.com/ClangBuiltLinux/linux question_mark_operator
head:   532a7ac2d57bb5674f5feffb4ba378f8a32f3bcf
commit: 532a7ac2d57bb5674f5feffb4ba378f8a32f3bcf [5/5] drm: atomic: use try operator ('?') and member access chaining
config: parisc-defconfig (https://download.01.org/0day-ci/archive/20260912/202609121119.cjDFkx72-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260912/202609121119.cjDFkx72-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609121119.cjDFkx72-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/drm_atomic.c: In function 'drm_atomic_get_old_crtc_for_encoder':
>> drivers/gpu/drm/drm_atomic.c:1302:78: error: expected expression before ';' token
    1302 |         connector = drm_atomic_get_old_connector_for_encoder(state, encoder)?;
         |                                                                              ^
   drivers/gpu/drm/drm_atomic.c:1304:69: error: expected expression before '->' token
    1304 |         return drm_atomic_get_old_connector_state(state, connector)?->crtc;
         |                                                                     ^~
   drivers/gpu/drm/drm_atomic.c: In function 'drm_atomic_get_new_crtc_for_encoder':
   drivers/gpu/drm/drm_atomic.c:1325:78: error: expected expression before ';' token
    1325 |         connector = drm_atomic_get_new_connector_for_encoder(state, encoder)?;
         |                                                                              ^
   drivers/gpu/drm/drm_atomic.c:1327:69: error: expected expression before '->' token
    1327 |         return drm_atomic_get_new_connector_state(state, connector)?->crtc;
         |                                                                     ^~


vim +1302 drivers/gpu/drm/drm_atomic.c

  1283	
  1284	
  1285	/**
  1286	 * drm_atomic_get_old_crtc_for_encoder - Get old crtc for an encoder
  1287	 * @state: Atomic state
  1288	 * @encoder: The encoder to fetch the crtc state for
  1289	 *
  1290	 * This function finds and returns the crtc that was connected to @encoder
  1291	 * as specified by the @state.
  1292	 *
  1293	 * Returns: The old crtc connected to @encoder, or NULL if the encoder is
  1294	 * not connected.
  1295	 */
  1296	struct drm_crtc *
  1297	drm_atomic_get_old_crtc_for_encoder(struct drm_atomic_commit *state,
  1298					    struct drm_encoder *encoder)
  1299	{
  1300		struct drm_connector *connector;
  1301	
> 1302		connector = drm_atomic_get_old_connector_for_encoder(state, encoder)?;
  1303	
  1304		return drm_atomic_get_old_connector_state(state, connector)?->crtc;
  1305	}
  1306	EXPORT_SYMBOL(drm_atomic_get_old_crtc_for_encoder);
  1307	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-12  4:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-12  4:01 [clangbuiltlinux:question_mark_operator 5/5] drivers/gpu/drm/drm_atomic.c:1302:78: error: expected expression before ';' token kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.