From: nicolas.ferre@atmel•com (Nicolas Ferre)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH] pm: at91: pm_slowclock: fix the compilation error
Date: Wed, 11 Mar 2015 17:52:31 +0100 [thread overview]
Message-ID: <550072CF.3080303@atmel.com> (raw)
In-Reply-To: <1426039692-30005-1-git-send-email-wenyou.yang@atmel.com>
Le 11/03/2015 03:08, Wenyou Yang a ?crit :
> When compiling the kernel in thumb2 (CONFIG_THUMB2_KERNEL option activated), we
> hit a compilation error. The error message is listed below:
>
> ---8< -----
> Error: cannot use register index with PC-relative addressing -- `str r0,.saved_lpr'
> --->8----
>
> Add the .arm directive in the assembly files related to power management.
>
> Signed-off-by: Wenyou Yang <wenyou.yang@atmel•com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel•com>
Stacked on at91-4.0-fixes. Thanks.
> ---
> arch/arm/mach-at91/pm_slowclock.S | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/mach-at91/pm_slowclock.S b/arch/arm/mach-at91/pm_slowclock.S
> index 8ab80e5..931f0e3 100644
> --- a/arch/arm/mach-at91/pm_slowclock.S
> +++ b/arch/arm/mach-at91/pm_slowclock.S
> @@ -70,6 +70,8 @@ tmp2 .req r5
>
> .text
>
> + .arm
> +
> /* void at91_slow_clock(void __iomem *pmc, void __iomem *sdramc,
> * void __iomem *ramc1, int memctrl)
> */
>
--
Nicolas Ferre
prev parent reply other threads:[~2015-03-11 16:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-11 2:08 [PATCH] pm: at91: pm_slowclock: fix the compilation error Wenyou Yang
2015-03-11 16:52 ` Nicolas Ferre [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=550072CF.3080303@atmel.com \
--to=nicolas.ferre@atmel$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox