Skip to content

Commit 19158c7

Browse files
committed
drm/radeon: Remove __counted_by from ClockInfoArray.clockInfo[]
clockInfo[] is a generic uchar pointer to variable sized structures which vary from ASIC to ASIC. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4374 Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit dc135aa) Cc: stable@vger.kernel.org
1 parent 6ce6fbf commit 19158c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/radeon/pptable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ typedef struct _ClockInfoArray{
450450
//sizeof(ATOM_PPLIB_CLOCK_INFO)
451451
UCHAR ucEntrySize;
452452

453-
UCHAR clockInfo[] __counted_by(ucNumEntries);
453+
UCHAR clockInfo[] /*__counted_by(ucNumEntries)*/;
454454
}ClockInfoArray;
455455

456456
typedef struct _NonClockInfoArray{

0 commit comments

Comments
 (0)