From: Lorenzo Pieralisi Date: Thu, 17 Jul 2014 17:19:19 +0000 (+0100) Subject: arm64: kernel: add __init marker to PSCI init functions X-Git-Tag: v3.17-rc1~140^2~33 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=b9e97ef93c630404f305350d88d09391d1a55648;p=~emulex%2Finfiniband.git arm64: kernel: add __init marker to PSCI init functions PSCI init functions must be marked as __init so that they are freed by the kernel upon boot. This patch marks the PSCI init functions as such since they need not be persistent in the kernel address space after the kernel has booted. Signed-off-by: Lorenzo Pieralisi Signed-off-by: Catalin Marinas --- diff --git a/arch/arm64/kernel/psci.c b/arch/arm64/kernel/psci.c index a623c44a6bc..553954771a6 100644 --- a/arch/arm64/kernel/psci.c +++ b/arch/arm64/kernel/psci.c @@ -235,7 +235,7 @@ static void psci_sys_poweroff(void) * PSCI Function IDs for v0.2+ are well defined so use * standard values. */ -static int psci_0_2_init(struct device_node *np) +static int __init psci_0_2_init(struct device_node *np) { int err, ver; @@ -296,7 +296,7 @@ out_put_node: /* * PSCI < v0.2 get PSCI Function IDs via DT. */ -static int psci_0_1_init(struct device_node *np) +static int __init psci_0_1_init(struct device_node *np) { u32 id; int err;