From 3107c949ba8c5082d3eb908b27b8082e9622b707 Mon Sep 17 00:00:00 2001 From: Alankrita G Date: Mon, 25 May 2015 10:10:42 +0530 Subject: gpu: nvgpu: make functions as static - Fixed the following sparse warnings by making the local function as static: warning: symbol 'balloc_alloc_buddy' was not declared. Should it be static? Bug 200067946 Change-Id: I6eeb71f6c0d5fbfb99f6c43bbc4504fea1bc8d46 Signed-off-by: Alankrita G Reviewed-on: http://git-master/r/746583 Reviewed-by: Sachin Nikam Reviewed-on: http://git-master/r/760446 Reviewed-by: Amit Sharma (SW-TEGRA) Tested-by: Amit Sharma (SW-TEGRA) Reviewed-by: Automatic_Commit_Validation_User --- drivers/gpu/nvgpu/gk20a/gk20a_allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_allocator.c b/drivers/gpu/nvgpu/gk20a/gk20a_allocator.c index 3694c96d..a7378956 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_allocator.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_allocator.c @@ -507,7 +507,7 @@ static int balloc_split_buddy(struct gk20a_allocator *a, struct gk20a_buddy *b, * * @a must be locked. */ -void balloc_alloc_buddy(struct gk20a_allocator *a, struct gk20a_buddy *b) +static void balloc_alloc_buddy(struct gk20a_allocator *a, struct gk20a_buddy *b) { struct rb_node **new = &(a->alloced_buddies.rb_node); struct rb_node *parent = NULL; -- cgit v1.2.2