From 30c676134eb8f956853a55023d694062062d40d7 Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Mon, 29 Mar 2021 23:59:49 -0700 Subject: [PATCH] target/xtensa: make xtensa_modules static on import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xtensa_modules variable defined in each xtensa-modules.c.inc is only used locally by the including file. Make it static. Reported-by: Yury Gribov Signed-off-by: Max Filippov Reviewed-by: Philippe Mathieu-Daudé --- target/xtensa/import_core.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/target/xtensa/import_core.sh b/target/xtensa/import_core.sh index 1120a4a2a5..396b264be9 100755 --- a/target/xtensa/import_core.sh +++ b/target/xtensa/import_core.sh @@ -35,6 +35,7 @@ tar -xf "$OVERLAY" -O binutils/xtensa-modules.c | \ -e '/^#include "ansidecl.h"/d' \ -e '/^Slot_[a-zA-Z0-9_]\+_decode (const xtensa_insnbuf insn)/,/^}/s/^ return 0;$/ return XTENSA_UNDEFINED;/' \ -e 's/#include /#include "xtensa-isa.h"/' \ + -e 's/^\(xtensa_isa_internal xtensa_modules\)/static \1/' \ > "$TARGET"/xtensa-modules.c.inc cat < "${TARGET}.c"