[PATCH] drm/amdgpu: Fix unused variable warning
Deucher, Alexander
Alexander.Deucher at amd.com
Mon Jan 10 20:49:18 UTC 2022
[Public]
Please add:
Fixes: 36324c09d848 ("drm/amdgpu: Modify sdma block to fit for the unified ras block data and ops")
With that,
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
________________________________
From: Tuikov, Luben <Luben.Tuikov at amd.com>
Sent: Monday, January 10, 2022 3:32 PM
To: amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>
Cc: Tuikov, Luben <Luben.Tuikov at amd.com>; Deucher, Alexander <Alexander.Deucher at amd.com>
Subject: [PATCH] drm/amdgpu: Fix unused variable warning
Fix this:
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c: In function ‘amdgpu_ras_query_error_status’:
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:945:6: warning: unused variable ‘i’ [-Wunused-variable]
945 | int i;
Cc: Alex Deucher <Alexander.Deucher at amd.com>
Cc: amd-gfx at lists.freedesktop.org
Signed-off-by: Luben Tuikov <luben.tuikov at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index b1bedfd4febc4b..517650d286a722 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -942,7 +942,6 @@ int amdgpu_ras_query_error_status(struct amdgpu_device *adev,
struct amdgpu_ras_block_object* block_obj = NULL;
struct ras_manager *obj = amdgpu_ras_find_obj(adev, &info->head);
struct ras_err_data err_data = {0, 0, 0, NULL};
- int i;
if (!obj)
return -EINVAL;
base-commit: 9b7d59707fe1ff51cdfa0a048629446ff3945bfd
--
2.34.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20220110/78d45470/attachment.htm>
More information about the amd-gfx
mailing list