diff mbox series

[12/18] console: Make stdio_print_current_devices() static

Message ID 20230723044041.1089804-13-bmeng@tinylab.org
State Accepted
Commit 75bfc6fac5918eba48ddfe608f0a1c6a89d47168
Delegated to: Andes
Headers show
Series video: bochs: Remove the x86 limitation | expand

Commit Message

Bin Meng July 23, 2023, 4:40 a.m. UTC
As it is only called in common/console.c

Signed-off-by: Bin Meng <bmeng@tinylab.org>
---

 common/console.c    | 2 +-
 include/stdio_dev.h | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

Comments

Simon Glass July 23, 2023, 10:58 p.m. UTC | #1
On Sat, 22 Jul 2023 at 22:42, Bin Meng <bmeng@tinylab.org> wrote:
>
> As it is only called in common/console.c
>
> Signed-off-by: Bin Meng <bmeng@tinylab.org>
> ---
>
>  common/console.c    | 2 +-
>  include/stdio_dev.h | 2 --
>  2 files changed, 1 insertion(+), 3 deletions(-)
>

Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>  # qemu-x86_64
diff mbox series

Patch

diff --git a/common/console.c b/common/console.c
index 71ad8efd6f..d0640ba05a 100644
--- a/common/console.c
+++ b/common/console.c
@@ -1010,7 +1010,7 @@  int console_init_f(void)
 	return 0;
 }
 
-void stdio_print_current_devices(void)
+static void stdio_print_current_devices(void)
 {
 	/* Print information */
 	puts("In:    ");
diff --git a/include/stdio_dev.h b/include/stdio_dev.h
index 77bf8a8970..7f18102052 100644
--- a/include/stdio_dev.h
+++ b/include/stdio_dev.h
@@ -84,8 +84,6 @@  int stdio_init_tables(void);
  */
 int stdio_add_devices(void);
 
-void stdio_print_current_devices(void);
-
 /**
  * stdio_deregister_dev() - deregister the device "devname".
  *