gpu: nvgpu: Fix warnings in allocator patches

Fix some checkpatch warnings and copyright issues.

Change-Id: I841492d1e83ced3483b559ad4d9c4404d1adb83f
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1183570
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
This commit is contained in:
Alex Waterman
2016-07-19 11:20:32 -07:00
parent 89aecd1202
commit 306dee6cbb
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011-2015, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved.
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License, * under the terms and conditions of the GNU General Public License,

View File

@@ -400,7 +400,7 @@ int gk20a_bitmap_allocator_init(struct gk20a_allocator *__a,
a->bit_offs = a->base >> a->blk_shift; a->bit_offs = a->base >> a->blk_shift;
a->flags = flags; a->flags = flags;
a->bitmap = kzalloc(sizeof(*a->bitmap) * BITS_TO_LONGS(a->num_bits), a->bitmap = kcalloc(BITS_TO_LONGS(a->num_bits), sizeof(*a->bitmap),
GFP_KERNEL); GFP_KERNEL);
if (!a->bitmap) if (!a->bitmap)
goto fail; goto fail;