linux-stable/drivers/gpu
Arnd Bergmann a1ed6def44 drm/msm: avoid false-positive -Wmaybe-uninitialized warning
gcc-8 -fsanitize-coverage=trace-pc produces a false-positive warning:

drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c: In function 'mdp5_plane_mode_set.isra.8':
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c:1053:3: error: 'crtc_x_r' may be used uninitialized in this function [-Werror=maybe-uninitialized]

It's relatively clear from reading the source that this cannot happen,
and older compilers get it right. This rearranges the code remove
the two affected variables, which reliably avoids the problem.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
2017-12-13 11:11:55 -05:00
..
drm drm/msm: avoid false-positive -Wmaybe-uninitialized warning 2017-12-13 11:11:55 -05:00
host1x main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
ipu-v3 fixes/cleanups for rc1, non-desktop flags for VR 2017-11-23 21:04:56 -10:00
vga vgaarb: Factor out EFI and fallback default device selection 2017-10-18 10:04:56 +02:00
Makefile