From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1948673AbcBRXcr (ORCPT ); Thu, 18 Feb 2016 18:32:47 -0500 Received: from smtpfb1-g21.free.fr ([212.27.42.9]:55905 "EHLO smtpfb1-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946440AbcBRXcq (ORCPT ); Thu, 18 Feb 2016 18:32:46 -0500 From: =?UTF-8?q?Vincent=20Stehl=C3=A9?= To: linux-next@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Vincent=20Stehl=C3=A9?= , Jean-Philippe Brucker , Marc Zyngier , Russell King Subject: [PATCH next] ARM: virt: fix build of hyp-stub Date: Fri, 19 Feb 2016 00:31:17 +0100 Message-Id: <1455838277-11083-1-git-send-email-vincent.stehle@laposte.net> X-Mailer: git-send-email 2.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Compile hyp-stub explicitly for arm v7-a. This fixes the following build errors: arch/arm/kernel/hyp-stub.S: Assembler messages: arch/arm/kernel/hyp-stub.S:168: Error: selected processor does not support `ubfx r7,r7,#28,#4' in ARM mode arch/arm/kernel/hyp-stub.S:176: Error: selected processor does not support `isb' in ARM mode Signed-off-by: Vincent Stehlé Cc: Jean-Philippe Brucker Cc: Marc Zyngier Cc: Russell King --- Hi, This can be seen with linux next-20160218 and arm e.g. allmodconfig. Best regards, V. arch/arm/kernel/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile index 2c5f160..15684c5 100644 --- a/arch/arm/kernel/Makefile +++ b/arch/arm/kernel/Makefile @@ -88,6 +88,8 @@ obj-$(CONFIG_DEBUG_LL) += debug.o obj-$(CONFIG_EARLY_PRINTK) += early_printk.o obj-$(CONFIG_ARM_VIRT_EXT) += hyp-stub.o +AFLAGS_hyp-stub.o :=-Wa,-march=armv7-a + ifeq ($(CONFIG_ARM_PSCI),y) obj-$(CONFIG_SMP) += psci_smp.o endif -- 2.7.0