Quellcode durchsuchen

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?

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Harvey Harrison vor 17 Jahren
Ursprung
Commit
bb0e129087
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      arch/x86/kernel/early_printk.c

+ 1 - 1
arch/x86/kernel/early_printk.c

@@ -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, ...)