Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd: Remove unused declarations

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@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Zhang Zekun and committed by
Alex Deucher
20588d5a 3fbaf475

-9
-7
drivers/gpu/drm/amd/amdgpu/amdgpu.h
··· 1575 1575 static inline void amdgpu_choose_low_power_state(struct amdgpu_device *adev) { } 1576 1576 #endif 1577 1577 1578 - #if defined(CONFIG_DRM_AMD_DC) 1579 - int amdgpu_dm_display_resume(struct amdgpu_device *adev ); 1580 - #else 1581 - static inline int amdgpu_dm_display_resume(struct amdgpu_device *adev) { return 0; } 1582 - #endif 1583 - 1584 - 1585 1578 void amdgpu_register_gpu_instance(struct amdgpu_device *adev); 1586 1579 void amdgpu_unregister_gpu_instance(struct amdgpu_device *adev); 1587 1580
-2
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h
··· 55 55 void amdgpu_gart_table_ram_free(struct amdgpu_device *adev); 56 56 int amdgpu_gart_table_vram_alloc(struct amdgpu_device *adev); 57 57 void amdgpu_gart_table_vram_free(struct amdgpu_device *adev); 58 - int amdgpu_gart_table_vram_pin(struct amdgpu_device *adev); 59 - void amdgpu_gart_table_vram_unpin(struct amdgpu_device *adev); 60 58 int amdgpu_gart_init(struct amdgpu_device *adev); 61 59 void amdgpu_gart_dummy_page_fini(struct amdgpu_device *adev); 62 60 void amdgpu_gart_unbind(struct amdgpu_device *adev, uint64_t offset,