gpu: nvgpu: Last fixes for kmem usage

Remove the last usage of vmalloc() that slipped through
the cracks. This was possible because depsite not including
the vmalloc.h header directly it was implicitly included.
Subsequent patches in this series fix the includes in the
kmem header files such that this type of mistake will now
be much harder.

Change-Id: Ibf20994097864283d4881340599ea446758cf5f2
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1472369
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Alex Waterman
2017-04-27 12:38:31 -07:00
committed by mobile promotions
parent 7acc993cdb
commit a4a1b8ef48

View File

@@ -169,7 +169,7 @@ int nvgpu_lockless_allocator_init(struct gk20a *g, struct nvgpu_allocator *__a,
if (err)
goto fail;
a->next = vzalloc(sizeof(*a->next) * count);
a->next = nvgpu_vzalloc(g, sizeof(*a->next) * count);
if (!a->next) {
err = -ENOMEM;
goto fail;