linux/drivers/gpu/drm/amd
Arnd Bergmann e8411302b4 drm/amdgpu: fix warning on older gcc releases
gcc-4.8 warns about '{0}' being used an an initializer for nested structures:

drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c: In function ‘gfx_v8_0_ring_emit_ce_meta_init’:
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:7263:2: warning: missing braces around initializer [-Wmissing-braces]
  } ce_payload = {0};
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c: In function ‘gfx_v8_0_ring_emit_de_meta_init’:
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:7290:2: warning: missing braces around initializer [-Wmissing-braces]
  } de_payload = {0};

Using an empty {} initializer however has the same effect and works on all versions.

Fixes: acad2b2a7b ("drm/amdgpu:implement CE/DE meta-init routines")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-02-16 12:19:52 -05:00
..
acp drm/amd: add Kconfig dependency for ACP on DRM_AMDGPU 2016-05-25 09:44:15 -04:00
amdgpu drm/amdgpu: fix warning on older gcc releases 2017-02-16 12:19:52 -05:00
amdkfd drm/amdkfd: fix improper return value on error 2017-01-16 17:34:47 +02:00
include drm/amd/powerplay: add kicker flag into smumgr 2017-02-16 11:43:11 -05:00
powerplay drm/amd/powerplay: add didt config table for polaris kicker 2017-02-16 11:43:32 -05:00
scheduler drm/virtio: fix busid in a different way, allocate more vbufs. 2016-11-30 14:18:51 +10:00