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>
This commit is contained in:
Amit Sharma
2015-12-07 16:38:56 +05:30
committed by Sachin Nikam
parent 59308073a7
commit dcf9f05ec6
2 changed files with 2 additions and 2 deletions

View File

@@ -7261,7 +7261,7 @@ static void gr_gk20a_init_cyclestats(struct gk20a *g)
#endif
}
void gr_gk20a_bpt_reg_info(struct gk20a *g, struct warpstate *w_state)
static void gr_gk20a_bpt_reg_info(struct gk20a *g, struct warpstate *w_state)
{
/* Check if we have at least one valid warp */
struct gr_gk20a *gr = &g->gr;

View File

@@ -1050,7 +1050,7 @@ static void gr_gm20b_enable_cde_in_fecs(void *ctx_ptr)
gk20a_mem_wr32(ctx_ptr + ctxsw_prog_main_image_ctl_o(), 0, cde_v);
}
void gr_gm20b_bpt_reg_info(struct gk20a *g, struct warpstate *w_state)
static void gr_gm20b_bpt_reg_info(struct gk20a *g, struct warpstate *w_state)
{
/* Check if we have at least one valid warp */
/* get paused state on maxwell */