Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2881528rwp; Fri, 14 Jul 2023 12:58:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlFTyNi0NSAZFiJ57fYGcqLtARh++igIOASyargLtMx6SQBcbtkmbXFU5jMvCh33nxhgxn6b X-Received: by 2002:a17:902:ecc8:b0:1b6:b1f3:add5 with SMTP id a8-20020a170902ecc800b001b6b1f3add5mr5351814plh.27.1689364719591; Fri, 14 Jul 2023 12:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689364719; cv=none; d=google.com; s=arc-20160816; b=aEj5kZ2vMSDjP5CgJePsVazDde5UKCWuqNNHKMR97BTX0YwCEGqExWih4rIW8gSQ0n Edd0cu0uH88ApcDTGiIYd7YAsMH9P/4ljFJ0XeQm/+NZ3+jtH8q87IzE8eq2ZBHVm/Vr 60IxOuW8CchZXTYydwus+ksTh0M/TpQpZKvxMExHzShrkzXd7voLc3+Qsk+ABdPFu5GZ 9vE1DrydZk8fEmbwR37F7HDrHTK5tkW1O+XSd/vVxO2ZGSzhkWJ2A79Wp21e79uZQW5M 23z8S2tffT2cHCNLExN3kgf6lQ6oWyuv1oeBbnH2bR5lHPVZ1+SoMfkwasQ1Bf5sPock n/hw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zJuFRWEOY86jAXJfCDXynYpwtKxPKI5ZWFsy8m9iG2E=; fh=KUEAoECpQwX3XLmeHkjr6bOgxewzLZp8d9EAWx7hjWs=; b=XuB+/7moi/R3TNijHLEm/j1zGvXN97IPD/7elUD1R8peSzpRx7XlXrKi73VJtYYkar SIVqgVyciq8H1Xru0E0QclMmMR5cDuS1lVeYRqiUjUONzakSZSfWc0sBmJhLdQDg/rIr bYS3toylPUSwKRuJyieapeANL94zTND7sL1DYkOgyq7/SFo4lkyFyYSXYFln7J/bBwHB m/3HfjLoLmxA7PUJoE3z3Ztcm1zebe1203PxWWEMuUv155TLLEfjTZCdLLzPv1hc9TNj Uv43eol6hduL4QBDwvE5uh50Dusv4IetzCbVi7RkkIBxFpcm71hDgzsHtqIj/+QSv15F tMjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fjasle.eu header.s=mail header.b=TQhYJXlY; 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 n7-20020a170903110700b001b9c17240desi1613941plh.466.2023.07.14.12.58.28; Fri, 14 Jul 2023 12:58:39 -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=TQhYJXlY; 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 S236375AbjGNTa7 (ORCPT + 99 others); Fri, 14 Jul 2023 15:30:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230093AbjGNTa5 (ORCPT ); Fri, 14 Jul 2023 15:30:57 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F04A3A84; Fri, 14 Jul 2023 12:30:51 -0700 (PDT) Received: from leknes.fjasle.eu ([46.142.49.15]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MUGyh-1qTVA632tX-00REWL; Fri, 14 Jul 2023 21:30:13 +0200 Received: by leknes.fjasle.eu (Postfix, from userid 1000) id 249BC3E8B2; Fri, 14 Jul 2023 21:30:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fjasle.eu; s=mail; t=1689363012; bh=CISj4qU9OcEeQGiukeYRyVdl6TwuDHKzkw84duv5uOg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TQhYJXlYNhUA8LuEu3QcFFlBGoJszh3QDoycoPRXrkQony/dLev6cSqroq1DNN34V MzY3u/9fItFdTHT6t0UgBgfjLX0t7mkv7ke89PU3aykkr1uNJNFgeHn1jWJtsUCM7m 0PQO16AoHHweFpz4/lAhptzi/ISKnms/7g7iXZPE= Date: Fri, 14 Jul 2023 21:30: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: References: <4f414a87-0c54-44bd-b218-f6f0b22c57ef@p183> <4dc7e56c-6692-4d4c-a8d2-05abe4501e66@p183> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4dc7e56c-6692-4d4c-a8d2-05abe4501e66@p183> X-Provags-ID: V03:K1:RV94P47dRwqIWQzk2E1jpf7PQqVEUEbiiKo03YWPfAdjKM/YZSz XuOdV/Y1JikVgCIKGDJU5DMdgAjuEnV12nvb44/csvihOjs70L7PWppKOUQrytHOj9zwATH 8e11Ch1wLsUSMdkWdxoS+kGsu5PYcjo86oaSVaZ33E9gZnrRZcyFWC9vevHTk0LiQXEFsMi hsB/i+FwnLNXY3YGAW4sQ== UI-OutboundReport: notjunk:1;M01:P0:Uc1P/VNFwcE=;v+jzC2Sc9Qq7gBx8sn68yFh5AYB 0l9Rp0e2vuTltDs7wUfq9YrxoOonpuwYc9lHoZmO5THB+BvsJHy86xFbd8GtrHxiBLypA/cPW HV8MjW1mCqb4NeNR/oDvllhozSRbCA0bGfrvLmzq9xjpRJpIWbOGq+SNnVa6oDnSH1UScLzyb 86AXdewm8qv6sMek090zdsBetcKiZjjRO7sl9QzcpE6ZZ5J6aRn6Qc7Xq+MxkDMxiK6ZX5UjC BaV+FtrSf9hWKU7Z57ZiEm3iKlVPRR+Qucc/5IQdNu1WwrdeZElUw2lrv9ptwgOfrsuwShvuR J3n8BvXAIbs/vDjaM5k79wdjpDt7USi8+0A9oPgSoVG0Dg9kwrtMfRqV6+G8JI/INe63F6FEJ K3w2puoN3RF6adwIoADH5RMUw10A6UjZy8Px14PTFwpABhChGA7w/Gpi7PM3hU6wioJNzNijv 5exjSEAtO7sEZ6INSS/6ajMtV7WlejogYznHgNdO6CJivw0e1WHooVf2D+t0yKOldiUfd+nre l5IngG4LKP6HdL6J/ngrVANOsK4pyqgk+WB2gOCOL5Big0x4ZGyS9lvdiNjqPtXxmBfpKY5GW 1xTzi4i0sdTyy03PftY1O594OFKBJdIk1rsM62l5Y4PGQ8mBWFzaYJcgVfDefl7aheoQ6kpXc RlX0auM/QuXYGiRx4kx2ZxI1pIaj9WaSBnjVmS5GUg== X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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, Jul 14, 2023 at 08:45:00PM +0300 Alexey Dobriyan wrote: > On Fri, Jul 14, 2023 at 12:42:11PM +0200, Nicolas Schier wrote: > > 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!). > > > > > > Signed-off-by: Alexey Dobriyan > > > --- > > > > > > Makefile | 22 +++++++++++++++++----- > > > 1 file changed, 17 insertions(+), 5 deletions(-) > > > > > > --- a/Makefile > > > +++ b/Makefile > > > @@ -555,11 +555,23 @@ LINUXINCLUDE := \ > > > $(USERINCLUDE) > > > > > > KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE > > > -KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \ > > > - -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \ > > > - -Werror=implicit-function-declaration -Werror=implicit-int \ > > > - -Werror=return-type -Wno-format-security -funsigned-char \ > > > - -std=gnu11 > > > + > > > +KBUILD_CFLAGS := > > > +KBUILD_CFLAGS += -std=gnu11 > > > > If you want to put -std at top, on contrast to the sorted options below, > > you could also merge the two lines above. > > I don't know. Standard choice is arguably the most important option > so I put it first. yes, I think I would have put it on top, too. I just would write it this way: KBUILD_CFLAGS := -std=gnu11 KBUILD_CFLAGS += ... But it is bike-shedding, ignore it if you're not convinced. Kind regards, Nicolas > > > +KBUILD_CFLAGS += -fshort-wchar > > > +KBUILD_CFLAGS += -funsigned-char > > > +KBUILD_CFLAGS += -fno-common > > > +KBUILD_CFLAGS += -fno-PIE > > > +KBUILD_CFLAGS += -fno-strict-aliasing > > > +KBUILD_CFLAGS += -Wall > > > +KBUILD_CFLAGS += -Wundef > > > +KBUILD_CFLAGS += -Werror=implicit-function-declaration > > > +KBUILD_CFLAGS += -Werror=implicit-int > > > +KBUILD_CFLAGS += -Werror=return-type > > > +KBUILD_CFLAGS += -Werror=strict-prototypes > > > +KBUILD_CFLAGS += -Wno-format-security > > > +KBUILD_CFLAGS += -Wno-trigraphs -- epost|xmpp: nicolas@fjasle.eu irc://oftc.net/nsc ↳ gpg: 18ed 52db e34f 860e e9fb c82b 7d97 0932 55a0 ce7f -- frykten for herren er opphav til kunnskap --