2008-01-30 20:10:20

by Adrian Bunk

[permalink] [raw]
Subject: [2.6 patch] powerpc: free_property() mustn't be __init

This patch fixes the following section mismatch:

<-- snip -->

...
WARNING: vmlinux.o(.text+0x55648): Section mismatch in reference from the function .free_node() to the function .init.text:.free_property()
...

<-- snip -->

Signed-off-by: Adrian Bunk <[email protected]>

---
99e9b48d8f5aba059916540fc69815db2b60b08d
diff --git a/arch/powerpc/platforms/iseries/vio.c b/arch/powerpc/platforms/iseries/vio.c
index be06cfd..657b72f 100644
--- a/arch/powerpc/platforms/iseries/vio.c
+++ b/arch/powerpc/platforms/iseries/vio.c
@@ -75,7 +75,7 @@ static struct property *new_property(const char *name, int length,
return np;
}

-static void __init free_property(struct property *np)
+static void free_property(struct property *np)
{
kfree(np);
}


2008-02-04 15:10:31

by Stephen Rothwell

[permalink] [raw]
Subject: Re: [2.6 patch] powerpc: free_property() mustn't be __init

On Wed, 30 Jan 2008 22:03:13 +0200 Adrian Bunk <[email protected]> wrote:
>
> This patch fixes the following section mismatch:
>
> <-- snip -->
>
> ...
> WARNING: vmlinux.o(.text+0x55648): Section mismatch in reference from the function .free_node() to the function .init.text:.free_property()
> ...
>
> <-- snip -->
>
> Signed-off-by: Adrian Bunk <[email protected]>

Acked-by: Stephen Rothwell <[email protected]>

--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/


Attachments:
(No filename) (527.00 B)
(No filename) (189.00 B)
Download all attachments