summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlankrita G <alankritag@nvidia.com>2015-05-25 00:40:42 -0400
committerAmit Sharma (SW-TEGRA) <amisharma@nvidia.com>2015-06-23 04:31:28 -0400
commit3107c949ba8c5082d3eb908b27b8082e9622b707 (patch)
tree0e0bd3121396cbfc68e0e861c95e6a650cd9edb8 /drivers
parent788776c9aa2028a0672c07271e9c06ed684f74a8 (diff)
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
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a_allocator.c2
1 files changed, 1 insertions, 1 deletions
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,
507 * 507 *
508 * @a must be locked. 508 * @a must be locked.
509 */ 509 */
510void balloc_alloc_buddy(struct gk20a_allocator *a, struct gk20a_buddy *b) 510static void balloc_alloc_buddy(struct gk20a_allocator *a, struct gk20a_buddy *b)
511{ 511{
512 struct rb_node **new = &(a->alloced_buddies.rb_node); 512 struct rb_node **new = &(a->alloced_buddies.rb_node);
513 struct rb_node *parent = NULL; 513 struct rb_node *parent = NULL;