Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5182250yba; Wed, 10 Apr 2019 13:14:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGrcP2KrtC2PUmHDMVCFNwMuPQhHXsE5WeGBYDQeAk9ouSEZdnXnax+t6K9SDdE3R21i+l X-Received: by 2002:a62:1b8a:: with SMTP id b132mr45912595pfb.19.1554927276550; Wed, 10 Apr 2019 13:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554927276; cv=none; d=google.com; s=arc-20160816; b=VMnq5dMSc+CAVFfHSRnSx7VsDA9Wbj8tcXclQIW0X4sABVM3j5omaSWLYGXR8FP1rh n1B4/uAHjtQbk6DegvfOcSqCVUEQwZBC3Mhx3A08k80YhuVcH4YtoERGgwD0lDmI2/Xm 21yxs/BfjCBAwpdXAyj5eW+XlmTxtlhGglLpdP1jh82S9SUXjKJzYPzm27dOBrIe5eFX 4OkFQKltASi9uSd1uyyDQ6YHR4ghS3YXN6BFKrEKumeRbxUL4EWXrNm/UKOXDjPFcGRi JqltJq1ak5vv7yhJVEjzY0cOsDDkPXPotrNCFh43iW0jT72x2lt2kcYIPkvAtqp7pfmh 7Hbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=kPt2XsEyCbPmbn9i6ATxC31Z5Dt7T6jbUbdP6EqoOpg=; b=MqBKhTafPdopPIOorMI8lSsXODzlh9NhwE8c39D1N9iZXTwa4VlndQVj8PUUbAVOkL IpJM0nRmvyayhb1dISdaKKkRvieR+sOx11T8ZvHQk2yasRm4OxcGhDdX7xv6Z31S6zI/ VwMh1sW3iQkwNKYgBPJ6CC4yxF7xxmTkwz3fgY5EA+/HaLP2Amt9GVcl1LmD0WAuCBEs Vhwb3OJFhQEJI41eDqwwQV+h7SDEcsn8pyPV3K6vVS6slE9J4BrRZ/VGldODuawY+E8L Mqyly20FbyjzXZUKMiWYan8SgoD+wZmx4JgVg7G8CeEbWJ8xmkZK366vmIjq9MGfZC8y l1mg== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 144si7038834pgf.59.2019.04.10.13.14.20; Wed, 10 Apr 2019 13:14:36 -0700 (PDT) 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 S1726548AbfDJUNP (ORCPT + 99 others); Wed, 10 Apr 2019 16:13:15 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:36257 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726014AbfDJUNO (ORCPT ); Wed, 10 Apr 2019 16:13:14 -0400 Received: from wuerfel.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1MlNYj-1gTSBm1LDx-00lmDM; Wed, 10 Apr 2019 22:13:03 +0200 From: Arnd Bergmann To: Martin Schwidefsky , Heiko Carstens , Vasily Gorbik Cc: clang-built-linux@googlegroups.com, Nick Desaulniers , Nathan Chancellor , linux-s390@vger.kernel.org, Arnd Bergmann , Masahiro Yamada , Philipp Rudo , Tony Krowiak , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] s390: only build for new CPUs with clang Date: Wed, 10 Apr 2019 22:12:40 +0200 Message-Id: <20190410201300.3528984-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version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Rqt2BUOyJnElK/3e58ow1BEOZXPEwQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org llvm does does not understand -march=z9-109 and older target specifiers, so disable the respective Kconfig settings and the logic to make the boot code work on old systems when building with clang. Signed-off-by: Arnd Bergmann --- arch/s390/Kconfig | 6 ++++++ arch/s390/boot/Makefile | 2 ++ 2 files changed, 8 insertions(+) diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 8cd860cba4d1..1a2eec61196d 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -240,6 +240,7 @@ choice config MARCH_Z900 bool "IBM zSeries model z800 and z900" + depends on !CC_IS_CLANG select HAVE_MARCH_Z900_FEATURES help Select this to enable optimizations for model z800/z900 (2064 and @@ -248,6 +249,7 @@ config MARCH_Z900 config MARCH_Z990 bool "IBM zSeries model z890 and z990" + depends on !CC_IS_CLANG select HAVE_MARCH_Z990_FEATURES help Select this to enable optimizations for model z890/z990 (2084 and @@ -256,6 +258,7 @@ config MARCH_Z990 config MARCH_Z9_109 bool "IBM System z9" + depends on !CC_IS_CLANG select HAVE_MARCH_Z9_109_FEATURES help Select this to enable optimizations for IBM System z9 (2094 and @@ -347,12 +350,15 @@ config TUNE_DEFAULT config TUNE_Z900 bool "IBM zSeries model z800 and z900" + depends on !CC_IS_CLANG config TUNE_Z990 bool "IBM zSeries model z890 and z990" + depends on !CC_IS_CLANG config TUNE_Z9_109 bool "IBM System z9" + depends on !CC_IS_CLANG config TUNE_Z10 bool "IBM System z10" diff --git a/arch/s390/boot/Makefile b/arch/s390/boot/Makefile index c844eaf24ed7..953a74d04990 100644 --- a/arch/s390/boot/Makefile +++ b/arch/s390/boot/Makefile @@ -11,6 +11,7 @@ KASAN_SANITIZE := n KBUILD_AFLAGS := $(KBUILD_AFLAGS_DECOMPRESSOR) KBUILD_CFLAGS := $(KBUILD_CFLAGS_DECOMPRESSOR) +ifndef CONFIG_CC_IS_CLANG # # Use -march=z900 for als.c to be able to print an error # message if the kernel is started on a machine which is too old @@ -25,6 +26,7 @@ CFLAGS_als.o += -march=z900 CFLAGS_REMOVE_sclp_early_core.o += $(CC_FLAGS_MARCH) CFLAGS_sclp_early_core.o += -march=z900 endif +endif CFLAGS_sclp_early_core.o += -I$(srctree)/drivers/s390/char -- 2.20.0