From: kernel test robot <lkp@intel.com>
To: Len Bao <len.bao@gmx.us>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>
Cc: oe-kbuild-all@lists.linux.dev, Len Bao <len.bao@gmx.us>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm/dp: Remove dead code after return statement
Date: Mon, 7 Jul 2025 06:13:48 +0800 [thread overview]
Message-ID: <202507070237.Hwcze8au-lkp@intel.com> (raw)
In-Reply-To: <20250706162431.15029-1-len.bao@gmx.us>
Hi Len,
kernel test robot noticed the following build warnings:
[auto build test WARNING on linus/master]
[also build test WARNING on v6.16-rc4 next-20250704]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Len-Bao/drm-dp-Remove-dead-code-after-return-statement/20250707-002653
base: linus/master
patch link: https://lore.kernel.org/r/20250706162431.15029-1-len.bao%40gmx.us
patch subject: [PATCH] drm/dp: Remove dead code after return statement
config: arm-randconfig-002-20250707 (https://download.01.org/0day-ci/archive/20250707/202507070237.Hwcze8au-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/20250707/202507070237.Hwcze8au-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/202507070237.Hwcze8au-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/gpu/drm/display/drm_dp_helper.c: In function 'drm_dp_pcon_frl_configure_2':
>> drivers/gpu/drm/display/drm_dp_helper.c:3580:13: warning: unused variable 'ret' [-Wunused-variable]
3580 | int ret;
| ^~~
vim +/ret +3580 drivers/gpu/drm/display/drm_dp_helper.c
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3565
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3566 /**
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3567 * drm_dp_pcon_frl_configure_2() - Set HDMI Link configuration Step-2
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3568 * @aux: DisplayPort AUX channel
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3569 * @max_frl_mask : Max FRL BW to be tried by the PCON with HDMI Sink
68a8c645b2538c drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2021-03-23 3570 * @frl_type : FRL training type, can be Extended, or Normal.
68a8c645b2538c drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2021-03-23 3571 * In Normal FRL training, the PCON tries each frl bw from the max_frl_mask
68a8c645b2538c drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2021-03-23 3572 * starting from min, and stops when link training is successful. In Extended
68a8c645b2538c drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2021-03-23 3573 * FRL training, all frl bw selected in the mask are trained by the PCON.
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3574 *
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3575 * Returns 0 if success, else returns negative error code.
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3576 */
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3577 int drm_dp_pcon_frl_configure_2(struct drm_dp_aux *aux, int max_frl_mask,
68a8c645b2538c drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2021-03-23 3578 u8 frl_type)
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3579 {
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 @3580 int ret;
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3581 u8 buf = max_frl_mask;
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3582
68a8c645b2538c drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2021-03-23 3583 if (frl_type == DP_PCON_FRL_LINK_TRAIN_EXTENDED)
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3584 buf |= DP_PCON_FRL_LINK_TRAIN_EXTENDED;
68a8c645b2538c drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2021-03-23 3585 else
68a8c645b2538c drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2021-03-23 3586 buf &= ~DP_PCON_FRL_LINK_TRAIN_EXTENDED;
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3587
af67978ee37e54 drivers/gpu/drm/display/drm_dp_helper.c Dmitry Baryshkov 2025-03-24 3588 return drm_dp_dpcd_write_byte(aux, DP_PCON_HDMI_LINK_CONFIG_2, buf);
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3589 }
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3590 EXPORT_SYMBOL(drm_dp_pcon_frl_configure_2);
ce32a6239de648 drivers/gpu/drm/drm_dp_helper.c Ankit Nautiyal 2020-12-18 3591
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2025-07-06 22:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-06 16:24 Len Bao
2025-07-06 22:13 ` kernel test robot [this message]
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=202507070237.Hwcze8au-lkp@intel.com \
--to=lkp@intel.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=len.bao@gmx.us \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®