powerpc: Fix section mismatch warning in free_lppacas
authorVladimir Murzin <murzin.v@gmail.com>
Sun, 29 Sep 2013 12:41:18 +0000 (14:41 +0200)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 11 Oct 2013 05:49:26 +0000 (16:49 +1100)
commit8616dff5b0e969444cc8484875ebd936956b5c0d
treebc4dded3fc3108cdde0718ed7489372cefd2ec37
parent0edfdd10f57bd989f7c2bc31ce6f601bbee1b664
powerpc: Fix section mismatch warning in free_lppacas

While cross-building for PPC64 I've got bunch of

WARNING: arch/powerpc/kernel/built-in.o(.text.unlikely+0x2d2): Section
mismatch in reference from the function .free_lppacas() to the variable
.init.data:lppaca_size The function .free_lppacas() references the variable
__initdata lppaca_size. This is often because .free_lppacas lacks a __initdata
annotation or the annotation of lppaca_size is wrong.

Fix it by using proper annotation for free_lppacas. Additionally, annotate
{allocate,new}_llpcas properly.

Signed-off-by: Vladimir Murzin <murzin.v@gmail.com>
Acked-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/paca.c