diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2015-04-06 07:02:29 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:05 -0500 |
commit | 0158c380376722636ff696543071427ef3d3739f (patch) | |
tree | 5314d21253ed4a4a440f96348bd127b84f156db9 /drivers/gpu/nvgpu/gp10b/gr_gp10b.c | |
parent | 11c589070272d34763559014f1c11738028823a8 (diff) |
gpu: nvgpu: gp10b: fix sparse warnings of static symbol
Fix sparse warnings of below type by making necessary
symbols static:
warning: symbol '<symbol>' was not declared. Should it be static?
Bug 200088648
Change-Id: Ic20ef3eb73dcbfe5f13506b5afa629c3e1db59d0
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/728012
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gr_gp10b.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c index f91ef1ba..a2c981a0 100644 --- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include "hw_proj_gp10b.h" | 24 | #include "hw_proj_gp10b.h" |
25 | #include "hw_ctxsw_prog_gp10b.h" | 25 | #include "hw_ctxsw_prog_gp10b.h" |
26 | 26 | ||
27 | bool gr_gp10b_is_valid_class(struct gk20a *g, u32 class_num) | 27 | static bool gr_gp10b_is_valid_class(struct gk20a *g, u32 class_num) |
28 | { | 28 | { |
29 | bool valid = false; | 29 | bool valid = false; |
30 | 30 | ||
@@ -50,7 +50,7 @@ bool gr_gp10b_is_valid_class(struct gk20a *g, u32 class_num) | |||
50 | return valid; | 50 | return valid; |
51 | } | 51 | } |
52 | 52 | ||
53 | int gr_gp10b_commit_global_cb_manager(struct gk20a *g, | 53 | static int gr_gp10b_commit_global_cb_manager(struct gk20a *g, |
54 | struct channel_gk20a *c, bool patch) | 54 | struct channel_gk20a *c, bool patch) |
55 | { | 55 | { |
56 | struct gr_gk20a *gr = &g->gr; | 56 | struct gr_gk20a *gr = &g->gr; |
@@ -142,7 +142,7 @@ int gr_gp10b_commit_global_cb_manager(struct gk20a *g, | |||
142 | return 0; | 142 | return 0; |
143 | } | 143 | } |
144 | 144 | ||
145 | void gr_gp10b_commit_global_pagepool(struct gk20a *g, | 145 | static void gr_gp10b_commit_global_pagepool(struct gk20a *g, |
146 | struct channel_ctx_gk20a *ch_ctx, | 146 | struct channel_ctx_gk20a *ch_ctx, |
147 | u64 addr, u32 size, bool patch) | 147 | u64 addr, u32 size, bool patch) |
148 | { | 148 | { |
@@ -457,7 +457,7 @@ static int gr_gp10b_init_ctx_state(struct gk20a *g) | |||
457 | return 0; | 457 | return 0; |
458 | } | 458 | } |
459 | 459 | ||
460 | int gr_gp10b_alloc_gr_ctx(struct gk20a *g, | 460 | static int gr_gp10b_alloc_gr_ctx(struct gk20a *g, |
461 | struct gr_ctx_desc **gr_ctx, struct vm_gk20a *vm, | 461 | struct gr_ctx_desc **gr_ctx, struct vm_gk20a *vm, |
462 | u32 class, | 462 | u32 class, |
463 | u32 flags) | 463 | u32 flags) |