aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/include/discovery.h
diff options
context:
space:
mode:
authorLijo Lazar <lijo.lazar@amd.com>2022-04-08 09:11:04 +0530
committerAlex Deucher <alexander.deucher@amd.com>2022-04-11 13:50:35 -0400
commit73bce7a423c3bb7c3441177aca868ff5f2cf93fa (patch)
treeb13b30e9bea2edb5baedc7e442f6028598117a1c /drivers/gpu/drm/amd/include/discovery.h
parentdrm/amdgpu: expand cg_flags from u32 to u64 (diff)
downloadlinux-dev-73bce7a423c3bb7c3441177aca868ff5f2cf93fa.tar.xz
linux-dev-73bce7a423c3bb7c3441177aca868ff5f2cf93fa.zip
drm/amdgpu: Use flexible array member
Use flexible array member in ip discovery struct as recommended[1]. [1] https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays v2: squash in struct_size fixes Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/include/discovery.h')
-rw-r--r--drivers/gpu/drm/amd/include/discovery.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/include/discovery.h b/drivers/gpu/drm/amd/include/discovery.h
index a486769b66c6..b25026c3ec96 100644
--- a/drivers/gpu/drm/amd/include/discovery.h
+++ b/drivers/gpu/drm/amd/include/discovery.h
@@ -93,7 +93,7 @@ typedef struct ip
uint8_t harvest : 4; /* Harvest */
uint8_t reserved : 4; /* Placeholder field */
#endif
- uint32_t base_address[1]; /* variable number of Addresses */
+ uint32_t base_address[]; /* variable number of Addresses */
} ip;
typedef struct die_header