[PATCH v1 1/1] drm/amdgpu: fix a smatch static checker warning in amdgpu_pci_slot_reset

Dan Carpenter dan.carpenter at linaro.org
Wed Apr 9 12:48:34 UTC 2025


On Wed, Apr 09, 2025 at 08:10:01PM +0800, Ce Sun wrote:
> Fixes smatch warning:
> 
> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:6820 amdgpu_pci_slot_reset()
> warn: iterator used outside loop: 'tmp_adev'
> 
> Fixes: 8ba904f54148 ("drm/amdgpu: Multi-GPU DPC recovery support")
> 

Thanks.  This doesn't change how the code works so probably the Fixes tag
isn't required.  But it doesn't hurt anything either.  Static checker
warnings are a gray area.

regards,
dan carpenter



More information about the amd-gfx mailing list