From: Lorenzo Pieralisi Date: Thu, 17 Jul 2014 17:19:20 +0000 (+0100) Subject: arm64: kernel: add missing __init section marker to cpu_suspend_init X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=18ab7db6b749ac27aac08d572afbbd2f4d937934;p=openwrt%2Fstaging%2Fblogic.git arm64: kernel: add missing __init section marker to cpu_suspend_init Suspend init function must be marked as __init, since it is not needed after the kernel has booted. This patch moves the cpu_suspend_init() function to the __init section. Signed-off-by: Lorenzo Pieralisi Signed-off-by: Catalin Marinas --- diff --git a/arch/arm64/kernel/suspend.c b/arch/arm64/kernel/suspend.c index 1fa9ce4afd8f..55a99b9a97e0 100644 --- a/arch/arm64/kernel/suspend.c +++ b/arch/arm64/kernel/suspend.c @@ -119,7 +119,7 @@ int cpu_suspend(unsigned long arg) extern struct sleep_save_sp sleep_save_sp; extern phys_addr_t sleep_idmap_phys; -static int cpu_suspend_init(void) +static int __init cpu_suspend_init(void) { void *ctx_ptr;