summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_atomic.h
diff options
context:
space:
mode:
authorDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>2018-02-02 21:12:57 -0800
committerRodrigo Vivi <rodrigo.vivi@intel.com>2018-02-15 11:49:42 -0800
commit9038aa480d34c1f87dccd4afb944bb3c7cce8ec7 (patch)
treea04e65886de11217024c882720dfb604c066f263 /include/drm/drm_atomic.h
parent23effc1100975a36953255c1db737f18adf8dd0d (diff)
downloadlinux-9038aa480d34c1f87dccd4afb944bb3c7cce8ec7.tar.gz
linux-9038aa480d34c1f87dccd4afb944bb3c7cce8ec7.tar.bz2
linux-9038aa480d34c1f87dccd4afb944bb3c7cce8ec7.zip
drm/radeon: Handle 64-bit return from drm_crtc_vblank_count()
570e86963a51 ("drm: Widen vblank count to 64-bits [v3]") changed the return type for drm_crtc_vblank_count() to u64. This could cause potential problems if the return value is used in arithmetic operations with a 32-bit reference HW vblank count. Explicitly typecasting this down to u32 either fixes a potential problem or serves to add clarity in case the implicit typecasting was already correct. Cc: Keith Packard <keithp@keithp.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Reviewed-by: Keith Packard <keithp@keithp.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180203051302.9974-5-dhinakaran.pandiyan@intel.com
Diffstat (limited to 'include/drm/drm_atomic.h')
0 files changed, 0 insertions, 0 deletions