[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070820220847.014d30ae.akpm@linux-foundation.org>
Date: Mon, 20 Aug 2007 22:08:47 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Satyam Sharma <satyam@...radead.org>,
Sam Ravnborg <sam@...nborg.org>,
Randy Dunlap <randy.dunlap@...cle.com>, wbrana@...il.com,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH][bugzilla #8679] therm_throt.c: Fix section mismatch
On Mon, 20 Aug 2007 22:03:28 -0700 Andrew Morton <akpm@...ux-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..
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists