summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_plane.c
diff options
context:
space:
mode:
authorDhinakaran Pandiyan2018-02-03 06:12:58 +0100
committerRodrigo Vivi2018-02-15 20:49:49 +0100
commit3abe241337993a1e358a67427518af0162c4b769 (patch)
tree628b60e928cc662a2981d1076fa055e8884cc93a /drivers/gpu/drm/drm_plane.c
parentdrm/radeon: Handle 64-bit return from drm_crtc_vblank_count() (diff)
downloadkernel-qcow2-linux-3abe241337993a1e358a67427518af0162c4b769.tar.gz
kernel-qcow2-linux-3abe241337993a1e358a67427518af0162c4b769.tar.xz
kernel-qcow2-linux-3abe241337993a1e358a67427518af0162c4b769.zip
drm/tegra: 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: Thierry Reding <treding@nvidia.com> Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Reviewed-by: Keith Packard <keithp@keithp.com> Acked-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180203051302.9974-6-dhinakaran.pandiyan@intel.com
Diffstat (limited to 'drivers/gpu/drm/drm_plane.c')
0 files changed, 0 insertions, 0 deletions