mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: VM fixup for MISRA 10.3
The function parameter of nvgpu_vm_map function is fixed for MISRA where implicit assignment of objects to a narrower or different essential type not allowed.This fixes few enum violations. JIRA NVGPU-1584 Change-Id: I2353f7501c3326f792f5942b2e247badf03349cf Signed-off-by: Dinesh T <dt@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1986509 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
0f2bbca0df
commit
9578ed6c4e
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2017-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -181,7 +181,7 @@ int nvgpu_vm_map_linux(struct vm_gk20a *vm,
|
||||
u32 page_size,
|
||||
s16 compr_kind,
|
||||
s16 incompr_kind,
|
||||
int rw_flag,
|
||||
enum gk20a_mem_rw_flag rw_flag,
|
||||
u64 buffer_offset,
|
||||
u64 mapping_size,
|
||||
struct vm_gk20a_mapping_batch *batch,
|
||||
|
||||
Reference in New Issue
Block a user