From mboxrd@z Thu Jan 1 00:00:00 1970 From: nicolas.ferre@atmel.com (Nicolas Ferre) Date: Fri, 20 Mar 2015 11:54:48 +0100 Subject: [PATCH] ARM: at91: fix pm_suspend.S compilation when ARMv6 is selected In-Reply-To: <1426796080-18506-1-git-send-email-alexandre.belloni@free-electrons.com> References: <1426796080-18506-1-git-send-email-alexandre.belloni@free-electrons.com> Message-ID: <550BFC78.3050500@atmel.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 > Signed-off-by: Alexandre Belloni Acked-by: Nicolas Ferre 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751162AbbCTKyy (ORCPT ); Fri, 20 Mar 2015 06:54:54 -0400 Received: from eusmtp01.atmel.com ([212.144.249.243]:4094 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750916AbbCTKyx (ORCPT ); Fri, 20 Mar 2015 06:54:53 -0400 Message-ID: <550BFC78.3050500@atmel.com> Date: Fri, 20 Mar 2015 11:54:48 +0100 From: Nicolas Ferre Organization: atmel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Alexandre Belloni CC: Jean-Christophe Plagniol-Villard , Wenyou Yang , , , Boris Brezillon Subject: Re: [PATCH] ARM: at91: fix pm_suspend.S compilation when ARMv6 is selected References: <1426796080-18506-1-git-send-email-alexandre.belloni@free-electrons.com> In-Reply-To: <1426796080-18506-1-git-send-email-alexandre.belloni@free-electrons.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.161.30.18] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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@intel.com Changed in: Reported-by: kbuild test robot > Signed-off-by: Alexandre Belloni Acked-by: Nicolas Ferre 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