Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp161748pja; Thu, 9 Apr 2020 16:35:00 -0700 (PDT) X-Google-Smtp-Source: APiQypIQE3HRJs2F/BuXGs/n57iX01+vx2A75f2iwC7ekWztj5a6rbbesok7zRQq1oa76WBt4OMi X-Received: by 2002:ac8:710c:: with SMTP id z12mr298410qto.193.1586475300308; Thu, 09 Apr 2020 16:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586475300; cv=none; d=google.com; s=arc-20160816; b=K8i8nuiM73cSDzqNZg1rFZHCfZvNTZMkMiuKOBWsJ26fE2L5YC+wdA9rvfca535bEs SY11UgPSVSs94BOWSyUlVfxcPleOqTQ9WfN+LGHc+nS7VSyld2J8796k4nRvLA7EW2So 66/WqraUo7dBgBTUTNSYZoRjppabHi4b1uc/+ykAQqhvjM0C4+x8QcTvflW1yigk7+79 /dAz2JPCSAVframfSxt9dWt2uGfTVrN1cF5PIkr9NeneaNb6yjDLMPW0IfqA6GSJCLct jrHwd2OnF45YJmL7fcXkX47+b+SyjodmVh/evm4PjAkzh5tDAQPCcC4XCX3KOhvCEZ0C mb5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=j6nOAWhXcgV50dfI2kOZff7IGheVzW2uE0Ud7W3fojM=; b=fQJOAWGBoQOwRNxycADWUwy83b+OxmrG6f0L1sTZcXi+f46y0EPPhkhVZS/Vqv1/e5 jJOE5nNHvahsl5ygJQTU1k5Iep1i3uRTEkCfsyBZaFFpaBcXZ1rxBTU9vUEZwsTXdLBU YYyzpUzGO1QfNLb+XZw+Hve5Eg6qMsNKzJSmR0oGXHIvrHCrkSA4FkI28VIOq2zH9oOW odYtrbWtigU64RbalagyNsf/Xphcv8zdKjnkX03vhRdDnEaAGsgeTOKaS/2oDw71/dZT 1wiIYpeBwpUVO0lbfFYNpzPn18vlEWAlC3ATX6QqCkMfSOYfSedV8Xjr+N4TsCTltQeX prww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=B0EmNRpP; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y67si384551qkb.105.2020.04.09.16.34.44; Thu, 09 Apr 2020 16:35:00 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=B0EmNRpP; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726917AbgDIX25 (ORCPT + 99 others); Thu, 9 Apr 2020 19:28:57 -0400 Received: from mail-pj1-f66.google.com ([209.85.216.66]:37976 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726726AbgDIX25 (ORCPT ); Thu, 9 Apr 2020 19:28:57 -0400 Received: by mail-pj1-f66.google.com with SMTP id t40so129903pjb.3 for ; Thu, 09 Apr 2020 16:28:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=j6nOAWhXcgV50dfI2kOZff7IGheVzW2uE0Ud7W3fojM=; b=B0EmNRpPG3qUZ3ki1VFuqMMc+PMOwSxu3W+99zScDTZqHZppWGVrXFypjNErcBcb7d 8su+rPppfd83ZmBiUPytOLnl4gEM7gf33O3I8Ox05Jc8EA3H3wCkqZ0HPDXom1Q4thVt pRDSrZyUBqUTZ9sj4BnDE9pQO98BL1sBxGVaKQtHSUFFOIBQ0lcWLJvYjaNZrfq0q5O6 2BRBR3aKkqsYP9A0vqHGPHwx5TI2udc0xKgTFmNUMIvvB28/T85dkLmsEZGmM83SZPFC zrGpQpiU+eYkjZ2k0+JOJQBWmrAqUaPcdCQ1lt7JzgrhfsFK5O3nQgRI9MEFtwWrlMfl O/Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=j6nOAWhXcgV50dfI2kOZff7IGheVzW2uE0Ud7W3fojM=; b=G8qx6V02RdEwZOcpxkG6CD7JNPRjQ6Y9dRCPQV0Co5dNzp1jiU3ozsAmbr/sH6dzTy boOPgLLWniBPEJRtsG3cW/1qOWf8yWGt9jlVoYiPgZgzeMmAfiQikjQ0lieyaKUyxgbi fd1N5RyocUcJuM2K4ziwuiTAbUVrW1XMr6gO6kTchfU03q+1SWdjpMiwVh2t7BBNdE/t viLDeLDyAv4vb0Nz5DpyolusnO3NZELTUq8SjClczz4worljvjChj4injxqOb/4tjA5M Kf+0Wi3Nn+XdW8CQS4tAenIJS+JoZcbZMzBnCfMgJGlretJjzNUmSg+DmXkiY4ORzXi8 1HoQ== X-Gm-Message-State: AGi0PuaY/yXStvQS/4GsrYYaQrUQNnumn1w5vQZKb8O5jeS/Brh22BFy DQRwmSsRMWQyhnIpKMr9TSE= X-Received: by 2002:a17:90b:3585:: with SMTP id mm5mr2132232pjb.168.1586474936962; Thu, 09 Apr 2020 16:28:56 -0700 (PDT) Received: from jiancai.svl.corp.google.com ([2620:15c:2ce:0:b7ed:16a3:9dc0:21bb]) by smtp.googlemail.com with ESMTPSA id e14sm238783pjg.0.2020.04.09.16.28.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Apr 2020 16:28:56 -0700 (PDT) From: Jian Cai Cc: caij2003@gmail.com, ndesaulniers@google.com, manojgupta@google.com, Peter.Smith@arm.com, stefan@agner.ch, samitolvanen@google.com, ilie.halip@gmail.com, jiancai@google.com, Russell King , Arnd Bergmann , Linus Walleij , Andrew Morton , Mauro Carvalho Chehab , Doug Anderson , Benjamin Gaignard , Bartosz Golaszewski , Masahiro Yamada , Masami Hiramatsu , "Steven Rostedt (VMware)" , Greg Kroah-Hartman , Tejun Heo , "Joel Fernandes (Google)" , Patrick Bellasi , Krzysztof Kozlowski , Dan Williams , "Eric W. Biederman" , David Howells , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: [PATCH] ARM: do not assemble iwmmxt.S with LLVM toolchain Date: Thu, 9 Apr 2020 16:27:26 -0700 Message-Id: <20200409232728.231527-1-caij2003@gmail.com> X-Mailer: git-send-email 2.26.0.110.g2183baf09c-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org iwmmxt.S contains XScale instructions LLVM ARM backend does not support. Skip this file if LLVM integrated assemmbler or LLD is used to build ARM kernel. Signed-off-by: Jian Cai --- arch/arm/Kconfig | 2 +- init/Kconfig | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 66a04f6f4775..39de8fc64a73 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -804,7 +804,7 @@ source "arch/arm/mm/Kconfig" config IWMMXT bool "Enable iWMMXt support" - depends on CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_PJ4 || CPU_PJ4B + depends on !AS_IS_CLANG && !LD_IS_LLD && (CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_PJ4 || CPU_PJ4B) default y if PXA27x || PXA3xx || ARCH_MMP || CPU_PJ4 || CPU_PJ4B help Enable support for iWMMXt context switching at run time if diff --git a/init/Kconfig b/init/Kconfig index 1c12059e0f7e..b0ab3271e900 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -19,6 +19,12 @@ config GCC_VERSION config CC_IS_CLANG def_bool $(success,$(CC) --version | head -n 1 | grep -q clang) +config AS_IS_CLANG + def_bool $(success,$(AS) --version | head -n 1 | grep -q clang) + +config LD_IS_LLD + def_bool $(success,$(LD) --version | head -n 1 | grep -q LLD) + config CLANG_VERSION int default $(shell,$(srctree)/scripts/clang-version.sh $(CC)) -- 2.26.0.110.g2183baf09c-goog