]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/radeon: Remove __counted_by from ClockInfoArray.clockInfo[]
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Jun 2025 14:47:09 +0000 (10:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Jan 2026 22:23:41 +0000 (17:23 -0500)
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
drivers/gpu/drm/radeon/pptable.h

index 969a8fb0ee9e0b2253bc996bf952d9b4d51d98ae..f4e71046dc91c2b07190ea56f9c775f1457f3692 100644 (file)
@@ -450,7 +450,7 @@ typedef struct _ClockInfoArray{
     //sizeof(ATOM_PPLIB_CLOCK_INFO)
     UCHAR ucEntrySize;
     
-    UCHAR clockInfo[] __counted_by(ucNumEntries);
+    UCHAR clockInfo[] /*__counted_by(ucNumEntries)*/;
 }ClockInfoArray;
 
 typedef struct _NonClockInfoArray{