All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i386: fix section mismatches for init code with !HOTPLUG_CPU
@ 2009-08-18 15:41 Jan Beulich
  2009-08-18 16:51 ` [tip:x86/urgent] i386: Fix " tip-bot for Jan Beulich
  2009-08-18 17:57 ` [PATCH] i386: fix " Robert Richter
  0 siblings, 2 replies; 4+ messages in thread
From: Jan Beulich @ 2009-08-18 15:41 UTC (permalink / raw)
  To: mingo, tglx, hpa; +Cc: robert.richter, linux-kernel

Commit 0e83815be719d3391bf5ea24b7fe696c07dbd417 changed the section the
initial_code variable gets allocated in, in an attempt to address a
section conflict warning. This, however created a new section conflict
when building without HOTPLUG_CPU. The apparently only (reasonable) way
to address this is to always use __REFDATA.

Once at it, also fix a second section mismatch when not using
HOTPLUG_CPU.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: Robert Richter <robert.richter@amd.com>

---
 arch/x86/kernel/head_32.S |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

--- linux-2.6.31-rc6/arch/x86/kernel/head_32.S	2009-08-18 15:31:16.000000000 +0200
+++ 2.6.31-rc6-i386-head-sections/arch/x86/kernel/head_32.S	2009-08-18 10:38:31.000000000 +0200
@@ -261,9 +261,7 @@ page_pde_offset = (__PAGE_OFFSET >> 20);
  * which will be freed later
  */
 
-#ifndef CONFIG_HOTPLUG_CPU
-.section .init.text,"ax",@progbits
-#endif
+__CPUINIT
 
 #ifdef CONFIG_SMP
 ENTRY(startup_32_smp)
@@ -602,11 +600,7 @@ ignore_int:
 #endif
 	iret
 
-#ifndef CONFIG_HOTPLUG_CPU
-	__CPUINITDATA
-#else
 	__REFDATA
-#endif
 .align 4
 ENTRY(initial_code)
 	.long i386_start_kernel




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-19  6:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-18 15:41 [PATCH] i386: fix section mismatches for init code with !HOTPLUG_CPU Jan Beulich
2009-08-18 16:51 ` [tip:x86/urgent] i386: Fix " tip-bot for Jan Beulich
2009-08-18 17:57 ` [PATCH] i386: fix " Robert Richter
2009-08-19  6:28   ` [PATCH] i386: fix section mismatches for init code with!HOTPLUG_CPU Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.