summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2015-03-03 01:45:04 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 21:08:54 -0400
commit99c707842f9eb036100b0eb96cd84fc3ab97508e (patch)
treefe74f1cf6d72166679013f0a4c6aa7bb6c6ff2a4 /drivers/gpu/nvgpu/gk20a/mm_gk20a.c
parentdbe2369b7dd853e7dadbaae529ba4b8dfc700647 (diff)
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>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.c4
1 files changed, 2 insertions, 2 deletions
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)
1791 made. So, superfluous updates will cause unnecessary 1791 made. So, superfluous updates will cause unnecessary
1792 pde invalidations. 1792 pde invalidations.
1793*/ 1793*/
1794int update_gmmu_pde_locked(struct vm_gk20a *vm, 1794static int update_gmmu_pde_locked(struct vm_gk20a *vm,
1795 struct gk20a_mm_entry *pte, 1795 struct gk20a_mm_entry *pte,
1796 u32 i, u32 gmmu_pgsz_idx, 1796 u32 i, u32 gmmu_pgsz_idx,
1797 u64 iova, 1797 u64 iova,
@@ -1837,7 +1837,7 @@ int update_gmmu_pde_locked(struct vm_gk20a *vm,
1837 return 0; 1837 return 0;
1838} 1838}
1839 1839
1840int update_gmmu_pte_locked(struct vm_gk20a *vm, 1840static int update_gmmu_pte_locked(struct vm_gk20a *vm,
1841 struct gk20a_mm_entry *pte, 1841 struct gk20a_mm_entry *pte,
1842 u32 i, u32 gmmu_pgsz_idx, 1842 u32 i, u32 gmmu_pgsz_idx,
1843 u64 iova, 1843 u64 iova,