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 <rrangel@chromium.org> Change-Id: I9a7895d4f5cba59f6b05915fa4d6c6fd6ab85773 Reviewed-on: https://review.coreboot.org/c/coreboot/+/57568 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
6397e0ee41
commit
e74b0b6a5e
|
@ -45,7 +45,7 @@ int console_log_level(int msg_level)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
asmlinkage void console_init(void)
|
void console_init(void)
|
||||||
{
|
{
|
||||||
init_log_level();
|
init_log_level();
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
#ifndef CONSOLE_CONSOLE_H_
|
#ifndef CONSOLE_CONSOLE_H_
|
||||||
#define CONSOLE_CONSOLE_H_
|
#define CONSOLE_CONSOLE_H_
|
||||||
|
|
||||||
#include <arch/cpu.h>
|
|
||||||
#include <commonlib/console/post_codes.h>
|
#include <commonlib/console/post_codes.h>
|
||||||
#include <console/vtxprintf.h>
|
#include <console/vtxprintf.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -48,7 +47,7 @@ static inline int get_console_loglevel(void)
|
||||||
ENV_LIBAGESA || (ENV_SMM && CONFIG(DEBUG_SMI)))
|
ENV_LIBAGESA || (ENV_SMM && CONFIG(DEBUG_SMI)))
|
||||||
|
|
||||||
#if __CONSOLE_ENABLE__
|
#if __CONSOLE_ENABLE__
|
||||||
asmlinkage void console_init(void);
|
void console_init(void);
|
||||||
int console_log_level(int msg_level);
|
int console_log_level(int msg_level);
|
||||||
|
|
||||||
int printk(int msg_level, const char *fmt, ...) __attribute__((format(printf, 2, 3)));
|
int printk(int msg_level, const char *fmt, ...) __attribute__((format(printf, 2, 3)));
|
||||||
|
|
Loading…
Reference in New Issue