Re: [PATCH] drm/amdgpu: fix overflowed array index read warning

2024-04-26 Thread Christian König
Am 26.04.24 um 02:27 schrieb Tim Huang: Clear overflowed array index read warning by cast operation. Signed-off-by: Tim Huang Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/a

Re: [PATCH] drm/amdgpu: fix overflowed array index read warning

2024-04-25 Thread Alex Deucher
On Thu, Apr 25, 2024 at 8:37 PM Tim Huang wrote: > > Clear overflowed array index read warning by cast operation. > > Signed-off-by: Tim Huang Reviewed-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/

[PATCH] drm/amdgpu: fix overflowed array index read warning

2024-04-25 Thread Tim Huang
Clear overflowed array index read warning by cast operation. Signed-off-by: Tim Huang --- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c index 06f0

RE: [PATCH] drm/amdgpu: fix overflowed array index read warning

2024-04-24 Thread Huang, Tim
[AMD Official Use Only - General] -Original Message- From: Koenig, Christian Sent: Thursday, April 25, 2024 2:45 PM To: Huang, Tim ; amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: Re: [PATCH] drm/amdgpu: fix overflowed array index read warning Am 25.04.24 um 07:27

Re: [PATCH] drm/amdgpu: fix overflowed array index read warning

2024-04-24 Thread Christian König
Am 25.04.24 um 07:27 schrieb Tim Huang: From: Tim Huang Clear warning that cast operation might have overflowed. Signed-off-by: Tim Huang --- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_r

[PATCH] drm/amdgpu: fix overflowed array index read warning

2024-04-24 Thread Tim Huang
From: Tim Huang Clear warning that cast operation might have overflowed. Signed-off-by: Tim Huang --- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_r