From b3f575074b66e8af1a9943874f9782b793fa7edc Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 4 Nov 2014 18:44:28 +0530 Subject: gpu: nvgpu: fix sparse warnings Fix below sparse warnings : warning: Using plain integer as NULL pointer warning: symbol 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 Reviewed-on: http://git-master/r/593363 Reviewed-by: Amit Sharma (SW-TEGRA) Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam --- drivers/gpu/nvgpu/gk20a/debug_gk20a.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/debug_gk20a.c') 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 @@ #include "hw_pbdma_gk20a.h" unsigned int gk20a_debug_trace_cmdbuf; -struct platform_device *gk20a_device; +static struct platform_device *gk20a_device; struct gk20a_debug_output { 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, seq_write((struct seq_file *)ctx, str, len); } -void gk20a_debug_output(struct gk20a_debug_output *o, const char *fmt, ...) +static void gk20a_debug_output(struct gk20a_debug_output *o, + const char *fmt, ...) { va_list args; int len; @@ -159,7 +160,7 @@ static void gk20a_debug_show_channel(struct gk20a *g, gk20a_debug_output(o, "\n"); } -void gk20a_debug_show_dump(struct platform_device *pdev, +static void gk20a_debug_show_dump(struct platform_device *pdev, struct gk20a_debug_output *o) { struct gk20a_platform *platform = gk20a_get_platform(pdev); -- cgit v1.2.2