Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2307718rwp; Fri, 14 Jul 2023 04:19:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlF/kaXs5T7PyQPA6FAFxq2zu0AcKlJUVK1ziVJBskRP5Pm9+V64HAsJ/wKfuuOlYJaLDzji X-Received: by 2002:a17:903:41c8:b0:1b8:a73e:aaac with SMTP id u8-20020a17090341c800b001b8a73eaaacmr4598923ple.62.1689333571407; Fri, 14 Jul 2023 04:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689333571; cv=none; d=google.com; s=arc-20160816; b=uRu9gfQTWXYyKhTi1rcZAd2Bcu19jjLgBByZD+0Qmk5qLQrB97R7dMshAuEQkOCv7v Naa8qXKlykIcU1ehU7D4YIc8MXfGg74V2IMQluTtF6E7jAxEueqlFfTrpgte5+0Id2NS 12QyH2qMeUybFJhIMMDo7CrQRlwzF937Cs7lWmuOKhl9keynm8c5TPSX/8MAOCUvAL5d NlO6cf7tvadvsJ/dPHlxES8CpHNNTNy4AFS8uSTjFptWaXztYYqIOt3A4iFLr5nQMuSx JIaaaQ6B4HFOK801xZOGoH/zOKa0HGV/v36pf9YmPJFZuY9Y84q4op3GpPF9a5QY5qyX LGMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:in-reply-to :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=2B6GpDJtoRa9wBU1oI3cX9ScXrxvHc+5zKaSpxtTgsY=; fh=KUEAoECpQwX3XLmeHkjr6bOgxewzLZp8d9EAWx7hjWs=; b=raxVB+53x570kHL/3IifGKZ/2Bcbppnmd7L0R8YOnqZJ8AyCruCP+ddTc3C9iDsfGR WM6Y4QyFnuq/YWfAXUgJ1Holdybo1hB4xc0iFCQOuLsx8hbv3j6MMPT2+mD4UMgIdKbW TpwNoNQcw8RDdd05UyP1PdJpplRNGWO+nD3+zZjzCoIiyMS+JDf8BKqZUxXOQemdUqZO rJRSUOO2LrTF6xqbslnzfb6zJpCkZJGMlc0iXUEx9mMVhvToLpo37Qrpfn4QHcmmGgql pM84wdRLq6wHujm2fERsS/7gpc4L8c2FbVy98JBk/jICr25AOgHeTyhXATU2+MTQzq0k VdPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fjasle.eu header.s=mail header.b="d3/gxwud"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fjasle.eu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w13-20020a170902d3cd00b001b9c61c221bsi6833772plb.565.2023.07.14.04.19.17; Fri, 14 Jul 2023 04:19:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fjasle.eu header.s=mail header.b="d3/gxwud"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fjasle.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235717AbjGNKnD (ORCPT + 99 others); Fri, 14 Jul 2023 06:43:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234953AbjGNKnC (ORCPT ); Fri, 14 Jul 2023 06:43:02 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 481A72D7D; Fri, 14 Jul 2023 03:42:53 -0700 (PDT) Received: from leknes.fjasle.eu ([46.142.49.15]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N5lvf-1ps8Ok2epH-017CtL; Fri, 14 Jul 2023 12:42:13 +0200 Received: by leknes.fjasle.eu (Postfix, from userid 1000) id D561D3E8B6; Fri, 14 Jul 2023 12:42:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fjasle.eu; s=mail; t=1689331332; bh=VbtTiOb3pj67buXnCTmEAlGgzMMxWUTXwxnvZuk4Xp4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=d3/gxwudV53G2YvmCI65zt4LtGzb9FXtZXtieUiGSHZk5qU58I1WZiQNlyh0XJG2m UMQrTV8h9Eu/Bx17sfKcntheRBLqnjovLaQzWmV2c0273qt0RJ2R70PCxRps2I4trW VpWavTKE35DqWLzdQuGxjCV20s+lBPlGgQcQQsJk= Date: Fri, 14 Jul 2023 12:42:11 +0200 From: Nicolas Schier To: Alexey Dobriyan Cc: akpm@linux-foundation.org, masahiroy@kernel.org, nathan@kernel.org, ndesaulniers@google.com, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: Re: [PATCH] kbuild: flatten KBUILD_CFLAGS Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0Cqt7gF9l+Mxlu9M" Content-Disposition: inline In-Reply-To: <4f414a87-0c54-44bd-b218-f6f0b22c57ef@p183> X-Provags-ID: V03:K1:pXlRpCei6t48Xe832x9jG0u+dF34XzEwMra9E3u68U7X4sJ1nZL E8WgYvFA0Z/Ai6uJsuHLXgUHBMZnAE+AegVRoFnk3A/YFOPN54RviliNMOm4/jR9UU4wPRg IRHaH+HAWQcPe15etQSE24X7V5CcHiQqO1PV1Ter0mIHx8A+y1nqeBYQgzbedH8t9SszLp/ d9PMLrUVJwSPWRBetY/lA== UI-OutboundReport: notjunk:1;M01:P0:iiBMgfWDDUg=;BvGKpF2FEwM6xE6lGgOv+mD2TER R27VwYXzkvrcAcxMksWWxp+hHczreaVtafh0F0BdvuI0RisWXMzZ4mDqLAt1WRTX5NQwaZ96l eM27sLrb7/gB+X1//ZXm7j8mS0xNKs/mz853VnfwVfwHnaSe869bsmWp+mBQCWv01avfFT1Lk leleFY/4izgNpZks+5mRm3KnjERo1Y8FFjiDrpHwX2YFXHOWLRxmKJtdXAmaPIBllluOOgLHz hE+xwhMBUhzU9RWtPszy9sJdoXzV81rPooLPEUzZFCxz0+1QPbK0Ijx9XBbsz1tLNS8hcGCHk 1ThAXjWfj65rkRwEfxYK/LHZieMR66jk+aV8WprTxWTw+G1L6nzQYOQaK1vBMBIeqGje9ikoV tuRj1xebbP4If1exXGat4LeJy4e6NE/Azq0IZofnwhhidie/s41ex+YS7HZGQv4cpNZ/A8vwX WLMExJYax5cVtpY6912nfMm9LI4Duae9suB7ovbs8/rcg9dL8SjumuzTPbPbaAcpMqDrAbInB 8tcOB/N4LYTM3oO3kDf4rpJlqcJcaH2XfRQaFRSnjrNmYlGQopywuYP1/cIz3TcxOJALHJZUL HSwCgDXOaAnUx/AmDcEn3YjyKyR2q4Pxa2VGL9MTyxLscrUIdUk0p3abh7tiTSRFLvzjlNy7g B8roXL388xSPw9blrX3gC4F+4FjDZ80ZgyVmH1SdNQ== X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR,URIBL_BLOCKED autolearn=no 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 --0Cqt7gF9l+Mxlu9M Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 13, 2023 at 09:52:28PM +0300, Alexey Dobriyan wrote: > Make it slightly easier to see which compiler options are added and > removed (and not worry about column limit too!). >=20 > Signed-off-by: Alexey Dobriyan > --- >=20 > Makefile | 22 +++++++++++++++++----- > 1 file changed, 17 insertions(+), 5 deletions(-) >=20 > --- a/Makefile > +++ b/Makefile > @@ -555,11 +555,23 @@ LINUXINCLUDE :=3D \ > $(USERINCLUDE) > =20 > KBUILD_AFLAGS :=3D -D__ASSEMBLY__ -fno-PIE > -KBUILD_CFLAGS :=3D -Wall -Wundef -Werror=3Dstrict-prototypes -Wno-trig= raphs \ > - -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \ > - -Werror=3Dimplicit-function-declaration -Werror=3Dimplicit-int \ > - -Werror=3Dreturn-type -Wno-format-security -funsigned-char \ > - -std=3Dgnu11 > + > +KBUILD_CFLAGS :=3D > +KBUILD_CFLAGS +=3D -std=3Dgnu11 If you want to put -std at top, on contrast to the sorted options below, you could also merge the two lines above. > +KBUILD_CFLAGS +=3D -fshort-wchar > +KBUILD_CFLAGS +=3D -funsigned-char > +KBUILD_CFLAGS +=3D -fno-common > +KBUILD_CFLAGS +=3D -fno-PIE > +KBUILD_CFLAGS +=3D -fno-strict-aliasing > +KBUILD_CFLAGS +=3D -Wall > +KBUILD_CFLAGS +=3D -Wundef > +KBUILD_CFLAGS +=3D -Werror=3Dimplicit-function-declaration > +KBUILD_CFLAGS +=3D -Werror=3Dimplicit-int > +KBUILD_CFLAGS +=3D -Werror=3Dreturn-type > +KBUILD_CFLAGS +=3D -Werror=3Dstrict-prototypes > +KBUILD_CFLAGS +=3D -Wno-format-security > +KBUILD_CFLAGS +=3D -Wno-trigraphs > + > KBUILD_CPPFLAGS :=3D -D__KERNEL__ > KBUILD_RUSTFLAGS :=3D $(rust_common_flags) \ > --target=3D$(objtree)/scripts/target.json \ Thanks for the patch. Reviewed-by: Nicolas Schier --=20 epost|xmpp: nicolas@fjasle.eu irc://oftc.net/nsc =E2=86=B3 gpg: 18ed 52db e34f 860e e9fb c82b 7d97 0932 55a0 ce7f -- frykten for herren er opphav til kunnskap -- --0Cqt7gF9l+Mxlu9M Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh0E3p4c3JKeBvsLGB1IKcBYmEmkFAmSxJoMACgkQB1IKcBYm EmlvNQ//cAJl2yEh6GztQ9N5MczsTK+goBJfyZT930kb7ogIqrUu2mL7WzbPEMou fcb+DIWEwoc+WSmRawUf2k9aGEkuiGzY4sVWFfDIxbJyfHaQEnIdQbFpP7Wg4iFW DAtlH8H2bi3sQgzPXDJHPbL+GmzppQHO/iEqUX8sco8Ti0N0vBt5foYSH8pgU3rZ V6g5sTxZ4potPKgA9T/686AkEGDwLgFz8OgdEz01lzOZ+Gwh+nXSDZRhjvachVGr C5d/cSno7DPDFmYK+JVkdXFi/waobG9agHW7YoqPMGBjCBvTH2Ojnm0mzIk5V5mf DsP2ZME0Hjn9mncuYDJCnb2CTPn6wG4qqlMz4I6S52Hfy7Y39YUpDdAilu/bWruE avCR2jQAtM7aOrRjuou1E8KzXJpPLAB+8OB8Lae6gadRPqRral3LdUcW9rJnXHOw nQUZaQmgtYgMyeMgPf3jYVpnWbKh2wze5O7aYiYG3ERs+S0vReW/u5KPXUxDhmHy s/Vy0FqgSHjyWimy/ie8cxl9gpkjuYYhKEn973/GtOl6IcA3VdA5kuwYGXXixiyV C3ofKI3HbCs02chIpTdlzIgoEVzq/FtKvXa9Fby15zzWt4ySCtv939r5P7OIzpbL dpMo9jhN8bEB/wpswoTRuscEHpP5AhAm2obe1A4NY6OJoONCKsw= =QTTE -----END PGP SIGNATURE----- --0Cqt7gF9l+Mxlu9M--