Skip to content

Commit

Permalink
arm64: kernel: add missing __init section marker to cpu_suspend_init
Browse files Browse the repository at this point in the history
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 <lorenzo.pieralisi@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
  • Loading branch information
Lorenzo Pieralisi authored and Catalin Marinas committed Jul 18, 2014
1 parent b9e97ef commit 18ab7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm64/kernel/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 18ab7db

Please sign in to comment.