PATCH powerpc: Merge asm-ppc*/sections.h

Arnd Bergmann arnd at arndb.de
Wed Sep 14 12:35:21 EST 2005


On Dinsdag 13 September 2005 22:43, Jon Loeliger wrote:
> Here is a patch to merge asm-ppc*/sections.h.
> 
> If anyone knows if we can do better here,
> please feel free to abuse, er, let me know!

Ok, I don't like this patch. IMHO for the architecture merge, we should
have a common implementation of this, either always using per-platform
sections or never using them, meaning that we get rid of this file.

At the very least, the __*func() macros should go away, they are completely
bogus.

Using the sections in arch/powerpc has the obvious advantage that it
reduces the size of the running kernel, but also has a certain amount
of bug-potential or at least makes the code slightly more ugly.
It is also easier to remove the feature in ppc than adding it in ppc64.

The users of the ppc64 function in_kernel_text() can probably be converted
to the generic is_kernel_text() function.

	Arnd <><



More information about the Linuxppc-dev mailing list