]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Silence the compiler for drm_mode_get_hv_timings()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Jan 2017 11:44:09 +0000 (11:44 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 26 Jan 2017 15:53:03 +0000 (16:53 +0100)
commit03e1cf1d6507ace371558526ca24cbb463fa3cf7
tree7286556a88f53599d036aeee8610d40e8188d2ad
parent5bbf205b4e135111fb1f1fafba6996abe0637a16
drm: Silence the compiler for drm_mode_get_hv_timings()

Since moving drm_crtc_get_hv_timings() into drm_modes.c, the compiler
has been able to get smarter and spots that drm_mode_copy() is trying to
preserve garbage from the stack.

Fixes: 2c0241a187a7 ("drm: s/drm_crtc_get_hv_timings/drm_mode_get_hv_timings/")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170126114409.9115-1-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_modes.c