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/ltc_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/ltc_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/ltc_gm20b.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c index a089b59c..10e3ba7f 100644 --- a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c | |||
@@ -197,7 +197,7 @@ static void gm20b_ltc_init_fs_state(struct gk20a *g) | |||
197 | gk20a_writel(g, ltc_ltcs_ltss_intr_r(), reg); | 197 | gk20a_writel(g, ltc_ltcs_ltss_intr_r(), reg); |
198 | } | 198 | } |
199 | 199 | ||
200 | void gm20b_ltc_isr(struct gk20a *g) | 200 | static void gm20b_ltc_isr(struct gk20a *g) |
201 | { | 201 | { |
202 | u32 mc_intr, ltc_intr; | 202 | u32 mc_intr, ltc_intr; |
203 | int ltc, slice; | 203 | int ltc, slice; |
@@ -266,7 +266,7 @@ static void gm20b_ltc_g_elpg_flush_locked(struct gk20a *g) | |||
266 | "g_elpg_flush too many retries"); | 266 | "g_elpg_flush too many retries"); |
267 | } | 267 | } |
268 | 268 | ||
269 | u32 gm20b_ltc_cbc_fix_config(struct gk20a *g, int base) | 269 | static u32 gm20b_ltc_cbc_fix_config(struct gk20a *g, int base) |
270 | { | 270 | { |
271 | u32 val = gk20a_readl(g, ltc_ltcs_ltss_cbc_num_active_ltcs_r()); | 271 | u32 val = gk20a_readl(g, ltc_ltcs_ltss_cbc_num_active_ltcs_r()); |
272 | if (val == 2) { | 272 | if (val == 2) { |
@@ -282,7 +282,7 @@ u32 gm20b_ltc_cbc_fix_config(struct gk20a *g, int base) | |||
282 | /* | 282 | /* |
283 | * Performs a full flush of the L2 cache. | 283 | * Performs a full flush of the L2 cache. |
284 | */ | 284 | */ |
285 | void gm20b_flush_ltc(struct gk20a *g) | 285 | static void gm20b_flush_ltc(struct gk20a *g) |
286 | { | 286 | { |
287 | u32 op_pending; | 287 | u32 op_pending; |
288 | unsigned long now, timeout; | 288 | unsigned long now, timeout; |