diff --git a/drivers/gpu/nvgpu/common/mm/allocators/bitmap_allocator.c b/drivers/gpu/nvgpu/common/mm/allocators/bitmap_allocator.c index 79c362247..a333bcf68 100644 --- a/drivers/gpu/nvgpu/common/mm/allocators/bitmap_allocator.c +++ b/drivers/gpu/nvgpu/common/mm/allocators/bitmap_allocator.c @@ -381,7 +381,9 @@ static void nvgpu_bitmap_print_stats(struct nvgpu_allocator *na, } #endif +NVGPU_COV_WHITELIST_BLOCK_BEGIN(false_positive, 1, NVGPU_MISRA(Rule, 8_7), "Bug 2823817") static const struct nvgpu_allocator_ops bitmap_ops = { +NVGPU_COV_WHITELIST_BLOCK_END(NVGPU_MISRA(Rule, 8_7)) .alloc = nvgpu_bitmap_balloc, .free_alloc = nvgpu_bitmap_free, diff --git a/drivers/gpu/nvgpu/common/mm/allocators/buddy_allocator.c b/drivers/gpu/nvgpu/common/mm/allocators/buddy_allocator.c index 89f3a1851..25d2a6782 100644 --- a/drivers/gpu/nvgpu/common/mm/allocators/buddy_allocator.c +++ b/drivers/gpu/nvgpu/common/mm/allocators/buddy_allocator.c @@ -1326,7 +1326,9 @@ static void nvgpu_buddy_print_stats(struct nvgpu_allocator *na, } #endif +NVGPU_COV_WHITELIST_BLOCK_BEGIN(false_positive, 1, NVGPU_MISRA(Rule, 8_7), "Bug 2823817") static const struct nvgpu_allocator_ops buddy_ops = { +NVGPU_COV_WHITELIST_BLOCK_END(NVGPU_MISRA(Rule, 8_7)) .alloc = nvgpu_buddy_balloc, .alloc_pte = nvgpu_buddy_balloc_pte, .free_alloc = nvgpu_buddy_bfree, diff --git a/drivers/gpu/nvgpu/common/mm/nvgpu_mem.c b/drivers/gpu/nvgpu/common/mm/nvgpu_mem.c index ece53ad89..a3e3d6d27 100644 --- a/drivers/gpu/nvgpu/common/mm/nvgpu_mem.c +++ b/drivers/gpu/nvgpu/common/mm/nvgpu_mem.c @@ -364,7 +364,9 @@ static void nvgpu_mem_phys_sgt_free(struct gk20a *g, struct nvgpu_sgt *sgt) */ } +NVGPU_COV_WHITELIST_BLOCK_BEGIN(false_positive, 1, NVGPU_MISRA(Rule, 8_7), "Bug 2823817") static const struct nvgpu_sgt_ops nvgpu_mem_phys_ops = { +NVGPU_COV_WHITELIST_BLOCK_END(NVGPU_MISRA(Rule, 8_7)) .sgl_next = nvgpu_mem_phys_sgl_next, .sgl_dma = nvgpu_mem_phys_sgl_dma, .sgl_phys = nvgpu_mem_phys_sgl_phys, diff --git a/drivers/gpu/nvgpu/hal/init/hal_gv11b.c b/drivers/gpu/nvgpu/hal/init/hal_gv11b.c index 83bd7f760..e7cd75887 100644 --- a/drivers/gpu/nvgpu/hal/init/hal_gv11b.c +++ b/drivers/gpu/nvgpu/hal/init/hal_gv11b.c @@ -225,7 +225,9 @@ static int gv11b_init_gpu_characteristics(struct gk20a *g) return 0; } +NVGPU_COV_WHITELIST_BLOCK_BEGIN(false_positive, 1, NVGPU_MISRA(Rule, 8_7), "Bug 2823817") static const struct gpu_ops gv11b_ops = { +NVGPU_COV_WHITELIST_BLOCK_END(NVGPU_MISRA(Rule, 8_7)) .acr = { .acr_init = nvgpu_acr_init, .acr_construct_execute = nvgpu_acr_construct_execute,