RE: [PATCH] drm/amdgpu: Fix warnings

2023-05-23 Thread Zhang, Hawking
Subject: [PATCH] drm/amdgpu: Fix warnings Fix warnings reported by kernel test bot/smatch smatch warnings: drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c:65 amdgpu_xcp_run_transition() error: buffer overflow 'xcp_mgr->xcp' 8 <= 8 Reported-by: kernel test robot Reported-by: Dan Carpente

[PATCH] drm/amdgpu: Fix warnings

2023-05-23 Thread Lijo Lazar
Fix warnings reported by kernel test bot/smatch smatch warnings: drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c:65 amdgpu_xcp_run_transition() error: buffer overflow 'xcp_mgr->xcp' 8 <= 8 Reported-by: kernel test robot Reported-by: Dan Carpenter Closes: https://lore.kernel.org/r/202305231453.i0bxngyn-

RE: [PATCH] drm/amdgpu: Fix warnings

2023-04-05 Thread Chen, Guchun
Reviewed-by: Guchun Chen > -Original Message- > From: amd-gfx On Behalf Of Lijo > Lazar > Sent: Wednesday, April 5, 2023 5:46 PM > To: amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander ; kernel test robot > ; Zhang, Hawking > Subject: [PATCH] drm/amdgp

Re: [PATCH] drm/amdgpu: Fix warnings

2023-04-05 Thread Luben Tuikov
Reviewed-by: Luben Tuikov Regards, Luben On 2023-04-05 05:45, Lijo Lazar wrote: > Fix below warning due to incompatible types in conditional operator > > ../pm/swsmu/smu13/smu_v13_0_6_ppt.c:315:17: sparse: sparse: incompatible > types in conditional expression (different base types): > > Signe

[PATCH] drm/amdgpu: Fix warnings

2023-04-05 Thread Lijo Lazar
Fix below warning due to incompatible types in conditional operator ../pm/swsmu/smu13/smu_v13_0_6_ppt.c:315:17: sparse: sparse: incompatible types in conditional expression (different base types): Signed-off-by: Lijo Lazar Reported-by: kernel test robot Link: https://lore.kernel.org/oe-kbuild-a

Re: [PATCH] drm/amdgpu: Fix warnings about potentially unitialized vars

2017-06-19 Thread Alex Deucher
Both I and Harish sent out fixes for this. Harish, any plans to commit your fixes? Alex On Mon, Jun 19, 2017 at 3:50 PM, Harry Wentland wrote: > Signed-off-by: Harry Wentland > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 9 ++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > di

[PATCH] drm/amdgpu: Fix warnings about potentially unitialized vars

2017-06-19 Thread Harry Wentland
Signed-off-by: Harry Wentland --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index c4f1a305c68c..c133f20ca7a7 100644 --- a/drivers/gpu/drm/amd/