All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Nick Desaulniers <ndesaulniers@google.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [clangbuiltlinux:question_mark_operator 5/5] drivers/gpu/drm/drm_atomic.c:1302:78: error: expected expression before ';' token
Date: Sat, 12 Sep 2026 12:01:33 +0800	[thread overview]
Message-ID: <202609121119.cjDFkx72-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-09-12  4:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202609121119.cjDFkx72-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ndesaulniers@google.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.