drm/amdgpu: remove repeat variable domain
Subsystems (2)
PATCH 1/1 drm/amdgpu: remove repeat variable domain
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.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +0 -1
@@ -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;
Signature · 1 line
2.34.1
[Public]
Please add a Fixes tag like "Fixes: d769528e4649 ("drm/amdgpu: add VISIBLE info in amdgpu_bo_print_info")" in commit message.
Regards,
Guchun
Quoted 37 lines
-----Original Message-----
From: Bob Zhou <[email protected]>
Sent: Monday, July 24, 2023 2:43 PM
To: [email protected]; Pelloux-Prayer, Pierre-Eric <Pierre- [email protected]>
Cc: Chen, Guchun <[email protected]>; Zhou, Bob <[email protected]>
Subject: [PATCH] drm/amdgpu: remove repeat variable domainbuilding with gcc and W=1 reports
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:1618:15:
error: unused variable 'domain' [-Werror=unused-variable] unsigned intdomain; ^~~~~~The variable domain is repeated, so remove it.
Signed-off-by Bob Zhou <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +0
-2@@ -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