public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Please revert 86c0baf123e474b6eb404798926ecf62b426bf3a
@ 2007-05-08 13:49 Russell King
  2007-05-08 14:07 ` Prarit Bhargava
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Russell King @ 2007-05-08 13:49 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton, Linux Kernel List, Prarit Bhargava,
	Andi Kleen

The change:

+#ifdef CONFIG_HOTPLUG_CPU
+#define __INIT		.section	".text","ax"
+#define __INITDATA	.section	".data","aw"
+#else
 #define __INIT		.section	".init.text","ax"
-#define __FINIT		.previous
 #define __INITDATA	.section	".init.data","aw"
+#endif
+#define __FINIT		.previous

breaks ARM, since the ARM startup code moves from the start of the image
to somewhere in the middle of the kernel image.  (That's trivially fixable.)

Besides that, this change is also wrong because not all assembly marked
__INIT needs to be moved into the standard .text segment when hotplug CPU
is enabled.  Ditto for __INITDATA.

One is left wondering why the original patch proposers didn't:

1. Invent __CPUINIT and __CPUINITDATA, to be consistent with __init vs
   __cpuinit.

2. copy other architecture maintainers.

Shall I invent __CPUINIT to mark data to always be thrown away, or are
the x86 folk going to withdraw this patch and do it properly?

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:

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

end of thread, other threads:[~2007-05-13 10:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-08 13:49 Please revert 86c0baf123e474b6eb404798926ecf62b426bf3a Russell King
2007-05-08 14:07 ` Prarit Bhargava
2007-05-08 15:17 ` Linus Torvalds
2007-05-08 15:19   ` Prarit Bhargava
2007-05-08 15:54     ` Russell King
2007-05-08 15:56       ` Prarit Bhargava
2007-05-13 10:56 ` Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox