* [PATCH] drm/radeon: silence UBSAN warning
@ 2024-03-23 21:39 Alex Deucher
2024-04-04 12:18 ` Christian König
0 siblings, 1 reply; 2+ messages in thread
From: Alex Deucher @ 2024-03-23 21:39 UTC (permalink / raw)
To: amd-gfx; +Cc: Alex Deucher
Convert a variable sized array from [1] to [].
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
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{
--
2.44.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/radeon: silence UBSAN warning
2024-03-23 21:39 [PATCH] drm/radeon: silence UBSAN warning Alex Deucher
@ 2024-04-04 12:18 ` Christian König
0 siblings, 0 replies; 2+ messages in thread
From: Christian König @ 2024-04-04 12:18 UTC (permalink / raw)
To: Alex Deucher, amd-gfx
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@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
> ---
> 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{
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-04 12:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-23 21:39 [PATCH] drm/radeon: silence UBSAN warning Alex Deucher
2024-04-04 12:18 ` Christian König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox