Thread (21 messages) 21 messages, 6 authors, 2008-01-22

Re: [PATCH] Use separate sections for __dev/__cpu/__mem code/data

From: Greg KH <hidden>
Date: 2008-01-22 21:16:38
Also in: linux-kbuild, lkml

On Sun, Jan 20, 2008 at 09:09:03PM +0100, Sam Ravnborg wrote:
Introducing separate sections for __dev* (HOTPLUG),
__cpu* (HOTPLUG_CPU) and __mem* (MEMORY_HOTPLUG)
allows us to do a much more reliable Section mismatch
check in modpost. We are no longer dependent on the actual
configuration of for example HOTPLUG.

This has the effect that all users see much more
Section mismatch warnings than before because they
were almost all hidden when HOTPLUG was enabled.
The advantage of this is that when building a piece
of code then it is much more likely that the Section
mismatch errors are spotted and the warnings will be
felt less random of nature.

Signed-off-by: Sam Ravnborg <redacted>
Cc: Greg KH <redacted>
Cc: Randy Dunlap <redacted>
Cc: Adrian Bunk <bunk@kernel.org>
I like this a lot.  It makes things much more understandable from a
driver developer's point of view, and would allow us to mark some things
as freeable when we do not run with a CPU hotplug system :)

Feel free to add a:
	Acked-by: Greg Kroah-Hartman [off-list ref]
to the patch, if you want to take it in your tree.

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help