mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +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
@@ -80,7 +80,7 @@ int nvgpu_vm_area_validate_buffer(struct vm_gk20a *vm,
|
||||
/* check that this mapping does not collide with existing
|
||||
* mappings by checking the buffer with the highest GPU VA
|
||||
* that is less than our buffer end */
|
||||
buffer = __nvgpu_vm_find_mapped_buf_less_than(
|
||||
buffer = nvgpu_vm_find_mapped_buf_less_than(
|
||||
vm, map_addr + map_size);
|
||||
if (buffer != NULL && buffer->addr + buffer->size > map_addr) {
|
||||
nvgpu_warn(g, "overlapping buffer map requested");
|
||||
|
||||
Reference in New Issue
Block a user