RE: [PATCH] drm/amdgpu: Fix unused variable ‘i’ in 'gfxhub_v1_2_xcc_gart_enable'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[Public]

Reviewed-by: Guchun Chen <guchun.chen@xxxxxxx>

> -----Original Message-----
> From: SHANMUGAM, SRINIVASAN <SRINIVASAN.SHANMUGAM@xxxxxxx>
> Sent: Wednesday, August 2, 2023 9:39 AM
> To: Koenig, Christian <Christian.Koenig@xxxxxxx>; Deucher, Alexander
> <Alexander.Deucher@xxxxxxx>; Chen, Guchun <Guchun.Chen@xxxxxxx>;
> Pan, Xinhui <Xinhui.Pan@xxxxxxx>
> Cc: amd-gfx@xxxxxxxxxxxxxxxxxxxxx; SHANMUGAM, SRINIVASAN
> <SRINIVASAN.SHANMUGAM@xxxxxxx>
> Subject: [PATCH] drm/amdgpu: Fix unused variable ‘i’ in
> 'gfxhub_v1_2_xcc_gart_enable'
>
> drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c: In function
> ‘gfxhub_v1_2_xcc_gart_enable’:
> drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c:405:6: warning: unused
> variable ‘i’ [-Wunused-variable]
>   405 |  int i;
>       |
>
> Cc: Guchun Chen <guchun.chen@xxxxxxx>
> Cc: Christian König <christian.koenig@xxxxxxx>
> Cc: Alex Deucher <alexander.deucher@xxxxxxx>
> Cc: "Pan, Xinhui" <Xinhui.Pan@xxxxxxx>
> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c
> b/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c
> index db7ad3af7439..0834af771549 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c
> @@ -402,8 +402,6 @@ static void
> gfxhub_v1_2_xcc_program_invalidation(struct amdgpu_device *adev,  static
> int gfxhub_v1_2_xcc_gart_enable(struct amdgpu_device *adev,
>                                      uint32_t xcc_mask)
>  {
> -     int i;
> -
>       /* GART Enable. */
>       gfxhub_v1_2_xcc_init_gart_aperture_regs(adev, xcc_mask);
>       gfxhub_v1_2_xcc_init_system_aperture_regs(adev, xcc_mask);
> --
> 2.25.1





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux