diff options
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); |