summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamesh Errabolu <Ramesh.Errabolu@amd.com>2021-11-18 16:09:32 -0600
committerAlex Deucher <alexander.deucher@amd.com>2021-11-24 14:06:53 -0500
commit37ba5bbc89787aa6029266fef771ce1fc7f596ae (patch)
tree38682db89a961074b8460ad54e7b26692e35f777
parent7b37c7f8f505abc55da54a5a9d22135d77ff73bb (diff)
downloadlinux-stable-37ba5bbc89787aa6029266fef771ce1fc7f596ae.tar.gz
linux-stable-37ba5bbc89787aa6029266fef771ce1fc7f596ae.tar.bz2
linux-stable-37ba5bbc89787aa6029266fef771ce1fc7f596ae.zip
drm/amdgpu: Declare Unpin BO api as static
Fixes warning report from kernel test robot Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Ramesh Errabolu <Ramesh.Errabolu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
index 86a1a6c109d9..c5362c23e687 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
@@ -1326,7 +1326,7 @@ static int amdgpu_amdkfd_gpuvm_pin_bo(struct amdgpu_bo *bo, u32 domain)
* - All other BO types (GTT, VRAM, MMIO and DOORBELL) will have their
* PIN count decremented. Calls to UNPIN must balance calls to PIN
*/
-void amdgpu_amdkfd_gpuvm_unpin_bo(struct amdgpu_bo *bo)
+static void amdgpu_amdkfd_gpuvm_unpin_bo(struct amdgpu_bo *bo)
{
int ret = 0;