From 6619b566d56c83a45c65722a5fb51f41e27544de Mon Sep 17 00:00:00 2001 From: Jeremy Bettis Date: Fri, 20 Oct 2023 10:05:51 -0600 Subject: [PATCH] CHROMIUM: Add #line to drivers/console/uart_console.c Work around coreboot GCC preprocessor bug. BUG=b:272518464 TEST=gcc -E drivers/console/uart_console.c Change-Id: Ibe4dddb57f2a5060de741ea6b0ee0e6e9916a541 (cherry picked from commit 8672d4f4dc468615713230a254a7a723743b6cb6) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/4957626 Tested-by: Jeremy Bettis Commit-Queue: Fabio Baltieri Auto-Submit: Jeremy Bettis Reviewed-by: Fabio Baltieri --- drivers/console/uart_console.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/console/uart_console.c b/drivers/console/uart_console.c index 378bbe91ff3..260530e92c1 100644 --- a/drivers/console/uart_console.c +++ b/drivers/console/uart_console.c @@ -13,6 +13,12 @@ * Hooks into the printk and fputc (for printf) modules. Poll driven. */ +/* + * TODO(b/272518464): Work around coreboot GCC preprocessor bug. + * #line marks the *next* line, so it is off by one. + */ +#line 21 + #include #include