[PATCH V2] drm/amdgpu: remove redundant variable declaration
SHANMUGAM, SRINIVASAN
SRINIVASAN.SHANMUGAM at amd.com
Tue Jul 25 05:23:30 UTC 2023
[Public]
Reviewed-by: Srinivasan Shanmugam <srinivasan.shanmugam at amd.com>
-----Original Message-----
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of Bob Zhou
Sent: Monday, July 24, 2023 2:06 PM
To: amd-gfx at lists.freedesktop.org; Pelloux-Prayer, Pierre-Eric <Pierre-eric.Pelloux-prayer at amd.com>
Cc: Zhou, Bob <Bob.Zhou at amd.com>; Chen, Guchun <Guchun.Chen at amd.com>
Subject: [PATCH V2] drm/amdgpu: remove redundant variable declaration
building with gcc and W=1 reports
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:1618:15:
error: unused variable 'domain' [-Werror=unused-variable] unsigned int domain;
^~~~~~
The variable domain is repeated, so remove it.
Fixes: d769528e4649 ("drm/amdgpu: add VISIBLE info in amdgpu_bo_print_info")
Signed-off-by: Bob Zhou <bob.zhou at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index 5ac7544cc068..3f98174fb764 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -1578,7 +1578,6 @@ u64 amdgpu_bo_print_info(int id, struct amdgpu_bo *bo, struct seq_file *m) {
struct dma_buf_attachment *attachment;
struct dma_buf *dma_buf;
- unsigned int domain;
const char *placement;
unsigned int pin_count;
u64 size;
--
2.34.1
More information about the amd-gfx
mailing list