Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1083806pxk; Fri, 25 Sep 2020 05:58:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWa9zYOmLKrQJ+S4aU5r5GFkcuDFiVgxvMrqFMPFWkFMFAal9f1VODH/+8H1L5ULuqJ0Kg X-Received: by 2002:a17:906:1984:: with SMTP id g4mr2495719ejd.119.1601038683151; Fri, 25 Sep 2020 05:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601038683; cv=none; d=google.com; s=arc-20160816; b=p6iy2jJwhxt6vepSQyEAy86XthBsQwUo5PA2/kmcaeGD9PhtST8YfPifxXThTYYVZB FKTAT7rNENJri14cMAopepo56R3oQcRmEhYI0+7zpiiPqknVv+8CCI2kvBtzbaliORif Fap51cvjkI++gCgepn7ps5yvoYZLUQoI9SRALrAabEmLU64f3Yr9jeC9NDYNdxVu1ZfE e6dB3Py4qu3o+R/psrO67mn7DdV81/yi3x7v02zJ7JipvHm0eoKmQg1NzoNyLw76p8Ig I00jxokrWoN2v6t2x3LW4a0oU+nwPl4jYKfeLkqKB/6XXxGN925d0JoSndIS0GEXGwr4 l6AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=arKIGfsbdtA/D/EH3wCfbWY3lWoABxxIiguSXXg7JUY=; b=QqHccGk2xXy2s6pdqzS0RPel9Mc9mYnmdci9NmeoWX+x4rsgfzkynCQw7NsQfl4PvK UTYTSfDIi+ccBwufblzq3E20hxTKzBxjNKBUIaGNRz4Lnj7cubSjRnvpNkjBXwSsze4S hhwh12DMe0HTSKrQrT7MzIfaHjh/BVcreBWqa5hLrc1Ao8q+hZs8jVXYuwbznNWYlsAw G1CRgqEomg+B2OIpfcjz8WHKS4Wg/eAThvPcYnL4caubTE/D+t3YtSHj2KAJ+jeRbhC8 vU1MkGy4VvaEy4bJdZFXGbDI6cxhn9o3Uwv/S99y98zxkLFaTI5VrOQpQmTLF61eR9cs wdfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fkLrWhti; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id da18si1660863edb.466.2020.09.25.05.57.40; Fri, 25 Sep 2020 05:58:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fkLrWhti; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729595AbgIYMyl (ORCPT + 99 others); Fri, 25 Sep 2020 08:54:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:33512 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729193AbgIYMyj (ORCPT ); Fri, 25 Sep 2020 08:54:39 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 092D6206DB; Fri, 25 Sep 2020 12:54:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601038478; bh=YEHjAU3xWOY4TAikPX9+d2N52V6tY9gD7frm946fcyY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fkLrWhtiDGW+2xIxnGumo13tmD8c5DhXUTnrUINpcD+oxHnC7cT5GLCX5EoGLkEIU SJ04s27PyRhE6J7BpcMcwQRbvaeqab4BBjmpQaJnd/LMoTzCm6FFCvfoBlOMlx26jR MHeZesA9+UK2WjRI74Vv/JesiWBrttBe0WmUfUHo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nick Desaulniers , Masahiro Yamada , Nathan Chancellor Subject: [PATCH 4.19 32/37] kbuild: replace AS=clang with LLVM_IAS=1 Date: Fri, 25 Sep 2020 14:49:00 +0200 Message-Id: <20200925124725.795366914@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200925124720.972208530@linuxfoundation.org> References: <20200925124720.972208530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada commit 7e20e47c70f810d678d02941fa3c671209c4ca97 upstream. The 'AS' variable is unused for building the kernel. Only the remaining usage is to turn on the integrated assembler. A boolean flag is a better fit for this purpose. AS=clang was added for experts. So, I replaced it with LLVM_IAS=1, breaking the backward compatibility. Suggested-by: Nick Desaulniers Signed-off-by: Masahiro Yamada Reviewed-by: Nathan Chancellor Reviewed-by: Nick Desaulniers Signed-off-by: Nick Desaulniers Signed-off-by: Greg Kroah-Hartman --- Documentation/kbuild/llvm.rst | 5 ++++- Makefile | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) --- a/Documentation/kbuild/llvm.rst +++ b/Documentation/kbuild/llvm.rst @@ -50,11 +50,14 @@ LLVM Utilities LLVM has substitutes for GNU binutils utilities. These can be invoked as additional parameters to `make`. - make CC=clang AS=clang LD=ld.lld AR=llvm-ar NM=llvm-nm STRIP=llvm-strip \\ + make CC=clang LD=ld.lld AR=llvm-ar NM=llvm-nm STRIP=llvm-strip \\ OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump OBJSIZE=llvm-size \\ READELF=llvm-readelf HOSTCC=clang HOSTCXX=clang++ HOSTAR=llvm-ar \\ HOSTLD=ld.lld +Currently, the integrated assembler is disabled by default. You can pass +`LLVM_IAS=1` to enable it. + Getting Help ------------ --- a/Makefile +++ b/Makefile @@ -492,7 +492,9 @@ endif ifneq ($(GCC_TOOLCHAIN),) CLANG_FLAGS += --gcc-toolchain=$(GCC_TOOLCHAIN) endif +ifneq ($(LLVM_IAS),1) CLANG_FLAGS += -no-integrated-as +endif CLANG_FLAGS += -Werror=unknown-warning-option KBUILD_CFLAGS += $(CLANG_FLAGS) KBUILD_AFLAGS += $(CLANG_FLAGS)