From ab0bcaf732a5b0afd70f19ae58eb1c89bbf9209f Mon Sep 17 00:00:00 2001 From: Jakub Czapiga Date: Mon, 14 Jun 2021 09:32:11 +0200 Subject: src/console/init.c: Make get_log_level static inline again CB:55356 removed static inline declarations from get_log_level(). This commit puts them back. It also changes the method of accessing static symbols in tests/console/routing-test to source file inclusion like in CB:46458 to avoid changing tested source file. Signed-off-by: Jakub Czapiga Change-Id: Iaa5dcbccb327f819374967be51ef642b1fb25e7b Reviewed-on: https://review.coreboot.org/c/coreboot/+/55473 Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) --- src/console/init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/console/init.c b/src/console/init.c index 6fa48498a8..a2ceb58018 100644 --- a/src/console/init.c +++ b/src/console/init.c @@ -13,8 +13,7 @@ static int console_inited; static int console_loglevel; -int get_log_level(void); -int get_log_level(void) +static inline int get_log_level(void) { if (console_inited == 0) return -1; -- cgit v1.2.3