From 5b28f2fe75328ad7a060d987f3b988521706056e Mon Sep 17 00:00:00 2001 From: "Amit Sharma (SW-TEGRA)" Date: Wed, 18 Mar 2015 09:55:30 +0530 Subject: gpu: nvgpu: make the local function static Fixed the following sparse warnings by making below APIs static: - gk20a.c: warning: symbol 'gk20a_pm_restore_debug_setting' was not declared. Should it be static? - gr_gk20a.c: warning: symbol 'gr_gk20a_rop_l2_en_mask' was not declared. Should it be static? - gr_gm20b.c: warning: symbol 'gr_gm20b_rop_l2_en_mask' was not declared. Should it be static? Bug 200067946 Change-Id: I334893bb6614171bff835d270716a7dd262c9ba7 Signed-off-by: Amit Sharma (SW-TEGRA) Reviewed-on: http://git-master/r/718756 Reviewed-by: Deepak Nibade Reviewed-by: Terje Bergstrom Reviewed-by: Sachin Nikam --- drivers/gpu/nvgpu/gk20a/gk20a.c | 2 +- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index f612e43f..27fce8e0 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c @@ -729,7 +729,7 @@ static int gk20a_detect_chip(struct gk20a *g) return gpu_init_hal(g); } -void gk20a_pm_restore_debug_setting(struct gk20a *g) +static void gk20a_pm_restore_debug_setting(struct gk20a *g) { u32 mmu_debug_ctrl; diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index a160942f..b5de90c0 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -7258,7 +7258,7 @@ static u32 gr_gk20a_get_max_lts_per_ltc(struct gk20a *g) return 1; } -u32 *gr_gk20a_rop_l2_en_mask(struct gk20a *g) +static u32 *gr_gk20a_rop_l2_en_mask(struct gk20a *g) { /* gk20a doesnt have rop_l2_en_mask */ return NULL; -- cgit v1.2.2