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/gm20b/regops_gm20b.c | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'drivers/gpu/nvgpu/gm20b/regops_gm20b.c') diff --git a/drivers/gpu/nvgpu/gm20b/regops_gm20b.c b/drivers/gpu/nvgpu/gm20b/regops_gm20b.c index 71ccda37..cc1c72c2 100644 --- a/drivers/gpu/nvgpu/gm20b/regops_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/regops_gm20b.c @@ -434,67 +434,68 @@ static const struct regop_offset_range gm20b_qctl_whitelist_ranges[] = { static const u32 gm20b_qctl_whitelist_ranges_count = ARRAY_SIZE(gm20b_qctl_whitelist_ranges); -const struct regop_offset_range *gm20b_get_global_whitelist_ranges(void) +static const struct regop_offset_range *gm20b_get_global_whitelist_ranges(void) { return gm20b_global_whitelist_ranges; } -int gm20b_get_global_whitelist_ranges_count(void) +static int gm20b_get_global_whitelist_ranges_count(void) { return gm20b_global_whitelist_ranges_count; } -const struct regop_offset_range *gm20b_get_context_whitelist_ranges(void) +static const struct regop_offset_range *gm20b_get_context_whitelist_ranges(void) { return gm20b_context_whitelist_ranges; } -int gm20b_get_context_whitelist_ranges_count(void) +static int gm20b_get_context_whitelist_ranges_count(void) { return gm20b_context_whitelist_ranges_count; } -const u32 *gm20b_get_runcontrol_whitelist(void) +static const u32 *gm20b_get_runcontrol_whitelist(void) { return gm20b_runcontrol_whitelist; } -int gm20b_get_runcontrol_whitelist_count(void) +static int gm20b_get_runcontrol_whitelist_count(void) { return gm20b_runcontrol_whitelist_count; } -const struct regop_offset_range *gm20b_get_runcontrol_whitelist_ranges(void) +static const +struct regop_offset_range *gm20b_get_runcontrol_whitelist_ranges(void) { return gm20b_runcontrol_whitelist_ranges; } -int gm20b_get_runcontrol_whitelist_ranges_count(void) +static int gm20b_get_runcontrol_whitelist_ranges_count(void) { return gm20b_runcontrol_whitelist_ranges_count; } -const u32 *gm20b_get_qctl_whitelist(void) +static const u32 *gm20b_get_qctl_whitelist(void) { return gm20b_qctl_whitelist; } -int gm20b_get_qctl_whitelist_count(void) +static int gm20b_get_qctl_whitelist_count(void) { return gm20b_qctl_whitelist_count; } -const struct regop_offset_range *gm20b_get_qctl_whitelist_ranges(void) +static const struct regop_offset_range *gm20b_get_qctl_whitelist_ranges(void) { return gm20b_qctl_whitelist_ranges; } -int gm20b_get_qctl_whitelist_ranges_count(void) +static int gm20b_get_qctl_whitelist_ranges_count(void) { return gm20b_qctl_whitelist_ranges_count; } -int gm20b_apply_smpc_war(struct dbg_session_gk20a *dbg_s) +static int gm20b_apply_smpc_war(struct dbg_session_gk20a *dbg_s) { /* Not needed on gm20b */ return 0; -- cgit v1.2.2