From 91cb625f9d318c86310c8e43b0a958b3390e42f0 Mon Sep 17 00:00:00 2001 From: chao an Date: Tue, 15 Oct 2024 12:01:09 +0800 Subject: [PATCH] memory_region: add static/const for read only instance Signed-off-by: chao an --- libs/libc/gdbstub/lib_gdbstub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/gdbstub/lib_gdbstub.c b/libs/libc/gdbstub/lib_gdbstub.c index 032fe55654..6204fffd01 100644 --- a/libs/libc/gdbstub/lib_gdbstub.c +++ b/libs/libc/gdbstub/lib_gdbstub.c @@ -53,7 +53,7 @@ #define BUFSIZE CONFIG_LIB_GDBSTUB_PKTSIZE #ifdef CONFIG_BOARD_MEMORY_RANGE -FAR const struct memory_region_s g_memory_region[] = +static const struct memory_region_s g_memory_region[] = { CONFIG_BOARD_MEMORY_RANGE };