diff options
author | Sai Nikhil <snikhil@nvidia.com> | 2018-08-27 03:12:02 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-07 00:42:11 -0400 |
commit | 2dd9bb03dd56ca86b0e61b89fab38d38a58ecddf (patch) | |
tree | b4de42f0056a65d1947c56f1f16afdcca29675a1 /drivers/gpu/nvgpu/os/posix/posix-nvgpu_mem.c | |
parent | 7f8226887c28267d3c2351692d4429ead1e17695 (diff) |
gpu: nvgpu: changing page_idx from int to u64
page_idx is an element of the struct nvgpu_semaphore_pool, defined in
include/nvgpu/semaphore.h file.
page_idx can not be negative so changing it from int to u64 and its
related changes in various files.
This also fixes MISRA 10.4 violations in these files.
Jira NVGPU-992
Change-Id: Ie9696dab7da9e139bc31563783b422c84144f18b
Signed-off-by: Sai Nikhil <snikhil@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1801632
Reviewed-by: Adeel Raza <araza@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os/posix/posix-nvgpu_mem.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/posix/posix-nvgpu_mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/posix/posix-nvgpu_mem.c b/drivers/gpu/nvgpu/os/posix/posix-nvgpu_mem.c index fa92a7c6..26770e47 100644 --- a/drivers/gpu/nvgpu/os/posix/posix-nvgpu_mem.c +++ b/drivers/gpu/nvgpu/os/posix/posix-nvgpu_mem.c | |||
@@ -114,7 +114,7 @@ struct nvgpu_sgt *nvgpu_sgt_create_from_mem(struct gk20a *g, | |||
114 | 114 | ||
115 | int nvgpu_mem_create_from_mem(struct gk20a *g, | 115 | int nvgpu_mem_create_from_mem(struct gk20a *g, |
116 | struct nvgpu_mem *dest, struct nvgpu_mem *src, | 116 | struct nvgpu_mem *dest, struct nvgpu_mem *src, |
117 | int start_page, int nr_pages) | 117 | u64 start_page, int nr_pages) |
118 | { | 118 | { |
119 | u64 start = start_page * PAGE_SIZE; | 119 | u64 start = start_page * PAGE_SIZE; |
120 | u64 size = nr_pages * PAGE_SIZE; | 120 | u64 size = nr_pages * PAGE_SIZE; |