From 161c1da520cbd70275a1017eced88d9f065609c8 Mon Sep 17 00:00:00 2001 From: Jeremy Bettis Date: Mon, 8 Jul 2024 11:51:30 -0600 Subject: [PATCH] CHROUMIUM: Add #line to shell.c Work around coreboot GCC preprocessor bug. BUG=b:272518464 TEST=BOARD=myst; zmake build -c $BOARD && ./util/find_non_exec_lines.py build/zephyr/$BOARD/output/zephyr.info Change-Id: Iac0e47b278fb3a323e06c08ab443ffd4ee0223b8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5684208 Auto-Submit: Jeremy Bettis Tested-by: Jeremy Bettis Reviewed-by: Tristan Honscheid Commit-Queue: Jeremy Bettis --- subsys/shell/shell.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subsys/shell/shell.c b/subsys/shell/shell.c index 5f195d3ae3c..bc4e81fd772 100644 --- a/subsys/shell/shell.c +++ b/subsys/shell/shell.c @@ -23,6 +23,7 @@ #include "shell_vt100.h" #include "shell_wildcard.h" +#line 27 /* 2 == 1 char for cmd + 1 char for '\0' */ #if (CONFIG_SHELL_CMD_BUFF_SIZE < 2) #error too small CONFIG_SHELL_CMD_BUFF_SIZE