diff --git a/drivers/console/multi_console.c b/drivers/console/multi_console.c index e3fb749ba..93c38d849 100644 --- a/drivers/console/multi_console.c +++ b/drivers/console/multi_console.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2018-2023, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -11,7 +11,7 @@ #include console_t *console_list; -uint8_t console_state = CONSOLE_FLAG_BOOT; +static uint8_t console_state = CONSOLE_FLAG_BOOT; IMPORT_SYM(console_t *, __STACKS_START__, stacks_start) IMPORT_SYM(console_t *, __STACKS_END__, stacks_end) diff --git a/include/drivers/console.h b/include/drivers/console.h index 99bf96041..f499571f7 100644 --- a/include/drivers/console.h +++ b/include/drivers/console.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2013-2023, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -48,6 +48,8 @@ typedef struct console { /* Additional private driver data may follow here. */ } console_t; +extern console_t *console_list; + /* offset macro assertions for console_t */ #include