summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/mpparse.c
diff options
context:
space:
mode:
authorRakib Mullick <rakib.mullick@gmail.com>2011-04-02 07:17:48 (GMT)
committerIngo Molnar <mingo@elte.hu>2011-04-04 15:17:19 (GMT)
commit64d21fc194e12bdf7347019bf10325a4b3d77e7b (patch)
tree6e993088e9d4beb3c7e4fb10af672df09244de33 /arch/x86/kernel/mpparse.c
parent9402efaa96e4c047dcc63ad5db65384c328aee5f (diff)
downloadlinux-64d21fc194e12bdf7347019bf10325a4b3d77e7b.tar.xz
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 <rakib.mullick@gmail.com> LKML-Reference: <AANLkTing52ntzRcHkODCWDKOfRF=0uhXw5-cCUhx6M54@mail.gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/mpparse.c')
-rw-r--r--arch/x86/kernel/mpparse.c2
1 files changed, 1 insertions, 1 deletions
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;