Skip to content

Commit 7500ab8

Browse files
alexdeuchergregkh
authored andcommitted
drm/radeon: Remove __counted_by from ClockInfoArray.clockInfo[]
commit 19158c7332468bc28572bdca428e89c7954ee1b1 upstream. 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 dc135aa73561b5acc74eadf776e48530996529a3) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent bc96db7 commit 7500ab8

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)