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/gk20a/debug_gk20a.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/gk20a/debug_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/debug_gk20a.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c index 2cc3d38d..676b493b 100644 --- a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include "hw_pbdma_gk20a.h" | 32 | #include "hw_pbdma_gk20a.h" |
33 | 33 | ||
34 | unsigned int gk20a_debug_trace_cmdbuf; | 34 | unsigned int gk20a_debug_trace_cmdbuf; |
35 | struct platform_device *gk20a_device; | 35 | static struct platform_device *gk20a_device; |
36 | 36 | ||
37 | struct gk20a_debug_output { | 37 | struct gk20a_debug_output { |
38 | void (*fn)(void *ctx, const char *str, size_t len); | 38 | void (*fn)(void *ctx, const char *str, size_t len); |
@@ -89,7 +89,8 @@ static inline void gk20a_debug_write_to_seqfile(void *ctx, const char *str, | |||
89 | seq_write((struct seq_file *)ctx, str, len); | 89 | seq_write((struct seq_file *)ctx, str, len); |
90 | } | 90 | } |
91 | 91 | ||
92 | void gk20a_debug_output(struct gk20a_debug_output *o, const char *fmt, ...) | 92 | static void gk20a_debug_output(struct gk20a_debug_output *o, |
93 | const char *fmt, ...) | ||
93 | { | 94 | { |
94 | va_list args; | 95 | va_list args; |
95 | int len; | 96 | int len; |
@@ -159,7 +160,7 @@ static void gk20a_debug_show_channel(struct gk20a *g, | |||
159 | gk20a_debug_output(o, "\n"); | 160 | gk20a_debug_output(o, "\n"); |
160 | } | 161 | } |
161 | 162 | ||
162 | void gk20a_debug_show_dump(struct platform_device *pdev, | 163 | static void gk20a_debug_show_dump(struct platform_device *pdev, |
163 | struct gk20a_debug_output *o) | 164 | struct gk20a_debug_output *o) |
164 | { | 165 | { |
165 | struct gk20a_platform *platform = gk20a_get_platform(pdev); | 166 | struct gk20a_platform *platform = gk20a_get_platform(pdev); |