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/linux/sync_sema_android.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/linux/sync_sema_android.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/sync_sema_android.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/sync_sema_android.c b/drivers/gpu/nvgpu/os/linux/sync_sema_android.c index 50465d0c..59e3b7a6 100644 --- a/drivers/gpu/nvgpu/os/linux/sync_sema_android.c +++ b/drivers/gpu/nvgpu/os/linux/sync_sema_android.c | |||
@@ -284,7 +284,7 @@ static void gk20a_sync_pt_value_str_for_sema(struct gk20a_sync_pt *pt, | |||
284 | { | 284 | { |
285 | struct nvgpu_semaphore *s = pt->sema; | 285 | struct nvgpu_semaphore *s = pt->sema; |
286 | 286 | ||
287 | snprintf(str, size, "S: pool=%d [v=%u,r_v=%u]", | 287 | snprintf(str, size, "S: pool=%llu [v=%u,r_v=%u]", |
288 | s->location.pool->page_idx, | 288 | s->location.pool->page_idx, |
289 | nvgpu_semaphore_get_value(s), | 289 | nvgpu_semaphore_get_value(s), |
290 | nvgpu_semaphore_read(s)); | 290 | nvgpu_semaphore_read(s)); |