From dcf9f05ec61f0fa50d87d27b57c55f3264601688 Mon Sep 17 00:00:00 2001 From: Amit Sharma Date: Mon, 7 Dec 2015 16:38:56 +0530 Subject: 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 Reviewed-on: http://git-master/r/842260 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c') 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) #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; -- cgit v1.2.2