From 8f25fe41e2efc56e651710ffefce43963304709c Mon Sep 17 00:00:00 2001 From: Philip Elcan Date: Mon, 10 Jun 2019 15:46:36 -0400 Subject: [PATCH] gpu: nvgpu: mm: fix CERT-C STR30 violation in mmu_fault Fix CERT-C Rule STR30 violation for assigning string literal to non-const pointer by changing the declaration. JIRA NVGPU-3628 Change-Id: I804cf2e02c40b934a1575faa68a0cc3849927699 Signed-off-by: Philip Elcan Reviewed-on: https://git-master.nvidia.com/r/2133798 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/hal/mm/mmu_fault/mmu_fault_gv11b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/hal/mm/mmu_fault/mmu_fault_gv11b.c b/drivers/gpu/nvgpu/hal/mm/mmu_fault/mmu_fault_gv11b.c index faef0485f..a8d2c2637 100644 --- a/drivers/gpu/nvgpu/hal/mm/mmu_fault/mmu_fault_gv11b.c +++ b/drivers/gpu/nvgpu/hal/mm/mmu_fault/mmu_fault_gv11b.c @@ -51,7 +51,7 @@ static int gv11b_fb_fix_page_fault(struct gk20a *g, struct mmu_fault_info *mmufault); #endif -static const char * const invalid_str = "invalid"; +static const char invalid_str[] = "invalid"; static const char *const gv11b_fault_type_descs[] = { "invalid pde",