[Public] > -----Original Message----- > From: Zhang Zekun <zhangzekun11@xxxxxxxxxx> > Sent: Monday, August 12, 2024 8:24 AM > To: Deucher, Alexander <Alexander.Deucher@xxxxxxx>; Koenig, Christian > <Christian.Koenig@xxxxxxx>; Pan, Xinhui <Xinhui.Pan@xxxxxxx>; > airlied@xxxxxxxxx; daniel@xxxxxxxx; amd-gfx@xxxxxxxxxxxxxxxxxxxxx > Cc: zhangzekun11@xxxxxxxxxx > Subject: [PATCH] amd/gpu: drm/hisilicon: Remove unused declarations Applied with patch title fixed up. Thanks, Alex > > amdgpu_gart_table_vram_pin() and amdgpu_gart_table_vram_unpin() has > been removed since commit 575e55ee4fbc ("drm/amdgpu: recover gart table > at resume") remain the declarations untouched in the header files. > > Besides, amdgpu_dm_display_resume() has also beed removed since commit > a80aa93de1a0 ("drm/amd/display: Unify dm resume sequence into a single > call"). So, let's remove this unused declarations. > > Signed-off-by: Zhang Zekun <zhangzekun11@xxxxxxxxxx> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu.h | 7 ------- > drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h | 2 -- > 2 files changed, 9 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h > b/drivers/gpu/drm/amd/amdgpu/amdgpu.h > index 137a88b8de45..f0feb199b6e3 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h > @@ -1588,13 +1588,6 @@ static inline bool > amdgpu_acpi_is_s3_active(struct amdgpu_device *adev) { return static inline > void amdgpu_choose_low_power_state(struct amdgpu_device *adev) { } > #endif > > -#if defined(CONFIG_DRM_AMD_DC) > -int amdgpu_dm_display_resume(struct amdgpu_device *adev ); -#else -static > inline int amdgpu_dm_display_resume(struct amdgpu_device *adev) { return > 0; } -#endif > - > - > void amdgpu_register_gpu_instance(struct amdgpu_device *adev); void > amdgpu_unregister_gpu_instance(struct amdgpu_device *adev); > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h > b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h > index 8283d682f543..7cc980bf4725 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h > @@ -55,8 +55,6 @@ int amdgpu_gart_table_ram_alloc(struct > amdgpu_device *adev); void amdgpu_gart_table_ram_free(struct > amdgpu_device *adev); int amdgpu_gart_table_vram_alloc(struct > amdgpu_device *adev); void amdgpu_gart_table_vram_free(struct > amdgpu_device *adev); -int amdgpu_gart_table_vram_pin(struct > amdgpu_device *adev); -void amdgpu_gart_table_vram_unpin(struct > amdgpu_device *adev); int amdgpu_gart_init(struct amdgpu_device *adev); > void amdgpu_gart_dummy_page_fini(struct amdgpu_device *adev); void > amdgpu_gart_unbind(struct amdgpu_device *adev, uint64_t offset, > -- > 2.17.1