Skip to contentSkip to conversation

x86: make early_console static in early_printk.c

PATCH Applied Harvey Harrison 2 participants 2 messages Feb 1, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: make early_console static in early_printk.c

Not necessary to expose it, also fixes sparse warning.

arch/x86/kernel/early_printk.c:196:16: warning: symbol 'early_console' was not declared. Should it be static?

---
 arch/x86/kernel/early_printk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/early_printk.c +1 -1
index b7d6c23..cff84cd 100644
@@ -193,7 +193,7 @@ static struct console simnow_console = {
 };
 
 /* Direct interface for emergencies */
-struct console *early_console = &early_vga_console;
+static struct console *early_console = &early_vga_console;
 static int early_console_initialized = 0;
 
 void early_printk(const char *fmt, ...)
Signature · 1 line
1.5.4.rc4.1142.gf5a97
Applied
#1 lore raw

arch/x86/kernel/early_printk.c static struct console simnow_console = { · line 196

Quoted 3 lines · Harvey Harrison

/* Direct interface for emergencies */

arch/x86/kernel/early_printk.c +1 -1
-struct console *early_console = &early_vga_console;
+static struct console *early_console = &early_vga_console;

thanks, applied.

Ingo