mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
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:
committed by
Dan Willemsen
parent
dbe2369b7d
commit
99c707842f
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user