[Public] Reviewed-by: Guchun Chen <[email protected]>
> -----Original Message----- > From: SHANMUGAM, SRINIVASAN <[email protected]> > Sent: Wednesday, August 2, 2023 9:39 AM > To: Koenig, Christian <[email protected]>; Deucher, Alexander > <[email protected]>; Chen, Guchun <[email protected]>; > Pan, Xinhui <[email protected]> > Cc: [email protected]; SHANMUGAM, SRINIVASAN > <[email protected]> > 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 <[email protected]> > Cc: Christian König <[email protected]> > Cc: Alex Deucher <[email protected]> > Cc: "Pan, Xinhui" <[email protected]> > Signed-off-by: Srinivasan Shanmugam <[email protected]> > --- > 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
