Skip to contentSkip to conversation

i386/x86_64 early_printk.c: make two variables static

PATCH New Adrian Bunk 1 participant 1 message Jan 16, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386/x86_64 early_printk.c: make two variables static

The patch below makes two needlessly global variables static.

arch/x86_64/kernel/early_printk.c renamed from arch/x86_64/kernel/early_printk.c.old +2 -2
@@ -60,7 +60,7 @@
 
 /* Serial functions loosely based on a similar package from Klaus P. Gerlicher */ 
 
-int early_serial_base = 0x3f8;  /* ttyS0 */ 
+static int early_serial_base = 0x3f8;  /* ttyS0 */ 
 
 #define XMTRDY          0x20
 
@@ -155,7 +155,7 @@
 };
 
 /* 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, ...)