mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: MISRA rule 21.2 fixes in VM
Rename the __nvgpu_vm_find_mapped_buf*() functions to nvgpu_vm_find_mapped_buf*(). This removes the '__' prefix. JIRA NVGPU-1029 Change-Id: I7144e8705550c77d9169d5ac643b93507abbe56f Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1974839 Reviewed-by: Scott Long <scottl@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit 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
78c513790a
commit
7b8f776822
@@ -62,7 +62,7 @@ static u32 nvgpu_vm_translate_linux_flags(struct gk20a *g, u32 flags)
|
||||
return core_flags;
|
||||
}
|
||||
|
||||
static struct nvgpu_mapped_buf *__nvgpu_vm_find_mapped_buf_reverse(
|
||||
static struct nvgpu_mapped_buf *nvgpu_vm_find_mapped_buf_reverse(
|
||||
struct vm_gk20a *vm, struct dma_buf *dmabuf, u32 kind)
|
||||
{
|
||||
struct nvgpu_rbtree_node *node = NULL;
|
||||
@@ -95,7 +95,7 @@ int nvgpu_vm_find_buf(struct vm_gk20a *vm, u64 gpu_va,
|
||||
|
||||
nvgpu_mutex_acquire(&vm->update_gmmu_lock);
|
||||
|
||||
mapped_buffer = __nvgpu_vm_find_mapped_buf_range(vm, gpu_va);
|
||||
mapped_buffer = nvgpu_vm_find_mapped_buf_range(vm, gpu_va);
|
||||
if (!mapped_buffer) {
|
||||
nvgpu_mutex_release(&vm->update_gmmu_lock);
|
||||
return -EINVAL;
|
||||
@@ -129,7 +129,7 @@ struct nvgpu_mapped_buf *nvgpu_vm_find_mapping(struct vm_gk20a *vm,
|
||||
struct nvgpu_mapped_buf *mapped_buffer = NULL;
|
||||
|
||||
if (flags & NVGPU_VM_MAP_FIXED_OFFSET) {
|
||||
mapped_buffer = __nvgpu_vm_find_mapped_buf(vm, map_addr);
|
||||
mapped_buffer = nvgpu_vm_find_mapped_buf(vm, map_addr);
|
||||
if (!mapped_buffer)
|
||||
return NULL;
|
||||
|
||||
@@ -138,9 +138,9 @@ struct nvgpu_mapped_buf *nvgpu_vm_find_mapping(struct vm_gk20a *vm,
|
||||
return NULL;
|
||||
} else {
|
||||
mapped_buffer =
|
||||
__nvgpu_vm_find_mapped_buf_reverse(vm,
|
||||
os_buf->dmabuf,
|
||||
kind);
|
||||
nvgpu_vm_find_mapped_buf_reverse(vm,
|
||||
os_buf->dmabuf,
|
||||
kind);
|
||||
if (!mapped_buffer)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user