From 2328d305b7c9437aa467922086b9fcfc0a4169ba Mon Sep 17 00:00:00 2001 From: Amulya Date: Mon, 6 Aug 2018 10:37:32 +0530 Subject: gpu: nvgpu: MISRA 10.4 enum fixes MISRA rule-10.4 only allows arithmetic conversions on operands of the same essential type category. Fix violations where an arithmetic conversion is performed on enum and non-enum types. JIRA NVGPU-993 Change-Id: I5391bb670d68982e0b5af6600995f70fe0cb2ad3 Signed-off-by: Amulya Reviewed-on: https://git-master.nvidia.com/r/1792852 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/falcon/falcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/common/falcon/falcon.c') diff --git a/drivers/gpu/nvgpu/common/falcon/falcon.c b/drivers/gpu/nvgpu/common/falcon/falcon.c index 048bb760..41dca0cd 100644 --- a/drivers/gpu/nvgpu/common/falcon/falcon.c +++ b/drivers/gpu/nvgpu/common/falcon/falcon.c @@ -255,7 +255,7 @@ int nvgpu_flcn_copy_to_imem(struct nvgpu_falcon *flcn, } static void nvgpu_flcn_print_mem(struct nvgpu_falcon *flcn, u32 src, - u32 size, u32 mem_type) + u32 size, enum flcn_mem_type mem_type) { u32 buff[64] = {0}; u32 total_block_read = 0; -- cgit v1.2.2