Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2238868pxm; Fri, 4 Mar 2022 12:05:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJy46YpNmQ+8Zl90WtcJFCrXeJ3r4wDwGuMTtIrURj3g0kFtZTpxabqi2RLlF0bbeIMjaVaC X-Received: by 2002:a17:902:7298:b0:151:842b:a241 with SMTP id d24-20020a170902729800b00151842ba241mr233996pll.115.1646424336425; Fri, 04 Mar 2022 12:05:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646424336; cv=none; d=google.com; s=arc-20160816; b=xxMV0QOnJE3ZrVWUeb9ufsly8Cz7VYMmV6ONoGd6z5kYmS2Bg/7NJkQOnbmlOhK2wF EocXFbnkxyThJYkBSw+iyG+uC8b7jhVFzG+eLkQdU+Z7Ys76DJmCCA+znnRJKMq8upMI HBjTPBkAhMaXpE1c5jf3/l4r4PYr+EJ+8W+WoDiOvQj4waA0dzMvefHtROqolTMP2Ql4 aqULMMO5IEPHRjRWaGdsW/1/AtbtyluNsEfP6kjypR+JfpppB/ISlVtJePm/mNKh0839 dFBhAR+4B2TAdBipsotONuBGelVrc7i9NQ+4dYPkdpXlOeoqhabu54nvoH/xMLoJQUI3 S+JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8BNdBLpNw3otlXCuzqCSDqRJ5AeHt+hQ2ZOmHzz/pHw=; b=XISg5X0LK5Nf6KQVBz1JBBS4YAP6gY+RSHXhSZUwpiBV7IB00BQJ8SgRtdzADcGt4r bC5nnumbAQ8Ptu4nTNadgr+LZgf5RxreRYDWo+INEHzcL2qsftNU2VHC2RUtwFr7QN5i Wr9P1hT8ruYfhQ+M028rBQd4rw5eOH8wcPdTddpl5+gszx9/n3sEH/3Ja4a4w+eP3mx4 ni+c+MceWyLAALKqtculTTJRyP7TcZNr0tIQZuNl6iMjxRanGYvJWGNEotbdHLk7+3pW Y5Bid/HHIG53plbIfRsXlrEBG/gRTN71PgnI8KUJvY3WWif7D0OgK8S+Q79YUW7BS/rX 2kmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B8Bflq7c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t20-20020a17090aba9400b001bd14e03058si407332pjr.48.2022.03.04.12.05.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 12:05:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B8Bflq7c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E70F225552D; Fri, 4 Mar 2022 11:26:05 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241585AbiCDSQm (ORCPT + 99 others); Fri, 4 Mar 2022 13:16:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241568AbiCDSQl (ORCPT ); Fri, 4 Mar 2022 13:16:41 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F35B1D21E2; Fri, 4 Mar 2022 10:15:53 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9B9C06101F; Fri, 4 Mar 2022 18:15:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7260FC340E9; Fri, 4 Mar 2022 18:15:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646417752; bh=QtRmzYeZWWRMKtMgE76VEBJ3pSCoqPxHQCc/ttQXt6c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B8Bflq7cMJLn6wmf19dyscS4sqFHhiYufUyprdS+TsUzI3ngHhc3Rh7Thmxnb7eoZ lC8OD2wLPU/7D0ZXaEdIqUlvV30ZRSd7BKc+mrBy9uE0piFjrTVy2jLDHfB6I6obkx 6DhNuSNepAdIlfDxcrPyKlS///1uiSel/lgywiUWZOFBDHYlO4fCW3rok5Shg1Wczi ozb7JmHSG7xoac1m7x9m2ZsbDVYNi8Wk8fwmX1K4ECv2XTpL/X0J0CtZ6HvnSXbtCH EenfHfmM18uHNQlPF3BSJjJvAHcGXEAc+PyHrT7JVQXEDyaTOErKLPPmFXeJVMzqek UmmvWBNbAJWEg== Date: Fri, 4 Mar 2022 11:15:44 -0700 From: Nathan Chancellor To: Kees Cook Cc: Masahiro Yamada , Nick Desaulniers , Shuah Khan , llvm@lists.linux.dev, linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Peter Zijlstra Subject: Re: [PATCH v2] kbuild: Make $(LLVM) more flexible Message-ID: References: <20220304170813.1689186-1-nathan@kernel.org> <202203041005.A3B985C@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202203041005.A3B985C@keescook> X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 04, 2022 at 10:09:03AM -0800, Kees Cook wrote: > On Fri, Mar 04, 2022 at 10:08:14AM -0700, Nathan Chancellor wrote: > > [...] > > > > Update and reorder the documentation to reflect these new additions. > > At the same time, notate that LLVM=0 is not the same as just omitting it > > altogether, which has confused people in the past. > > Is it worth making LLVM=0 actually act the way it's expected to? I don't really see the point, omitting $(LLVM) altogether is simpler. Why specify LLVM=0 if you want GNU tools, since it is the default? However, I can look into changing that in a new revision or a follow up if others disagree? > > Link: https://lore.kernel.org/r/20200317215515.226917-1-ndesaulniers@google.com/ > > Link: https://lore.kernel.org/r/20220224151322.072632223@infradead.org/ > > Suggested-by: Masahiro Yamada > > Suggested-by: Peter Zijlstra > > Signed-off-by: Nathan Chancellor > > Looks good; minor .rst nit below... > > Reviewed-by: Kees Cook > > > [...] > > -LLVM has substitutes for GNU binutils utilities. Kbuild supports ``LLVM=1`` > > -to enable them. :: > > - > > - make LLVM=1 > > - > > -They can be enabled individually. The full list of the parameters: :: > > +LLVM has substitutes for GNU binutils utilities. They can be enabled individually. > > +The full list of supported make variables: :: > > ": ::" and "::" yield the same result. I think the latter is more > readable in non-rendered form. *shrug* Ack, I'll wait for other feedback before sending v3, unless there is none and Masahiro does not mind fixing it up during application. Thanks for the review! Nathan