* [2.6 patch] slub.c:early_kmem_cache_node_alloc() shouldn't be __init
@ 2007-07-10 12:44 Adrian Bunk
2007-07-10 18:33 ` Christoph Lameter
0 siblings, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2007-07-10 12:44 UTC (permalink / raw)
To: Christoph Lameter; +Cc: linux-kernel
This patch fixes the following section mismatch:
<-- snip -->
...
MODPOST vmlinux
WARNING: mm/built-in.o(.text+0x24bd3): Section mismatch: reference to .init.text:early_kmem_cache_node_alloc (between 'init_kmem_cache_nodes' and 'calculate_sizes')
...
<-- snip -->
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
--- linux-2.6.22-rc6-mm1/mm/slub.c.old 2007-07-10 04:31:32.000000000 +0200
+++ linux-2.6.22-rc6-mm1/mm/slub.c 2007-07-10 04:31:52.000000000 +0200
@@ -1882,8 +1882,8 @@
* Note that this function only works on the kmalloc_node_cache
* when allocating for the kmalloc_node_cache.
*/
-static struct kmem_cache_node * __init early_kmem_cache_node_alloc(gfp_t gfpflags,
- int node)
+static struct kmem_cache_node *early_kmem_cache_node_alloc(gfp_t gfpflags,
+ int node)
{
struct page *page;
struct kmem_cache_node *n;
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [2.6 patch] slub.c:early_kmem_cache_node_alloc() shouldn't be __init
2007-07-10 12:44 [2.6 patch] slub.c:early_kmem_cache_node_alloc() shouldn't be __init Adrian Bunk
@ 2007-07-10 18:33 ` Christoph Lameter
2007-07-10 19:01 ` Adrian Bunk
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Lameter @ 2007-07-10 18:33 UTC (permalink / raw)
To: Adrian Bunk; +Cc: linux-kernel
On Tue, 10 Jul 2007, Adrian Bunk wrote:
> This patch fixes the following section mismatch:
Nack.
Can you remove the warning? early_kmem_cache_node_alloc is only used
during bootstrap. But it is called from a function that is also used
later.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [2.6 patch] slub.c:early_kmem_cache_node_alloc() shouldn't be __init
2007-07-10 18:33 ` Christoph Lameter
@ 2007-07-10 19:01 ` Adrian Bunk
2007-07-10 19:43 ` Christoph Lameter
0 siblings, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2007-07-10 19:01 UTC (permalink / raw)
To: Christoph Lameter; +Cc: linux-kernel
On Tue, Jul 10, 2007 at 11:33:15AM -0700, Christoph Lameter wrote:
> On Tue, 10 Jul 2007, Adrian Bunk wrote:
>
> > This patch fixes the following section mismatch:
>
> Nack.
>
> Can you remove the warning? early_kmem_cache_node_alloc is only used
> during bootstrap. But it is called from a function that is also used
> later.
The alternative is "noinline __init_refok" - the noinline is required
because modern gcc versions already make it non-__init by inlining it
into init_kmem_cache_nodes() without.
But I'm not convinced it's really worth manually forcing noinline only
for moving a few bytes to __init in the CONFIG_NUMA=y case - in the
long term this will only bit rot.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [2.6 patch] slub.c:early_kmem_cache_node_alloc() shouldn't be __init
2007-07-10 19:01 ` Adrian Bunk
@ 2007-07-10 19:43 ` Christoph Lameter
0 siblings, 0 replies; 4+ messages in thread
From: Christoph Lameter @ 2007-07-10 19:43 UTC (permalink / raw)
To: Adrian Bunk; +Cc: linux-kernel
On Tue, 10 Jul 2007, Adrian Bunk wrote:
> But I'm not convinced it's really worth manually forcing noinline only
> for moving a few bytes to __init in the CONFIG_NUMA=y case - in the
> long term this will only bit rot.
Allright then
Acked-by: Christoph Lameter <clameter@sgi.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-07-10 19:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-10 12:44 [2.6 patch] slub.c:early_kmem_cache_node_alloc() shouldn't be __init Adrian Bunk
2007-07-10 18:33 ` Christoph Lameter
2007-07-10 19:01 ` Adrian Bunk
2007-07-10 19:43 ` Christoph Lameter
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.