public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: nicolas.ferre@atmel•com (Nicolas Ferre)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH] ARM: at91: fix pm_suspend.S compilation when ARMv6 is selected
Date: Fri, 20 Mar 2015 11:54:48 +0100	[thread overview]
Message-ID: <550BFC78.3050500@atmel.com> (raw)
In-Reply-To: <1426796080-18506-1-git-send-email-alexandre.belloni@free-electrons.com>

Le 19/03/2015 21:14, Alexandre Belloni a ?crit :
> When compiling for multiplatform for both ARMv6 and ARMv7, the default compiler
> flags are for ARMv6, and results in:
> 
> arch/arm/mach-at91/pm_suspend.S:144: Error: selected processor does not support ARM mode `dsb'
> 
> Enforce ARMv7 flags for pm_suspend.o when CPU_V7 is selected.
> 
> Reported-by: fengguang.wu at intel.com

Changed in:

Reported-by: kbuild test robot <fengguang.wu@intel•com>

> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons•com>

Acked-by: Nicolas Ferre <nicolas.ferre@atmel•com>

Thanks.

> ---
>  arch/arm/mach-at91/Makefile | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile
> index 06a4cefd33a0..4fa8b4541e64 100644
> --- a/arch/arm/mach-at91/Makefile
> +++ b/arch/arm/mach-at91/Makefile
> @@ -17,6 +17,9 @@ obj-$(CONFIG_SOC_SAMA5)		+= sama5.o
>  obj-$(CONFIG_PM)		+= pm.o
>  obj-$(CONFIG_PM)		+= pm_suspend.o
>  
> +ifeq ($(CONFIG_CPU_V7),y)
> +AFLAGS_pm_suspend.o := -march=armv7-a
> +endif
>  ifeq ($(CONFIG_PM_DEBUG),y)
>  CFLAGS_pm.o += -DDEBUG
>  endif
> 


-- 
Nicolas Ferre

      reply	other threads:[~2015-03-20 10:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-19 20:14 [PATCH] ARM: at91: fix pm_suspend.S compilation when ARMv6 is selected Alexandre Belloni
2015-03-20 10:54 ` 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=550BFC78.3050500@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