Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1550004
| From | Laura Abbott <labbott@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCHv6 07/11] drivers: firmware: psci: Use __pa_symbol for kernel symbol |
| Date | 2017-01-03 18:40 +0100 |
| Message-ID | <sVBe2-1dx-45@gated-at.bofh.it> (permalink) |
| References | <sVB4l-1a8-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
__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> --- drivers/firmware/psci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCHv6 00/11] CONFIG_DEBUG_VIRTUAL for arm64 Laura Abbott <labbott@redhat.com> - 2017-01-03 18:30 +0100
[PATCHv6 10/11] mm/usercopy: Switch to using lm_alias Laura Abbott <labbott@redhat.com> - 2017-01-03 18:40 +0100
[PATCHv6 05/11] mm: Introduce lm_alias Laura Abbott <labbott@redhat.com> - 2017-01-03 18:40 +0100
[PATCHv6 02/11] mm/cma: Cleanup highmem check Laura Abbott <labbott@redhat.com> - 2017-01-03 18:40 +0100
[PATCHv6 07/11] drivers: firmware: psci: Use __pa_symbol for kernel symbol Laura Abbott <labbott@redhat.com> - 2017-01-03 18:40 +0100
[PATCHv6 06/11] arm64: Use __pa_symbol for kernel symbols Laura Abbott <labbott@redhat.com> - 2017-01-03 18:40 +0100
[PATCHv6 04/11] arm64: Add cast for virt_to_pfn Laura Abbott <labbott@redhat.com> - 2017-01-03 18:40 +0100
[PATCHv6 11/11] arm64: Add support for CONFIG_DEBUG_VIRTUAL Laura Abbott <labbott@redhat.com> - 2017-01-03 19:00 +0100
Re: [PATCHv6 00/11] CONFIG_DEBUG_VIRTUAL for arm64 Florian Fainelli <f.fainelli@gmail.com> - 2017-01-04 00:00 +0100
Re: [PATCHv6 00/11] CONFIG_DEBUG_VIRTUAL for arm64 Laura Abbott <labbott@redhat.com> - 2017-01-04 00:40 +0100
Re: [PATCHv6 00/11] CONFIG_DEBUG_VIRTUAL for arm64 Will Deacon <will.deacon@arm.com> - 2017-01-04 13:10 +0100
Re: [PATCHv6 00/11] CONFIG_DEBUG_VIRTUAL for arm64 Florian Fainelli <f.fainelli@gmail.com> - 2017-01-04 23:40 +0100
Re: [PATCHv6 00/11] CONFIG_DEBUG_VIRTUAL for arm64 Will Deacon <will.deacon@arm.com> - 2017-01-10 13:50 +0100
[PATCH v5 0/4] ARM: Add support for CONFIG_DEBUG_VIRTUAL Florian Fainelli <f.fainelli@gmail.com> - 2017-01-04 02:20 +0100
[PATCH v5 1/4] mtd: lart: Rename partition defines to be prefixed with PART_ Florian Fainelli <f.fainelli@gmail.com> - 2017-01-04 02:20 +0100
[PATCH v5 3/4] ARM: Add support for CONFIG_DEBUG_VIRTUAL Florian Fainelli <f.fainelli@gmail.com> - 2017-01-04 02:20 +0100
Re: [PATCH v5 3/4] ARM: Add support for CONFIG_DEBUG_VIRTUAL Laura Abbott <labbott@redhat.com> - 2017-01-04 18:30 +0100
[PATCH v5 2/4] ARM: Define KERNEL_START and KERNEL_END Florian Fainelli <f.fainelli@gmail.com> - 2017-01-04 02:20 +0100
RE: [PATCH v5 2/4] ARM: Define KERNEL_START and KERNEL_END Hartley Sweeten <HartleyS@visionengravers.com> - 2017-01-04 17:00 +0100
Re: [PATCH v5 2/4] ARM: Define KERNEL_START and KERNEL_END Florian Fainelli <f.fainelli@gmail.com> - 2017-01-04 18:50 +0100
[PATCH v6 0/4] ARM: Add support for CONFIG_DEBUG_VIRTUAL Florian Fainelli <f.fainelli@gmail.com> - 2017-01-04 23:50 +0100
[PATCH v6 2/4] ARM: Define KERNEL_START and KERNEL_END Florian Fainelli <f.fainelli@gmail.com> - 2017-01-04 23:50 +0100
[PATCH v6 3/4] ARM: Add support for CONFIG_DEBUG_VIRTUAL Florian Fainelli <f.fainelli@gmail.com> - 2017-01-04 23:50 +0100
[PATCH v6 1/4] mtd: lart: Rename partition defines to be prefixed with PART_ Florian Fainelli <f.fainelli@gmail.com> - 2017-01-04 23:50 +0100
Re: [PATCH v6 0/4] ARM: Add support for CONFIG_DEBUG_VIRTUAL Florian Fainelli <f.fainelli@gmail.com> - 2017-01-15 04:10 +0100
csiph-web