All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu/pptable: convert some variable sized arrays to [] style
@ 2024-01-22 16:00 Alex Deucher
  2024-01-22 18:39 ` Christian König
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Deucher @ 2024-01-22 16:00 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher

Replace [1] with [].  Silences UBSAN warnings.

Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2039926
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/include/pptable.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/include/pptable.h b/drivers/gpu/drm/amd/include/pptable.h
index ef3feb0b6674..2e8e6c9875f6 100644
--- a/drivers/gpu/drm/amd/include/pptable.h
+++ b/drivers/gpu/drm/amd/include/pptable.h
@@ -658,7 +658,7 @@ typedef struct _ATOM_PPLIB_SAMClk_Voltage_Limit_Record
 
 typedef struct _ATOM_PPLIB_SAMClk_Voltage_Limit_Table{
     UCHAR numEntries;
-    ATOM_PPLIB_SAMClk_Voltage_Limit_Record entries[1];
+    ATOM_PPLIB_SAMClk_Voltage_Limit_Record entries[];
 }ATOM_PPLIB_SAMClk_Voltage_Limit_Table;
 
 typedef struct _ATOM_PPLIB_SAMU_Table
-- 
2.42.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/amdgpu/pptable: convert some variable sized arrays to [] style
  2024-01-22 16:00 [PATCH] drm/amdgpu/pptable: convert some variable sized arrays to [] style Alex Deucher
@ 2024-01-22 18:39 ` Christian König
  0 siblings, 0 replies; 2+ messages in thread
From: Christian König @ 2024-01-22 18:39 UTC (permalink / raw)
  To: Alex Deucher, amd-gfx

Am 22.01.24 um 17:00 schrieb Alex Deucher:
> Replace [1] with [].  Silences UBSAN warnings.
>
> Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2039926
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

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

> ---
>   drivers/gpu/drm/amd/include/pptable.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/include/pptable.h b/drivers/gpu/drm/amd/include/pptable.h
> index ef3feb0b6674..2e8e6c9875f6 100644
> --- a/drivers/gpu/drm/amd/include/pptable.h
> +++ b/drivers/gpu/drm/amd/include/pptable.h
> @@ -658,7 +658,7 @@ typedef struct _ATOM_PPLIB_SAMClk_Voltage_Limit_Record
>   
>   typedef struct _ATOM_PPLIB_SAMClk_Voltage_Limit_Table{
>       UCHAR numEntries;
> -    ATOM_PPLIB_SAMClk_Voltage_Limit_Record entries[1];
> +    ATOM_PPLIB_SAMClk_Voltage_Limit_Record entries[];
>   }ATOM_PPLIB_SAMClk_Voltage_Limit_Table;
>   
>   typedef struct _ATOM_PPLIB_SAMU_Table


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-22 18:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-22 16:00 [PATCH] drm/amdgpu/pptable: convert some variable sized arrays to [] style Alex Deucher
2024-01-22 18:39 ` Christian König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.