mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
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:
committed by
Abdul Salam
parent
7a7666a8dd
commit
ea0a0c8485
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user