Re: [PATCH] drm/radeon: silence UBSAN warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 23.03.24 um 22:39 schrieb Alex Deucher:
Convert a variable sized array from [1] to [].

Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>

Acked-by: Christian König <christian.koenig@xxxxxxx>

---
  drivers/gpu/drm/radeon/pptable.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/radeon/pptable.h b/drivers/gpu/drm/radeon/pptable.h
index 94947229888b..a7f9553b648b 100644
--- a/drivers/gpu/drm/radeon/pptable.h
+++ b/drivers/gpu/drm/radeon/pptable.h
@@ -432,7 +432,7 @@ typedef struct _ATOM_PPLIB_STATE_V2
        /**
        * Driver will read the first ucNumDPMLevels in this array
        */
-      UCHAR clockInfoIndex[1];
+      UCHAR clockInfoIndex[];
  } ATOM_PPLIB_STATE_V2;
typedef struct _StateArray{




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux