gpu: nvgpu: Fix all MISRA 17.7 violations in mm

MISRA Rule-17.7 requires the return value of all functions to be used.
Fix is either to use the return value or change the function to return
void. This patch contains fix for all 17.7 violations in MM code.

JIRA NVGPU-677

Change-Id: Iafcbe99050ba79e571107ccf9d2a89bbeb6239b1
Signed-off-by: Nicolas Benech <nbenech@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1847890
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@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:
Nicolas Benech
2018-09-26 12:19:06 -04:00
committed by Abdul Salam
parent 7a7666a8dd
commit ea0a0c8485
9 changed files with 41 additions and 25 deletions

View File

@@ -275,7 +275,8 @@ static void nvgpu_bitmap_free(struct nvgpu_allocator *na, u64 addr)
alloc_lock(na);
if (a->flags & GPU_ALLOC_NO_ALLOC_PAGE) {
WARN(1, "Using wrong free for NO_ALLOC_PAGE bitmap allocator");
(void) WARN(1,
"Using wrong free for NO_ALLOC_PAGE bitmap allocator");
goto done;
}