diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2014-11-04 08:14:28 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:12:01 -0400 |
commit | b3f575074b66e8af1a9943874f9782b793fa7edc (patch) | |
tree | c4aaa1defc512cf5a896edc25445f169de184ece /drivers/gpu/nvgpu/gm20b/mm_gm20b.c | |
parent | 797e4dd319bd2b9e13ce0e44a3bbbb75e4820330 (diff) |
gpu: nvgpu: fix sparse warnings
Fix below sparse warnings :
warning: Using plain integer as NULL pointer
warning: symbol <variable/funcion> was not declared. Should it be static?
warning: Initializer entry defined twice
Also, remove dead functions
Bug 1573254
Change-Id: I29d71ecc01c841233cf6b26c9088ca8874773469
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/593363
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/mm_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/mm_gm20b.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c index 13e7859f..030701b9 100644 --- a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c | |||
@@ -220,7 +220,7 @@ fail: | |||
220 | return ret; | 220 | return ret; |
221 | } | 221 | } |
222 | 222 | ||
223 | void gm20b_vm_clear_sparse(struct vm_gk20a *vm, u64 vaddr, | 223 | static void gm20b_vm_clear_sparse(struct vm_gk20a *vm, u64 vaddr, |
224 | u64 size, u32 pgsz_idx) { | 224 | u64 size, u32 pgsz_idx) { |
225 | u64 vaddr_hi; | 225 | u64 vaddr_hi; |
226 | u32 pde_lo, pde_hi, pde_i; | 226 | u32 pde_lo, pde_hi, pde_i; |
@@ -253,14 +253,15 @@ void gm20b_vm_clear_sparse(struct vm_gk20a *vm, u64 vaddr, | |||
253 | return; | 253 | return; |
254 | } | 254 | } |
255 | 255 | ||
256 | bool gm20b_mm_mmu_debug_mode_enabled(struct gk20a *g) | 256 | static bool gm20b_mm_mmu_debug_mode_enabled(struct gk20a *g) |
257 | { | 257 | { |
258 | u32 debug_ctrl = gk20a_readl(g, gr_gpcs_pri_mmu_debug_ctrl_r()); | 258 | u32 debug_ctrl = gk20a_readl(g, gr_gpcs_pri_mmu_debug_ctrl_r()); |
259 | return gr_gpcs_pri_mmu_debug_ctrl_debug_v(debug_ctrl) == | 259 | return gr_gpcs_pri_mmu_debug_ctrl_debug_v(debug_ctrl) == |
260 | gr_gpcs_pri_mmu_debug_ctrl_debug_enabled_v(); | 260 | gr_gpcs_pri_mmu_debug_ctrl_debug_enabled_v(); |
261 | } | 261 | } |
262 | 262 | ||
263 | void gm20b_mm_set_big_page_size(struct gk20a *g, void *inst_ptr, int size) | 263 | static void gm20b_mm_set_big_page_size(struct gk20a *g, |
264 | void *inst_ptr, int size) | ||
264 | { | 265 | { |
265 | u32 val; | 266 | u32 val; |
266 | 267 | ||