Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2227813pxm; Fri, 4 Mar 2022 11:51:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzc/f9xdcOub/ors5nl/O2mIsyuXu8xSG6+t/Vc7cnpsU4nflhQ0B1peM4nQO2oTfE3Ne2c X-Received: by 2002:a63:4918:0:b0:34d:e4e5:5b47 with SMTP id w24-20020a634918000000b0034de4e55b47mr47714pga.422.1646423472846; Fri, 04 Mar 2022 11:51:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646423472; cv=none; d=google.com; s=arc-20160816; b=AqZQKU7ZdLPc6T29g+Zg0E6eQRYvvARaeBTEiKS9mwohTpf7XLhQ0rd4qXkXunFcV+ nHq40VrSIZD0fS+e99g4xvd7eYMBWXFjVFijNd29seYtiMPsoQdpfL6WkN35K8u1E2MP p/y7LVIVcu5R1PNFu0+ihudAStlETwZUTxOhwWTR27YRErx2WgvDHQ7Qepp0FWvaj0Gt 25zOS9CJQd42VnggKmVRqVis2AVWOX+iKdzOvypBicWYCtogz71YeNh1DpS5cexB8DTV y31l0+6WQsuq3LDiZpY0EmCt63r3mU/QZwaqO0TnWbfda5P4aAHIK/OzAu5zO3wf+4/h tRtg== 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=yqxK85bZK7xDyQw2uCXi3loaqdFYPJjcAinZfxqk6do=; b=sL1zNhqvGADcCqiM5f2TSSf31/OhVgsSTXnR3R6hoxDxaMegmUQ+as2OwTa18ZxHG0 i7I+4dWYmA5n5CW2Ci0s8U1M2vuoBY1+clajSlPKYSsOt9gb5mSQLa8lJ2AvwutCU5xi 4+zz6jqiILJpPKSS803q4mtWk+mDw/MZ+wnZQ7r/lDTESEQKpJPfYOhD8fqOPQpo8ObS BUaDD95tscSVTG1+mPSX71PNFmaL4AYzAKzubCeAUi1X3FIn0KdP8Z4tZrVJrxvNB6hB Zn1NuMvwzFJoiY6kodq+6pj3MOsKctsnhtwabPfrowtGvCahrr1hTcPDGKumULK/EWY+ xU7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ocz1+Iw2; 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=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u11-20020a170902714b00b0014fd9aa5de7si4973075plm.253.2022.03.04.11.51.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 11:51:12 -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=@chromium.org header.s=google header.b=ocz1+Iw2; 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=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1788D1FE03B; Fri, 4 Mar 2022 11:20:37 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241528AbiCDSJy (ORCPT + 99 others); Fri, 4 Mar 2022 13:09:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241512AbiCDSJx (ORCPT ); Fri, 4 Mar 2022 13:09:53 -0500 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE6961C60DF for ; Fri, 4 Mar 2022 10:09:04 -0800 (PST) Received: by mail-pf1-x430.google.com with SMTP id d187so8233303pfa.10 for ; Fri, 04 Mar 2022 10:09:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=yqxK85bZK7xDyQw2uCXi3loaqdFYPJjcAinZfxqk6do=; b=ocz1+Iw2gQLaJb2kUh6BCjlQE8FtpZ7onQytZBB4oTiku41XTQb2azH+A6m4FymENh NAhz4xCeV1dpJWdXtIOLKucZqrbpLU3XDDZnZu/knH/ZFLtyGFMioPHgUmN5h2xuI5s6 CMoiAVi/wR7mULEHHgmDBVlensKUZylG60Y1U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=yqxK85bZK7xDyQw2uCXi3loaqdFYPJjcAinZfxqk6do=; b=1CBsHqixUlF4EfFTg3MEupOotjsPu/JT28jZAQQ4TpVWPvE8njPDIiGQJsgvP05ID5 65+N1G1TyhDuutdYcLwGoUww6i2TBd/NifVyhJoD7QBW7421Z2DFTmZxTobEqqtr7w8+ gVO2AT5A4m+HRlqvQyyxsob8obXXKr9QymnP/sz2v+7N+vM2rzYHcbjqJH+jOyuP4w21 X3GH6TdSm7eE7JK7JZFHHiaY2InFxDXDdeXh1KyS4UJujw+/j4t5GzsF7yfo9FZkNHoe Q2GD3UMjSJICI5ug8WkYw6WdL36yV4YgIQzimzrKFpDaTO9Q1ql2RlmLSBOwytJLqUAE IztA== X-Gm-Message-State: AOAM533dwbVUT/xAUnGKKmOFQtUgk3f34Kb8ZFUqT9VeVxeuk17EE3iM lKn+c5SmLV62g5yHmoSAWC9b2g== X-Received: by 2002:a05:6a00:1312:b0:4e1:58c4:ddfd with SMTP id j18-20020a056a00131200b004e158c4ddfdmr44651556pfu.65.1646417344203; Fri, 04 Mar 2022 10:09:04 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id n18-20020a056a00213200b004e17d967d13sm6276262pfj.124.2022.03.04.10.09.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 10:09:03 -0800 (PST) Date: Fri, 4 Mar 2022 10:09:03 -0800 From: Kees Cook To: Nathan Chancellor 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: <202203041005.A3B985C@keescook> References: <20220304170813.1689186-1-nathan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220304170813.1689186-1-nathan@kernel.org> X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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: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? > 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* -Kees -- Kees Cook