All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Weifeng Liu <weifeng.liu.z@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, Yifan Liu <yifan1.liu@intel.com>
Subject: [acrn:6.12/linux 9/10] drivers/gpu/drm/drm_atomic_helper.c:1765:16: warning: unused variable 'ret'
Date: Mon, 29 Sep 2025 11:55:40 +0800	[thread overview]
Message-ID: <202509291151.QLNxPwML-lkp@intel.com> (raw)

tree:   https://github.com/projectacrn/acrn-kernel 6.12/linux
head:   a3634b1a933e80ff672cc47bd32d2f036cfbe755
commit: 3cc37670a872d763017eb6d99a24be755d47df86 [9/10] drm: Add vblank_flip event
config: i386-buildonly-randconfig-001-20250929 (https://download.01.org/0day-ci/archive/20250929/202509291151.QLNxPwML-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250929/202509291151.QLNxPwML-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/202509291151.QLNxPwML-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/drm_atomic_helper.c: In function 'drm_atomic_helper_update_flip_sequence':
>> drivers/gpu/drm/drm_atomic_helper.c:1765:16: warning: unused variable 'ret' [-Wunused-variable]
    1765 |         int i, ret;
         |                ^~~


vim +/ret +1765 drivers/gpu/drm/drm_atomic_helper.c

  1759	
  1760	void drm_atomic_helper_update_flip_sequence(struct drm_device *dev,
  1761						  struct drm_atomic_state *old_state)
  1762	{
  1763		struct drm_crtc *crtc;
  1764		struct drm_crtc_state *new_crtc_state;
> 1765		int i, ret;
  1766	
  1767		for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) {
  1768			if (crtc->funcs && crtc->funcs->get_vblank_timestamp)
  1769				WRITE_ONCE(crtc->pending_flip_sequence,
  1770					drm_crtc_accurate_vblank_count(crtc) + 1);
  1771			else
  1772				WRITE_ONCE(crtc->pending_flip_sequence,
  1773					drm_crtc_vblank_count(crtc) + 1);
  1774		}
  1775	}
  1776	EXPORT_SYMBOL(drm_atomic_helper_update_flip_sequence);
  1777	

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

                 reply	other threads:[~2025-09-29  3:56 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=202509291151.QLNxPwML-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=weifeng.liu.z@gmail.com \
    --cc=yifan1.liu@intel.com \
    /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.