[PATCH] drm/amdgpu: Fix unused variable 'domain' in 'amdgpu_bo_print_info'

Chen, Guchun Guchun.Chen at amd.com
Tue Jul 25 04:56:39 UTC 2023


[Public]

Thanks for your patch, Srini. This has been fixed by https://patchwork.freedesktop.org/patch/549040/.

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of
> Srinivasan Shanmugam
> Sent: Monday, July 24, 2023 10:41 PM
> To: Koenig, Christian <Christian.Koenig at amd.com>; Deucher, Alexander
> <Alexander.Deucher at amd.com>
> Cc: SHANMUGAM, SRINIVASAN <SRINIVASAN.SHANMUGAM at amd.com>;
> amd-gfx at lists.freedesktop.org
> Subject: [PATCH] drm/amdgpu: Fix unused variable 'domain' in
> 'amdgpu_bo_print_info'
>
> Fixes the following:
>
> drivers/gpu/drm/amd/amdgpu/amdgpu_object.c: In function
> ‘amdgpu_bo_print_info’:
> drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:1581:15: warning: unused
> variable ‘domain’ [-Wunused-variable]
>  1581 |  unsigned int domain;
>       |               ^~~~~~
>
> Cc: Christian König <christian.koenig at amd.com>
> Cc: Alex Deucher <alexander.deucher at amd.com>
> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam 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.25.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 15895 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20230725/c88f77e2/attachment-0001.bin>


More information about the amd-gfx mailing list