mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
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:
committed by
Amit Sharma (SW-TEGRA)
parent
788776c9aa
commit
3107c949ba
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user