drm/amdgpu: Declare Unpin BO api as static
Subsystems (3)
PATCH 1/1 drm/amdgpu: Declare Unpin BO api as static
Fixes warning report from kernel test robot
--- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +1 -1
@@ -1332,7 +1332,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 ;
Signature · 1 line
2.31.1
[Public]
________________________________
From: amd-gfx <[email protected]> on behalf of Ramesh Errabolu <[email protected]>
Sent: Thursday, November 18, 2021 5:11 PM
To: [email protected] <[email protected]>
Cc: Errabolu, Ramesh <[email protected]>; kernel test robot <[email protected]>
Subject: [PATCH] drm/amdgpu: Declare Unpin BO api as static
Fixes warning report from kernel test robot
--- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +1 -1
@@ -1332,7 +1332,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 ;
--
2.31.1
[AMD Official Use Only]
Request review
Regards,
Ramesh
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Ramesh Errabolu
Sent: Thursday, November 18, 2021 4:12 PM
To: [email protected]
Cc: Errabolu, Ramesh <[email protected]>; kernel test robot <[email protected]>
Subject: [PATCH] drm/amdgpu: Declare Unpin BO api as static
[CAUTION: External Email]
Fixes warning report from kernel test robot
--- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +1 -1
@@ -1332,7 +1332,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 ;
--
2.31.1
Alex Deucher
Reviewed-byI sent my RB, last week, but maybe it never made it to the list?
Quoted 40 lines · Ramesh
[AMD Official Use Only]
Request review
Regards,
Ramesh-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Ramesh Errabolu
Sent: Thursday, November 18, 2021 4:12 PM
To: [email protected]
Cc: Errabolu, Ramesh <[email protected]>; kernel test robot <[email protected]>
Subject: [PATCH] drm/amdgpu: Declare Unpin BO api as static[CAUTION: External Email]
Fixes warning report from kernel test robot
Reported-by kernel test robot <[email protected]>Signed-off-by Ramesh Errabolu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +1
-2@@ -1332,7 +1332,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 ; --2.31.1