From af84bdaae85aba97e155ae9dd7ae8ff0b19b6884 Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Wed, 1 May 2019 14:11:52 -0700 Subject: [PATCH] gpu: nvgpu: runlist MISRA fixes for Rule 10.4 Fixed essential type for flags argument (0ULL) passed to nvgpu_dma_alloc_flags_sys. Jira NVGPU-3379 Change-Id: I3ab97d98b19bf168ba7a1c2a9357e778b1a242d5 Signed-off-by: Thomas Fleury Reviewed-on: https://git-master.nvidia.com/r/2109681 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Philip Elcan Reviewed-by: Adeel Raza Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/fifo/runlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/common/fifo/runlist.c b/drivers/gpu/nvgpu/common/fifo/runlist.c index 747d67683..dba552133 100644 --- a/drivers/gpu/nvgpu/common/fifo/runlist.c +++ b/drivers/gpu/nvgpu/common/fifo/runlist.c @@ -754,7 +754,7 @@ int nvgpu_runlist_setup_sw(struct gk20a *g) for (j = 0; j < MAX_RUNLIST_BUFFERS; j++) { err = nvgpu_dma_alloc_flags_sys(g, g->is_virtual ? - 0 : NVGPU_DMA_PHYSICALLY_ADDRESSED, + 0ULL : NVGPU_DMA_PHYSICALLY_ADDRESSED, runlist_size, &runlist->mem[j]); if (err != 0) {