diff options
author | Amit Sharma (SW-TEGRA) <amisharma@nvidia.com> | 2015-03-18 00:25:30 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 22:00:32 -0400 |
commit | 5b28f2fe75328ad7a060d987f3b988521706056e (patch) | |
tree | 818861ca8ab1f4121c32cdeca871c80373057563 /drivers/gpu/nvgpu/gk20a | |
parent | d86fc5414beb6758d0b04ec78dd6589411dda66d (diff) |
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) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/718756
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 2 |
2 files changed, 2 insertions, 2 deletions
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) | |||
729 | return gpu_init_hal(g); | 729 | return gpu_init_hal(g); |
730 | } | 730 | } |
731 | 731 | ||
732 | void gk20a_pm_restore_debug_setting(struct gk20a *g) | 732 | static void gk20a_pm_restore_debug_setting(struct gk20a *g) |
733 | { | 733 | { |
734 | u32 mmu_debug_ctrl; | 734 | u32 mmu_debug_ctrl; |
735 | 735 | ||
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) | |||
7258 | return 1; | 7258 | return 1; |
7259 | } | 7259 | } |
7260 | 7260 | ||
7261 | u32 *gr_gk20a_rop_l2_en_mask(struct gk20a *g) | 7261 | static u32 *gr_gk20a_rop_l2_en_mask(struct gk20a *g) |
7262 | { | 7262 | { |
7263 | /* gk20a doesnt have rop_l2_en_mask */ | 7263 | /* gk20a doesnt have rop_l2_en_mask */ |
7264 | return NULL; | 7264 | return NULL; |