From e358089d8382e4239a4b606b0e97cf5475da4976 Mon Sep 17 00:00:00 2001 From: Nithin G Date: Fri, 19 Apr 2024 17:53:01 +0530 Subject: [PATCH] fix(bl31): add const qualifier This corrects the MISRA violation C2012-8.13: A pointer should point to a const-qualified type whenever possible. Added const qualifier to pointer in the function arguments. Change-Id: Ia323a2b2946d61a639696e2559f88e376beda861 Signed-off-by: Nithin G Signed-off-by: Maheedhar Bollapalli --- bl31/bl31_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bl31/bl31_main.c b/bl31/bl31_main.c index db0ea6cb1..0cd0c7958 100644 --- a/bl31/bl31_main.c +++ b/bl31/bl31_main.c @@ -255,7 +255,7 @@ uint32_t bl31_get_next_image_type(void) ******************************************************************************/ void __init bl31_prepare_next_image_entry(void) { - entry_point_info_t *next_image_info; + const entry_point_info_t *next_image_info; uint32_t image_type; #if CTX_INCLUDE_AARCH32_REGS