linux-stable/drivers/gpu/drm
Arnd Bergmann b74c0a9969 drm/nouveau: hide gcc-4.9 -Wmaybe-uninitialized
gcc-4.9 notices that the validate_init() function returns unintialized
data when called with a zero 'nr_buffers' argument, when called with the
-Wmaybe-uninitialized flag:

drivers/gpu/drm/nouveau/nouveau_gem.c: In function ‘validate_init.isra.6’:
drivers/gpu/drm/nouveau/nouveau_gem.c:457:5: error: ‘ret’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

However, the only caller of this function always passes a nonzero
argument, and gcc-6 is clever enough to take this into account and
not warn about it any more.

Adding an explicit initialization to -EINVAL here is correct even if
the caller changed, and it avoids the warning on gcc-4.9 as well.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-By: Karol Herbst <karolherbst@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2016-11-07 14:04:36 +10:00
..
amd Linux 4.9-rc4 2016-11-07 09:37:09 +10:00
arc
arm drm: convert DT component matching to component_match_add_release() 2016-10-25 11:52:38 -04:00
armada drm: convert DT component matching to component_match_add_release() 2016-10-25 11:52:38 -04:00
ast Linux 4.9-rc4 2016-11-07 09:37:09 +10:00
atmel-hlcdc drm/atmel-hlcdc: Use per-plane rotation property 2016-10-21 18:24:09 +02:00
bochs drm/ttm: make eviction decision a driver callback v2 2016-10-25 14:44:04 -04:00
bridge drm/bridge: fix platform_no_drv_owner.cocci warnings 2016-10-27 11:35:23 +05:30
cirrus Linux 4.9-rc4 2016-11-07 09:37:09 +10:00
etnaviv drm: convert DT component matching to component_match_add_release() 2016-10-25 11:52:38 -04:00
exynos Linux 4.9-rc4 2016-11-07 09:37:09 +10:00
fsl-dcu drm/fsl-dcu: enable pixel clock when enabling CRTC 2016-10-19 17:03:02 -07:00
gma500 drm: gma500: Replace drm_fb_get_bpp_depth() with drm_format_info() 2016-10-18 15:22:38 +05:30
hisilicon drm: convert DT component matching to component_match_add_release() 2016-10-25 11:52:38 -04:00
i2c drm/i2c/tda998x: mark symbol static where possible 2016-10-24 16:27:16 +02:00
i810
i915 Linux 4.9-rc4 2016-11-07 09:37:09 +10:00
imx drm/imx: ipuv3-plane: disable local alpha for planes without alpha channel 2016-10-20 14:39:51 +02:00
mediatek drm: convert DT component matching to component_match_add_release() 2016-10-25 11:52:38 -04:00
mga
mgag200 Linux 4.9-rc4 2016-11-07 09:37:09 +10:00
msm drm: convert DT component matching to component_match_add_release() 2016-10-25 11:52:38 -04:00
nouveau drm/nouveau: hide gcc-4.9 -Wmaybe-uninitialized 2016-11-07 14:04:36 +10:00
omapdrm drm/omap: panel-lgphilips-lb035q02: Add note for incorrect data drive edge and DE level 2016-11-02 10:48:18 +02:00
panel
qxl Merge tag 'topic/drm-misc-2016-10-27' of git://anongit.freedesktop.org/git/drm-intel into drm-next 2016-10-28 11:33:52 +10:00
r128
radeon Linux 4.9-rc4 2016-11-07 09:37:09 +10:00
rcar-du Linux 4.9-rc4 2016-11-07 09:37:09 +10:00
rockchip drm: convert DT component matching to component_match_add_release() 2016-10-25 11:52:38 -04:00
savage
shmobile
sis
sti Linux 4.9-rc4 2016-11-07 09:37:09 +10:00
sun4i drm: convert DT component matching to component_match_add_release() 2016-10-25 11:52:38 -04:00
tdfx
tegra gpu: Remove depends on RESET_CONTROLLER when not a provider 2016-10-19 09:26:15 +02:00
tilcdc drm: convert DT component matching to component_match_add_release() 2016-10-25 11:52:38 -04:00
ttm Merge tag 'topic/drm-misc-2016-10-27' of git://anongit.freedesktop.org/git/drm-intel into drm-next 2016-10-28 11:33:52 +10:00
udl
vc4 Merge tag 'topic/drm-misc-2016-10-24' of git://anongit.freedesktop.org/drm-intel into drm-next 2016-10-25 16:35:20 +10:00
vgem dma-buf: Rename struct fence to dma_fence 2016-10-25 14:40:39 +02:00
via mm: replace get_user_pages() write/force parameters with gup_flags 2016-10-19 08:11:43 -07:00
virtio Linux 4.9-rc4 2016-11-07 09:37:09 +10:00
vmwgfx Merge tag 'topic/drm-misc-2016-10-27' of git://anongit.freedesktop.org/git/drm-intel into drm-next 2016-10-28 11:33:52 +10:00
ati_pcigart.c
drm_agpsupport.c
drm_atomic.c Linux 4.9-rc4 2016-11-07 09:37:09 +10:00
drm_atomic_helper.c Linux 4.9-rc4 2016-11-07 09:37:09 +10:00
drm_auth.c
drm_blend.c drm: RIP mode_config->rotation_property 2016-10-22 10:42:11 +02:00
drm_bridge.c
drm_bufs.c
drm_cache.c
drm_color_mgmt.c
drm_connector.c
drm_context.c
drm_crtc.c drm: Add drm_rotation_90_or_270() 2016-10-21 18:21:33 +02:00
drm_crtc_helper.c
drm_crtc_helper_internal.h
drm_crtc_internal.h
drm_debugfs.c Merge tag 'topic/drm-misc-2016-10-24' of git://anongit.freedesktop.org/drm-intel into drm-next 2016-10-25 16:35:20 +10:00
drm_debugfs_crc.c drm: fix sparse warnings on undeclared symbols in crc debugfs 2016-10-19 14:10:29 +03:00
drm_dma.c
drm_dp_aux_dev.c
drm_dp_dual_mode_helper.c drm: Print some debug/error info during DP dual mode detect 2016-10-26 15:57:11 -04:00
drm_dp_helper.c
drm_dp_mst_topology.c drm/dp/mst: Check peer device type before attempting EDID read 2016-10-26 18:53:44 +02:00
drm_drv.c
drm_edid.c drm/edid: Only print the bad edid when aborting 2016-10-25 08:32:16 +02:00
drm_edid_load.c
drm_encoder.c
drm_encoder_slave.c
drm_fb_cma_helper.c drm/fb_cma_helper: do not free fbdev if there is none 2016-10-20 09:05:34 +02:00
drm_fb_helper.c Linux 4.9-rc4 2016-11-07 09:37:09 +10:00
drm_flip_work.c
drm_fops.c dma-buf: Rename struct fence to dma_fence 2016-10-25 14:40:39 +02:00
drm_fourcc.c drm: Don't export the drm_fb_get_bpp_depth() function 2016-10-18 15:24:08 +05:30
drm_framebuffer.c drm: WARN when calling drm_format_info() for an unsupported format 2016-10-18 15:21:38 +05:30
drm_gem.c
drm_gem_cma_helper.c
drm_global.c
drm_hashtab.c
drm_info.c drm: Print device information again in debugfs 2016-10-17 16:20:53 +10:00
drm_internal.h drm: Add API for capturing frame CRCs 2016-10-17 16:44:34 +02:00
drm_ioc32.c
drm_ioctl.c
drm_irq.c drm: avoid uninitialized timestamp use in wait_vblank 2016-10-18 09:45:17 +02:00
drm_kms_helper_common.c
drm_legacy.h
drm_lock.c
drm_memory.c
drm_mipi_dsi.c
drm_mm.c
drm_mode_object.c
drm_modes.c drm: Use u64 for intermediate dotclock calculations 2016-10-21 20:23:16 +02:00
drm_modeset_helper.c drm: Don't export the drm_fb_get_bpp_depth() function 2016-10-18 15:24:08 +05:30
drm_modeset_lock.c
drm_of.c drm: convert DT component matching to component_match_add_release() 2016-10-25 11:52:38 -04:00
drm_panel.c
drm_pci.c
drm_plane.c
drm_plane_helper.c
drm_platform.c
drm_prime.c
drm_probe_helper.c
drm_property.c
drm_rect.c
drm_scatter.c
drm_simple_kms_helper.c
drm_sysfs.c
drm_trace.h
drm_trace_points.c
drm_vm.c
drm_vma_manager.c
Kconfig
Makefile drm: Add API for capturing frame CRCs 2016-10-17 16:44:34 +02:00