From c35bb26ebd5cc70f3424abe278d6d505cd316cf9 Mon Sep 17 00:00:00 2001 From: Krzysztof Chruscinski Date: Thu, 14 Feb 2019 14:41:00 +0100 Subject: [PATCH] shell: Making root command a global variable By making it global we ensure that there will not be the same root commands. Signed-off-by: Krzysztof Chruscinski --- include/shell/shell.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/shell/shell.h b/include/shell/shell.h index 54787179df2..17d21b8bcec 100644 --- a/include/shell/shell.h +++ b/include/shell/shell.h @@ -143,7 +143,7 @@ struct shell_static_entry { #define SHELL_CMD_REGISTER(syntax, subcmd, help, handler) \ static const struct shell_static_entry UTIL_CAT(_shell_, syntax) = \ SHELL_CMD(syntax, subcmd, help, handler); \ - static const struct shell_cmd_entry UTIL_CAT(shell_cmd_, syntax) \ + const struct shell_cmd_entry UTIL_CAT(shell_cmd_, syntax) \ __attribute__ ((section("." \ STRINGIFY(UTIL_CAT(shell_root_cmd_, syntax))))) \ __attribute__((used)) = { \