From 99c707842f9eb036100b0eb96cd84fc3ab97508e Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 3 Mar 2015 12:15:04 +0530 Subject: gpu: nvgpu: fix sparse warnings of static declaration Fix below sparse warnings by making below APIs static : kernel/drivers/gpu/nvgpu/gk20a/mm_gk20a.c:1795:5: warning: symbol 'update_gmmu_pde_locked' was not declared. Should it be static? kernel/drivers/gpu/nvgpu/gk20a/mm_gk20a.c:1841:5: warning: symbol 'update_gmmu_pte_locked' was not declared. Should it be static? Bug 200067946 Change-Id: I8158aaf503378b176cfd5cc129db9557803003c1 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/713024 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 4b39df42..77f71bc9 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c @@ -1791,7 +1791,7 @@ static inline u32 small_valid_pde1_bits(u64 pte_addr) made. So, superfluous updates will cause unnecessary pde invalidations. */ -int update_gmmu_pde_locked(struct vm_gk20a *vm, +static int update_gmmu_pde_locked(struct vm_gk20a *vm, struct gk20a_mm_entry *pte, u32 i, u32 gmmu_pgsz_idx, u64 iova, @@ -1837,7 +1837,7 @@ int update_gmmu_pde_locked(struct vm_gk20a *vm, return 0; } -int update_gmmu_pte_locked(struct vm_gk20a *vm, +static int update_gmmu_pte_locked(struct vm_gk20a *vm, struct gk20a_mm_entry *pte, u32 i, u32 gmmu_pgsz_idx, u64 iova, -- cgit v1.2.2