diff options
| author | Nathan Chancellor <[email protected]> | 2019-02-01 20:12:26 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-02-06 02:15:32 +0000 |
| commit | 8daa12182a7ab441a2b3eeb170f9d8a12b206d6c (patch) | |
| tree | 1cbd292f07fc6b422408447c73c1e0d83f796c5d /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | drm/amd/display: Use memset to initialize variables in amdgpu_dm_atomic_commi... (diff) | |
| download | kernel-8daa12182a7ab441a2b3eeb170f9d8a12b206d6c.tar.gz kernel-8daa12182a7ab441a2b3eeb170f9d8a12b206d6c.zip | |
drm/amd/display: Use memset to initialize variables in fill_plane_dcc_attributes
Clang warns:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:2314:38:
warning: suggest braces around initialization of subobject
[-Wmissing-braces]
struct dc_surface_dcc_cap output = {0};
^
{}
Previous efforts to fix this type of warning by adding or removing
braces have been met with some pushback in favor of using memset [1][2].
Do that here, mirroring commit 05794eff1aa6 ("drm/amdgpu/gmc: fix
compiler errors [-Werror,-Wmissing-braces] (V2)") in this tree.
[1]: https://lore.kernel.org/lkml/[email protected]/
[2]: https://lore.kernel.org/lkml/[email protected]/
Fixes: 7df7e505e82a ("drm/amd/display: Set requested plane state DCC params for GFX9")
Signed-off-by: Nathan Chancellor <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
