[PATCH 10/42] console: sparse fixes
Sascha Hauer
s.hauer at pengutronix.de
Tue Oct 19 08:54:58 EDT 2010
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
common/console.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/common/console.c b/common/console.c
index 204a08c..3a1b451 100644
--- a/common/console.c
+++ b/common/console.c
@@ -120,7 +120,7 @@ static int console_baudrate_set(struct device_d *dev, struct param_d *param,
static struct kfifo *console_input_buffer;
static struct kfifo *console_output_buffer;
-int getc_buffer_flush(void)
+static int getc_buffer_flush(void)
{
console_input_buffer = kfifo_alloc(1024);
console_output_buffer = kfifo_alloc(1024);
@@ -247,7 +247,9 @@ int tstc(void)
}
EXPORT_SYMBOL(tstc);
-void __early_initdata *early_console_base;
+#ifdef CONFIG_HAS_EARLY_INIT
+static void __early_initdata *early_console_base;
+#endif
void console_putc(unsigned int ch, char c)
{
--
1.7.2.3
More information about the barebox
mailing list