From: Rakib Mullick Date: Sat, 2 Apr 2011 07:17:48 +0000 (+0600) Subject: x86, mpparse: Put check_slot() into .init section X-Git-Tag: v3.0-rc1~396^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64d21fc194e12bdf7347019bf10325a4b3d77e7b;p=profile%2Fivi%2Fkernel-x86-ivi.git x86, mpparse: Put check_slot() into .init section check_slot() is only called from replace_intsrc_all() - which is in the .init section. So, put check_slot into the .init section as well, so it can be freed after system boot. Signed-off-by: Rakib Mullick LKML-Reference: Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index 5a532ce..f1b2718 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c @@ -715,7 +715,7 @@ static void __init check_irq_src(struct mpc_intsrc *m, int *nr_m_spare) } } -static int +static int __init check_slot(unsigned long mpc_new_phys, unsigned long mpc_new_length, int count) { int ret = 0;