From: Benjamin Herrenschmidt Date: Tue, 5 Jul 2016 05:07:50 +0000 (+1000) Subject: powerpc/64: Make a few boot functions __init X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=009776baa18448b223be73ac74912fef7e17b9e2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git powerpc/64: Make a few boot functions __init Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index f55c25dff02c..fba96ada3012 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c @@ -198,7 +198,7 @@ early_param("smt-enabled", early_smt_enabled); #endif /* CONFIG_SMP */ /** Fix up paca fields required for the boot cpu */ -static void fixup_boot_paca(void) +static void __init fixup_boot_paca(void) { /* The boot cpu is started */ get_paca()->cpu_start = 1; @@ -206,7 +206,7 @@ static void fixup_boot_paca(void) get_paca()->data_offset = 0; } -static void configure_exceptions(void) +static void __init configure_exceptions(void) { /* * Setup the trampolines from the lowmem exception vectors @@ -517,7 +517,7 @@ static __init void print_system_info(void) * used to allocate interrupt or emergency stacks for which our * exception entry path doesn't deal with being interrupted. */ -static u64 safe_stack_limit(void) +static __init u64 safe_stack_limit(void) { #ifdef CONFIG_PPC_BOOK3E /* Freescale BookE bolts the entire linear mapping */