From: Andrew Morton <akpm@linux-foundation.org>
To: Satyam Sharma <satyam@infradead.org>,
Sam Ravnborg <sam@ravnborg.org>,
Randy Dunlap <randy.dunlap@oracle.com>,
wbrana@gmail.com,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH][bugzilla #8679] therm_throt.c: Fix section mismatch
Date: Mon, 20 Aug 2007 22:08:47 -0700 [thread overview]
Message-ID: <20070820220847.014d30ae.akpm@linux-foundation.org> (raw)
In-Reply-To: <20070820220328.438e8a4d.akpm@linux-foundation.org>
On Mon, 20 Aug 2007 22:03:28 -0700 Andrew Morton <akpm@linux-foundation.org> wrote:
> register_hotcpu_notifier() is cunning. If CONFIG_HOTPLUG_CPU=y, we need
> the notifier block and the function to which it points to be in .data and
> in .text. If CONFIG_HOTPLUG_CPU=n, we don't need them to be present at all.
>
> So what we can do is to just leave the notifier block in .data and the
> function in .text and then the compiler/linker will notice that nothing
> references them and they will be omitted at build time.
As long as the notifier block and the function are static. I don't think
the toolchain is smart enough to remove them if they have global scope,
but I didn't check this..
next prev parent reply other threads:[~2007-08-21 5:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-21 4:37 [PATCH][bugzilla #8679] therm_throt.c: Fix section mismatch Satyam Sharma
2007-08-21 5:03 ` Andrew Morton
2007-08-21 5:08 ` Andrew Morton [this message]
2007-08-22 21:00 ` Satyam Sharma
2007-08-22 21:58 ` Satyam Sharma
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=20070820220847.014d30ae.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
--cc=sam@ravnborg.org \
--cc=satyam@infradead.org \
--cc=wbrana@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.