]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/gmc: fix compiler errors [-Werror,-Wmissing-braces] (V2)
authorShirish S <shirish.s@amd.com>
Thu, 20 Dec 2018 10:34:35 +0000 (16:04 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:46 +0000 (15:04 -0500)
commite1e24c36dec6774d7eaf9d993b87b7f94f3c329b
tree22c7d8618ac4534a3573b48c1699fb327b598819
parent86f962c234d12284181a85c5a2ae0312cf5d3a25
drm/amdgpu/gmc: fix compiler errors [-Werror,-Wmissing-braces] (V2)

Initializing structures with { } is known to be problematic since
it doesn't necessararily initialize all bytes, in case of padding,
causing random failures when structures are memcmp().

This patch fixes the structure initialisation related compiler
error by memset().

V2: rectified missing piece in coding

Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c