From e74b0b6a5e30cb940029dd9bb732485d3c139189 Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Fri, 10 Sep 2021 16:29:23 -0600 Subject: console: Remove asmlinkage from console_init We never call console_init from asm, so we don't need the asmlinkage. This allows us to remove the arch/cpu.h include since we only needed it for the asmlinkage #define. BUG=b:179699789 TEST=build guybrush Signed-off-by: Raul E Rangel Change-Id: I9a7895d4f5cba59f6b05915fa4d6c6fd6ab85773 Reviewed-on: https://review.coreboot.org/c/coreboot/+/57568 Reviewed-by: Felix Held Tested-by: build bot (Jenkins) --- src/console/init.c | 2 +- src/include/console/console.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/console/init.c b/src/console/init.c index a2ceb58018..4427d681e2 100644 --- a/src/console/init.c +++ b/src/console/init.c @@ -45,7 +45,7 @@ int console_log_level(int msg_level) return 0; } -asmlinkage void console_init(void) +void console_init(void) { init_log_level(); diff --git a/src/include/console/console.h b/src/include/console/console.h index 8b88a013fd..8849df363c 100644 --- a/src/include/console/console.h +++ b/src/include/console/console.h @@ -3,7 +3,6 @@ #ifndef CONSOLE_CONSOLE_H_ #define CONSOLE_CONSOLE_H_ -#include #include #include #include @@ -48,7 +47,7 @@ static inline int get_console_loglevel(void) ENV_LIBAGESA || (ENV_SMM && CONFIG(DEBUG_SMI))) #if __CONSOLE_ENABLE__ -asmlinkage void console_init(void); +void console_init(void); int console_log_level(int msg_level); int printk(int msg_level, const char *fmt, ...) __attribute__((format(printf, 2, 3))); -- cgit v1.2.3