Skip to contentSkip to conversation

i386: fix a few paravirt-related modpost warnings

PATCH In review Jan Beulich 2 participants 2 messages Dec 10, 2007 – Dec 11, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386: fix a few paravirt-related modpost warnings

 arch/x86/kernel/head_32.S |    2 +-
 arch/x86/xen/setup.c      |    2 +-
 arch/x86/xen/xen-head.S   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
arch/x86/kernel/head_32.S +1 -1
@@ -151,7 +151,7 @@ WEAK(xen_entry)
 	/* Unknown implementation; there's really
 	   nothing we can do at this point. */
 	ud2a
-.data
+.section .init.data, "aw"
 subarch_entries:
 	.long default_entry		/* normal x86/PC */
 	.long lguest_entry		/* lguest hypervisor */
arch/x86/xen/setup.c +1 -1
@@ -59,7 +59,7 @@ static void xen_idle(void)
 /*
  * Set the bit indicating "nosegneg" library variants should be used.
  */
-static void fiddle_vdso(void)
+static __init void fiddle_vdso(void)
 {
 	extern u32 VDSO_NOTE_MASK; /* See ../kernel/vsyscall-note.S.  */
 	extern char vsyscall_int80_start;
arch/x86/xen/xen-head.S +1 -1
@@ -7,7 +7,7 @@
 #include <asm/boot.h>
 #include <xen/interface/elfnote.h>
 
-.pushsection .init.text
+.pushsection .init.text, "ax"
 ENTRY(startup_xen)
 	movl %esi,xen_start_info
 	cld
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Jan Beulich
Quoted 47 lines
 arch/x86/kernel/head_32.S |    2 +-
 arch/x86/xen/setup.c      |    2 +-
 arch/x86/xen/xen-head.S   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
arch/x86/kernel/head_32.S +1 -1
@@ -151,7 +151,7 @@ WEAK(xen_entry)
 	/* Unknown implementation; there's really
 	   nothing we can do at this point. */
 	ud2a
-.data
+.section .init.data, "aw"
 subarch_entries:
 	.long default_entry		/* normal x86/PC */
 	.long lguest_entry		/* lguest hypervisor */
arch/x86/xen/setup.c +1 -1
@@ -59,7 +59,7 @@ static void xen_idle(void)
 /*
  * Set the bit indicating "nosegneg" library variants should be used.
  */
-static void fiddle_vdso(void)
+static __init void fiddle_vdso(void)
 {
 	extern u32 VDSO_NOTE_MASK; /* See ../kernel/vsyscall-note.S.  */
 	extern char vsyscall_int80_start;
arch/x86/xen/xen-head.S +1 -2
@@ -7,7 +7,7 @@
 #include <asm/boot.h>
 #include <xen/interface/elfnote.h>
 
-.pushsection .init.text
+.pushsection .init.text, "ax"
 ENTRY(startup_xen)
 	movl %esi,xen_start_info
 	cld
 
 
 
--

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/