Skip to content

Commit 1a08e3d

Browse files
labbottwildea01
authored andcommitted
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 <mark.rutland@arm.com> Tested-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent 46f6236 commit 1a08e3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firmware/psci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ static int psci_suspend_finisher(unsigned long index)
383383
u32 *state = __this_cpu_read(psci_power_state);
384384

385385
return psci_ops.cpu_suspend(state[index - 1],
386-
virt_to_phys(cpu_resume));
386+
__pa_symbol(cpu_resume));
387387
}
388388

389389
int psci_cpu_suspend_enter(unsigned long index)

0 commit comments

Comments
 (0)