diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/bitmap_allocator.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/bitmap_allocator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c b/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c index 1edfda51..6b9db23c 100644 --- a/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c +++ b/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c | |||
@@ -174,7 +174,7 @@ static struct nvgpu_bitmap_alloc *find_alloc_metadata( | |||
174 | /* | 174 | /* |
175 | * Tree of alloc meta data stores the address of the alloc not the bit offset. | 175 | * Tree of alloc meta data stores the address of the alloc not the bit offset. |
176 | */ | 176 | */ |
177 | static int __nvgpu_bitmap_store_alloc(struct nvgpu_bitmap_allocator *a, | 177 | static int nvgpu_bitmap_store_alloc(struct nvgpu_bitmap_allocator *a, |
178 | u64 addr, u64 len) | 178 | u64 addr, u64 len) |
179 | { | 179 | { |
180 | struct nvgpu_bitmap_alloc *alloc = | 180 | struct nvgpu_bitmap_alloc *alloc = |
@@ -244,7 +244,7 @@ static u64 nvgpu_bitmap_alloc(struct nvgpu_allocator *na, u64 len) | |||
244 | * data it needs around to successfully free this allocation. | 244 | * data it needs around to successfully free this allocation. |
245 | */ | 245 | */ |
246 | if (!(a->flags & GPU_ALLOC_NO_ALLOC_PAGE) && | 246 | if (!(a->flags & GPU_ALLOC_NO_ALLOC_PAGE) && |
247 | __nvgpu_bitmap_store_alloc(a, addr, blks * a->blk_size)) { | 247 | nvgpu_bitmap_store_alloc(a, addr, blks * a->blk_size)) { |
248 | goto fail_reset_bitmap; | 248 | goto fail_reset_bitmap; |
249 | } | 249 | } |
250 | 250 | ||
@@ -401,7 +401,7 @@ int nvgpu_bitmap_allocator_init(struct gk20a *g, struct nvgpu_allocator *na, | |||
401 | return -ENOMEM; | 401 | return -ENOMEM; |
402 | } | 402 | } |
403 | 403 | ||
404 | err = __nvgpu_alloc_common_init(na, g, name, a, false, &bitmap_ops); | 404 | err = nvgpu_alloc_common_init(na, g, name, a, false, &bitmap_ops); |
405 | if (err) { | 405 | if (err) { |
406 | goto fail; | 406 | goto fail; |
407 | } | 407 | } |