Hi Jan. On Fri, Jan 11, 2008 at 08:55:29AM +0000, Jan Beulich wrote:How about a slightly diffrent approach... Consider __cpuinitconst => function is placed in section .init.const.text __devinitconst => function is placed in section .init.const.text Then we in the linker scrip can distingush between the two and locate the sections as appropriate. This will require some updates to modpost but are align with an idea I have had for a while. All of the following should have dedicated sections associated unconditionally: __init __cpuinit __meminit __initdata __cpuinitdata __meminitdata And then in the linker script we decide what to do with the section. In the built-in case we put them in the "to-be-discarded" section. In the module case we put them as today. The primary tasks needed to accomplish this is: 1) Update all arch linker scripts (and some of them looks ugly) 2) Teach modpost about the new sections If you following the suggestion above this is a simple step in this direction which would be good. Comments? Sam --
| Linus Torvalds | Linux 2.6.27-rc5 |
| Greg KH | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Trent Piepho | Re: [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
git: | |
| Christoph Hellwig | Re: [PATCH 06/32] IGET: Mark iget() and read_inode() as being obsolete [try #2] |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
