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 <alankritag@nvidia.com>
Reviewed-on: http://git-master/r/746583
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/760446
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Tested-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
This commit is contained in:
Alankrita G
2015-05-25 10:10:42 +05:30
committed by Amit Sharma (SW-TEGRA)
parent 788776c9aa
commit 3107c949ba

View File

@@ -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;