From: Laura Abbott Date: Tue, 10 Jan 2017 21:35:46 +0000 (-0800) Subject: drivers: firmware: psci: Use __pa_symbol for kernel symbol X-Git-Tag: v4.14-rc1~1374^2~55^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a08e3d9e0ac4577ba89dbdb38f593fe050f88fc;p=platform%2Fkernel%2Flinux-rpi.git drivers: firmware: psci: Use __pa_symbol for kernel symbol __pa_symbol is technically the macro that should be used for kernel symbols. Switch to this as a pre-requisite for DEBUG_VIRTUAL which will do bounds checking. Reviewed-by: Mark Rutland Tested-by: Mark Rutland Signed-off-by: Laura Abbott Signed-off-by: Will Deacon --- diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c index 6c60a50..66a8793 100644 --- a/drivers/firmware/psci.c +++ b/drivers/firmware/psci.c @@ -383,7 +383,7 @@ static int psci_suspend_finisher(unsigned long index) u32 *state = __this_cpu_read(psci_power_state); return psci_ops.cpu_suspend(state[index - 1], - virt_to_phys(cpu_resume)); + __pa_symbol(cpu_resume)); } int psci_cpu_suspend_enter(unsigned long index)