]> err.no Git - linux-2.6/commitdiff
x86: fix Section mismatch: reference to .init.text:lguest_entry
authorSam Ravnborg <sam@ravnborg.org>
Wed, 30 Jan 2008 12:33:28 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:28 +0000 (13:33 +0100)
fix:

> WARNING: vmlinux.o(.data+0x4): Section mismatch: reference to .init.text:lguest_entry (between 'subarch_entries' and 'stack_start')

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/head_32.S

index a2b6331434dab960dcf895a214a4fad063a66d71..5d8c5730686b1e12eab12798d0ed07ae0f4aafa0 100644 (file)
@@ -9,6 +9,7 @@
 
 .text
 #include <linux/threads.h>
+#include <linux/init.h>
 #include <linux/linkage.h>
 #include <asm/segment.h>
 #include <asm/page.h>
@@ -151,7 +152,9 @@ WEAK(xen_entry)
        /* Unknown implementation; there's really
           nothing we can do at this point. */
        ud2a
-.data
+
+       __INITDATA
+
 subarch_entries:
        .long default_entry             /* normal x86/PC */
        .long lguest_entry              /* lguest hypervisor */