From: "Jan Beulich" <jbeulich@novell.com>
To: "Sam Ravnborg" <sam@ravnborg.org>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] initconst adjustments
Date: Fri, 13 Mar 2009 08:03:07 +0000 [thread overview]
Message-ID: <49BA214B.76E4.0078.0@novell.com> (raw)
In-Reply-To: <20090312221747.GA14921@uranus.ravnborg.org>
>>> Sam Ravnborg <sam@ravnborg.org> 12.03.09 23:17 >>>
>On Thu, Mar 12, 2009 at 10:58:33AM +0000, Jan Beulich wrote:
>> +#define INIT_SECTIONS ".init.*"
>> +#define DEV_INIT_SECTIONS ".devinit.*"
>> +#define CPU_INIT_SECTIONS ".cpuinit.*"
>> +#define MEM_INIT_SECTIONS ".meminit.*"
>> +
>> +#define EXIT_SECTIONS ".exit.*"
>> +#define DEV_EXIT_SECTIONS ".devexit.*"
>> +#define CPU_EXIT_SECTIONS ".cpuexit.*"
>> +#define MEM_EXIT_SECTIONS ".memexit.*"
>
>The abvoe simplification now makes us math all sections that starts with
>for example .init. - and we have seen sections named .init.1 for example.
But that exactly is intended: Anything named .init.* should be what its
name says - init-only code or data. Even (if it was used anywhere) .init
itself should be this and nothing else. Any other use of such a name is
really broken imo.
>So I'm afraid that we will simply match too many sections here on the various
>architectures.
>
>
>A quick grep showed for example:
>arch/blackfin/kernel/vmlinux.lds.S: .init.setup :
>arch/blackfin/kernel/vmlinux.lds.S: *(.init.setup)
>arch/blackfin/kernel/vmlinux.lds.S: .init.ramfs :
>arch/blackfin/kernel/vmlinux.lds.S: *(.init.ramfs)
Which is precisely a case that we want to cover: These two sections are
init-only data (and site between ___init_begin and ___init_end, and hence
ought to be subject of the modpost checking.
Jan
next prev parent reply other threads:[~2009-03-13 8:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-12 10:58 [PATCH] initconst adjustments Jan Beulich
2009-03-12 22:17 ` Sam Ravnborg
2009-03-13 8:03 ` Jan Beulich [this message]
2009-05-01 12:09 ` Sam Ravnborg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49BA214B.76E4.0078.0@novell.com \
--to=jbeulich@novell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox