From patchwork Mon Feb 8 14:25:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102833 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1469631lbl; Mon, 8 Feb 2016 06:27:29 -0800 (PST) X-Received: by 10.66.252.198 with SMTP id zu6mr42657153pac.107.1454941649512; Mon, 08 Feb 2016 06:27:29 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fa6si20023235pad.154.2016.02.08.06.27.29; Mon, 08 Feb 2016 06:27:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753011AbcBHO11 (ORCPT + 30 others); Mon, 8 Feb 2016 09:27:27 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:53942 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750929AbcBHO10 (ORCPT ); Mon, 8 Feb 2016 09:27:26 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue003) with ESMTPA (Nemesis) id 0LhRPo-1ZgEXC20FU-00meqg; Mon, 08 Feb 2016 15:26:58 +0100 From: Arnd Bergmann To: Russell King Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Mark Charlebois , Behan Webster , linux-kernel@vger.kernel.org Subject: [PATCH 1/3] ARM: pass -march=armv7-a when building NEON files with clang Date: Mon, 8 Feb 2016 15:25:56 +0100 Message-Id: <1454941613-2775081-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:spLc8DEONABNrqOAVpAKMsL8rmNSuupv/KL2R3ad2UQdm2FW3yW W6XC8zlMeqGOuCGW8ENUBZj5hhsZ+Btvzwnld2X38mucUttzIXbFnyaHv2Yu93kovsvKUhP 7pRLF6NLpHXahO5Puxdwn/VmIdZIZCIvyTUU/vhch7jMklBavihbmvDk9KjorFQD6H3K4B1 9sdo7Oko8wPguPSV9PaRA== X-UI-Out-Filterresults: notjunk:1; V01:K0:RpUPc/uNmO4=:REBm7LvAnX0rJsTDI+ivts 0gRZiHdHl0WaWsDVzMzuoTjot3MwmYHLFYCfYLQ+7+gYL6tOZHTSYZRIwaboguBJC8pD+HleV 5u4tgvrQTD5XmJIxLsLbAyNL6Zu7eNkPRUkpcdrFjIQKfbLC3bambSlTXQCFJaBLNKZKMEVuv LBkcNJLGlXVXL0sUmFfEjN7DE6FCbXobEaeIIGECIA2k/eqJrw2n5NsvaFPu8gCQlUAeXNfA0 ROz3QQQQ8x2UACN3xIIBJOWjZfsyscbb0fNwAiGxpPzLFw1AwOYRrieD6eVxLjmKIYayeW+df GyPV8z0u44ur0Tjct/cCJzatK0hZrRZuclSkwenIhWTy/ZAmvnEwHkfM1SAD6c4jQ7jEVrBfu Mln/pS1KPtUxXYDgxv+x2nfIrP5g3llT/PvufLYzGCfu4V9AD/r0v9FWmv5r/VEGVOQqWU4Qi D4Ewq5jN3dLdRYzibxVrjLWGb1mSTaKdn3lUds03hkYjwlxp8t7mvo/01/TDmJ5T2yyMl8sIC 2+4VlWGc/Btj/NrcbUMck0tVuprtf7M8nu/OKVcRGfdvE/0jP5k8876NHF2lhq5OhlujpcPJU kDjsUCXVPV1p2XSklYBD7qAMY6zbtvL39+5XIHaYovYmmTIPeUY5s1vot4YeeEceg6VSFVMka qnRdDrFMvew/Fs0iHBeqpEusDwcXTb06n3FFkWXDOCeX7+y3hCS27Phf79y5A2/n/q4s= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org clang ignores the -mfpu=neon flag when building with -march=armv6: In file included from lib/raid6/neon1.c:27: clang/3.8.0/include/arm_neon.h:28:2: error: "NEON support not enabled" There is no real need to build the file with -march=armv6 in a multi-CPU enabled kernel, as nothing in here will ever get called on an ARMv6 CPU. Adding -march=armv7 doesn't hurt and can only improve the code quality. Signed-off-by: Arnd Bergmann --- arch/arm/lib/Makefile | 2 +- lib/raid6/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.7.0 diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile index 6c7a5b715584..5f6c7eb62cc3 100644 --- a/arch/arm/lib/Makefile +++ b/arch/arm/lib/Makefile @@ -39,7 +39,7 @@ $(obj)/csumpartialcopy.o: $(obj)/csumpartialcopygeneric.S $(obj)/csumpartialcopyuser.o: $(obj)/csumpartialcopygeneric.S ifeq ($(CONFIG_KERNEL_MODE_NEON),y) - NEON_FLAGS := -mfloat-abi=softfp -mfpu=neon + NEON_FLAGS := -mfloat-abi=softfp -mfpu=neon -march=armv7-a CFLAGS_xor-neon.o += $(NEON_FLAGS) obj-$(CONFIG_XOR_BLOCKS) += xor-neon.o endif diff --git a/lib/raid6/Makefile b/lib/raid6/Makefile index 3b10a48fa040..4ef3e800fb39 100644 --- a/lib/raid6/Makefile +++ b/lib/raid6/Makefile @@ -23,7 +23,7 @@ endif ifeq ($(CONFIG_KERNEL_MODE_NEON),y) NEON_FLAGS := -ffreestanding ifeq ($(ARCH),arm) -NEON_FLAGS += -mfloat-abi=softfp -mfpu=neon +NEON_FLAGS += -mfloat-abi=softfp -mfpu=neon -march=armv7-a endif ifeq ($(ARCH),arm64) CFLAGS_REMOVE_neon1.o += -mgeneral-regs-only