lkml.org 
[lkml]   [2008]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] x86: init annotations in early_printk() setup
Signed-off-by: Jan Beulich <jbeulich@novell.com>

---
arch/x86/kernel/early_printk.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-2.6.27-rc5/arch/x86/kernel/early_printk.c 2008-08-21 14:37:29.000000000 +0200
+++ 2.6.27-rc5-x86-early-printk-init/arch/x86/kernel/early_printk.c 2008-08-22 15:24:33.000000000 +0200
@@ -111,7 +111,7 @@ static __init void early_serial_init(cha
if (!strncmp(s, "0x", 2)) {
early_serial_base = simple_strtoul(s, &e, 16);
} else {
- static int bases[] = { 0x3f8, 0x2f8 };
+ static const int __initconst bases[] = { 0x3f8, 0x2f8 };

if (!strncmp(s, "ttyS", 4))
s += 4;
@@ -194,7 +194,7 @@ static struct console simnow_console = {

/* Direct interface for emergencies */
static struct console *early_console = &early_vga_console;
-static int early_console_initialized;
+static int __initdata early_console_initialized;

asmlinkage void early_printk(const char *fmt, ...)
{




\
 
 \ /
  Last update: 2008-08-29 13:51    [W:0.036 / U:0.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site