All of lore.kernel.org
 help / color / mirror / Atom feed
* [acrn:6.12/linux 9/10] drivers/gpu/drm/drm_atomic_helper.c:1765:16: warning: unused variable 'ret'
@ 2025-09-29  3:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-09-29  3:55 UTC (permalink / raw)
  To: Weifeng Liu; +Cc: oe-kbuild-all, Yifan Liu

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

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

only message in thread, other threads:[~2025-09-29  3:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-29  3:55 [acrn:6.12/linux 9/10] drivers/gpu/drm/drm_atomic_helper.c:1765:16: warning: unused variable 'ret' 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.