diff options
author | Amit Sharma <amisharma@nvidia.com> | 2015-12-07 06:08:56 -0500 |
---|---|---|
committer | Sachin Nikam <snikam@nvidia.com> | 2015-12-14 05:19:44 -0500 |
commit | dcf9f05ec61f0fa50d87d27b57c55f3264601688 (patch) | |
tree | 50418eb5c67a2bf18c96c629459d117583eebf90 /drivers/gpu/nvgpu/gk20a | |
parent | 59308073a7fbb9ca87309845e24c5d65f54565d4 (diff) |
gpu: nvgpu: make local function static
Fixed the following sparse warning by restricting the scope of
API's within file.
- gr_gk20a.c:7273: warning: symbol 'gr_gk20a_bpt_reg_info' was not declared.
Should it be static?
- gr_gm20b.c:1053: warning: symbol 'gr_gm20b_bpt_reg_info' was not declared.
Should it be static?
Bug 200088648
Change-Id: I63bba55b1432e4284c9074d2729a176f1767a83a
Signed-off-by: Amit Sharma <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/842260
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 1efa0c86..ea6bca2f 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -7261,7 +7261,7 @@ static void gr_gk20a_init_cyclestats(struct gk20a *g) | |||
7261 | #endif | 7261 | #endif |
7262 | } | 7262 | } |
7263 | 7263 | ||
7264 | void gr_gk20a_bpt_reg_info(struct gk20a *g, struct warpstate *w_state) | 7264 | static void gr_gk20a_bpt_reg_info(struct gk20a *g, struct warpstate *w_state) |
7265 | { | 7265 | { |
7266 | /* Check if we have at least one valid warp */ | 7266 | /* Check if we have at least one valid warp */ |
7267 | struct gr_gk20a *gr = &g->gr; | 7267 | struct gr_gk20a *gr = &g->gr; |