diff options
author | Alex Waterman <alexw@nvidia.com> | 2018-05-16 14:15:27 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-17 16:03:32 -0400 |
commit | 2203d0330231821eeae18517715ba754e093ab18 (patch) | |
tree | 73b142861090ea56b7f4e1a3b055d5adfff5fd07 /drivers/gpu/nvgpu/common/linux/ioctl_as.c | |
parent | 7abf697204481869dd2652fe306e2a46879d9152 (diff) |
gpu: nvgpu: Translate as_alloc flags
Translate the as_alloc flags so that the common/as.c code no longer
needs to include <uapi/linux/nvgpu.h>. This was an oversight from
prior MM unification efforts which was caught by the userspace
POSIX build on QNX.
JIRA NVGPU-525
Change-Id: I6af6cb9904c2ae9edeb8dbb970846c31b56822bf
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1720918
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Sourab Gupta <sourabg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_as.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_as.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_as.c b/drivers/gpu/nvgpu/common/linux/ioctl_as.c index 41bbdfcb..47f612cc 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_as.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_as.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include "ioctl_as.h" | 32 | #include "ioctl_as.h" |
33 | #include "os_linux.h" | 33 | #include "os_linux.h" |
34 | 34 | ||
35 | static u32 gk20a_as_translate_linux_flags(struct gk20a *g, u32 flags) | 35 | static u32 gk20a_as_translate_as_alloc_space_flags(struct gk20a *g, u32 flags) |
36 | { | 36 | { |
37 | u32 core_flags = 0; | 37 | u32 core_flags = 0; |
38 | 38 | ||
@@ -80,8 +80,8 @@ static int gk20a_as_ioctl_alloc_space( | |||
80 | nvgpu_log_fn(g, " "); | 80 | nvgpu_log_fn(g, " "); |
81 | return nvgpu_vm_area_alloc(as_share->vm, args->pages, args->page_size, | 81 | return nvgpu_vm_area_alloc(as_share->vm, args->pages, args->page_size, |
82 | &args->o_a.offset, | 82 | &args->o_a.offset, |
83 | gk20a_as_translate_linux_flags(g, | 83 | gk20a_as_translate_as_alloc_space_flags(g, |
84 | args->flags)); | 84 | args->flags)); |
85 | } | 85 | } |
86 | 86 | ||
87 | static int gk20a_as_ioctl_free_space( | 87 | static int gk20a_as_ioctl_free_space( |