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 <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/713024
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Deepak Nibade
2015-03-03 12:15:04 +05:30
committed by Dan Willemsen
parent dbe2369b7d
commit 99c707842f

View File

@@ -1791,7 +1791,7 @@ static inline u32 small_valid_pde1_bits(u64 pte_addr)
made. So, superfluous updates will cause unnecessary made. So, superfluous updates will cause unnecessary
pde invalidations. 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, struct gk20a_mm_entry *pte,
u32 i, u32 gmmu_pgsz_idx, u32 i, u32 gmmu_pgsz_idx,
u64 iova, u64 iova,
@@ -1837,7 +1837,7 @@ int update_gmmu_pde_locked(struct vm_gk20a *vm,
return 0; 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, struct gk20a_mm_entry *pte,
u32 i, u32 gmmu_pgsz_idx, u32 i, u32 gmmu_pgsz_idx,
u64 iova, u64 iova,