memory_region: add static/const for read only instance

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an 2024-10-15 12:01:09 +08:00 committed by Xiang Xiao
parent d49db03e04
commit 91cb625f9d
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@
#define BUFSIZE CONFIG_LIB_GDBSTUB_PKTSIZE #define BUFSIZE CONFIG_LIB_GDBSTUB_PKTSIZE
#ifdef CONFIG_BOARD_MEMORY_RANGE #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 CONFIG_BOARD_MEMORY_RANGE
}; };