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/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/as.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/as.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/as.c b/drivers/gpu/nvgpu/common/as.c index 77f088b7..5458614e 100644 --- a/drivers/gpu/nvgpu/common/as.c +++ b/drivers/gpu/nvgpu/common/as.c | |||
@@ -23,7 +23,6 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <trace/events/gk20a.h> | 25 | #include <trace/events/gk20a.h> |
26 | #include <uapi/linux/nvgpu.h> | ||
27 | 26 | ||
28 | #include <nvgpu/kmem.h> | 27 | #include <nvgpu/kmem.h> |
29 | #include <nvgpu/vm.h> | 28 | #include <nvgpu/vm.h> |
@@ -58,7 +57,7 @@ static int gk20a_vm_alloc_share(struct gk20a_as_share *as_share, | |||
58 | struct vm_gk20a *vm; | 57 | struct vm_gk20a *vm; |
59 | char name[32]; | 58 | char name[32]; |
60 | const bool userspace_managed = | 59 | const bool userspace_managed = |
61 | (flags & NVGPU_GPU_IOCTL_ALLOC_AS_FLAGS_USERSPACE_MANAGED) != 0; | 60 | (flags & NVGPU_AS_ALLOC_USERSPACE_MANAGED) != 0; |
62 | 61 | ||
63 | nvgpu_log_fn(g, " "); | 62 | nvgpu_log_fn(g, " "); |
64 | 63 | ||