From a4a1b8ef48ac1407028aa7cda2c95e7f4306577f Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Thu, 27 Apr 2017 12:38:31 -0700 Subject: 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 Reviewed-on: http://git-master/r/1472369 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/common/mm/lockless_allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/common') diff --git a/drivers/gpu/nvgpu/common/mm/lockless_allocator.c b/drivers/gpu/nvgpu/common/mm/lockless_allocator.c index 51e26208..234ae4a3 100644 --- a/drivers/gpu/nvgpu/common/mm/lockless_allocator.c +++ b/drivers/gpu/nvgpu/common/mm/lockless_allocator.c @@ -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; -- cgit v1.2.2