Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1120607pxp; Sun, 6 Mar 2022 06:19:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbM7zgvnH+D8KMGyzg0IiNKL/yt4fmUX0JYPIFKpj10bmEjBRaf9BPM8hLMkxjXQEAP1Zj X-Received: by 2002:a17:903:247:b0:151:b174:fba9 with SMTP id j7-20020a170903024700b00151b174fba9mr7809727plh.79.1646576396482; Sun, 06 Mar 2022 06:19:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646576396; cv=none; d=google.com; s=arc-20160816; b=0yWxV9UQbi/KlQI3od+M4KAPj6I13C4hTp20OBuJSe84YpLCgOXUhSIuCnSy0vHdIk BFps696x0Gys6f6F6yPyyVRGZ6Ne+EUOvccGu87xmF+p4+TgtX+klJ3IVcSQ4ETtHwb7 VfYYKwjTo9nkkcCoQk2sm7/w2/pKVX4CxkOio5WjkkPjACUFitGBe5PW+OHgnQGiSSK+ QTZ0A64uEAzrFrUvEpeBhkhKJP+bQ8mTZ2Ru+V+Vz8OCnsSV9eqrfFH5IeSj1rPkdHjt op4Qrh/sjA9yFexou6nXc4XZjZ4h4tguq/bla+ifMbUgn3O0TTsXVl/NH0DheqbXjHbM yOWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:reply-to:in-reply-to:references:mime-version :dkim-signature; bh=ESgklctOQqYlZPJTzsNo744f6q9u/AsDia/ttur2s+w=; b=cnBokx6Dew1N5V+vkIcvGf8vmaXDz+kth4n9cxzXHqgeceCpFBlsiSQg5E3qyNBfjU sFpbMrZ0zheEWxymJJj0E+JBLVOZ1X8iBmqMDN+H0maP1A3kfil8F9t6ZjJuSeFMiaod YlYyYyx7tJXn/+1zNDNhdPXUy9OeR8pb8D210u6Bqvv4Bn83s9trnmFFcJvmNEiW0Q8p 0iu8ATNsS6KTdW9BQJbmIuqIMA3VKe6uKRiXLSUwnENWxaYazKVA1Q4L7Mtmlu3KNy+Z AlnY93kWFMoeysduAdz7yLPf7nxqv9YS1UEzXY0K+It4CuyqUH/7gYd54nFdfDY7DFQZ tnow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pQh3qKhO; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r10-20020a056a00216a00b004e1baee50dasi9838018pff.36.2022.03.06.06.19.14; Sun, 06 Mar 2022 06:19:56 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=pQh3qKhO; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232812AbiCFKFy (ORCPT + 99 others); Sun, 6 Mar 2022 05:05:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiCFKFw (ORCPT ); Sun, 6 Mar 2022 05:05:52 -0500 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86C2F6CA5B; Sun, 6 Mar 2022 02:05:00 -0800 (PST) Received: by mail-il1-x130.google.com with SMTP id k7so9614910ilo.8; Sun, 06 Mar 2022 02:05:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=ESgklctOQqYlZPJTzsNo744f6q9u/AsDia/ttur2s+w=; b=pQh3qKhO1pOKJYjjzWwQpHgD4Ss8VhwZQ7Xfse8+PNobDLoi3Kr5jbqXShtcAVBsTy ++6Sd5HxdPMXOmA5lDBcAC+D57Yp1UFtRM293wvKUadPnrXk5t/6I3n5F4V9/4E5YcQH PCztAeXKbhirRmdd+5f35kSrektLI+2ysQsHTgzayQfdkF9l2Iy0Vu80U4OACpHXK7+2 aaRQUKcqI5VNei+Qpw9+wWLWULavLr0iDz0/gTkhfuHkgKwsJd2QbNMvLxIthOfFSdRs IIJ/03gccagXgb/k6MwQBpJ3qh1V8MfcL4KBmYKFqN5tuETuEoL/B4+WDPQYuKU/jgbI Znog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc:content-transfer-encoding; bh=ESgklctOQqYlZPJTzsNo744f6q9u/AsDia/ttur2s+w=; b=IVJIH+mh2xp/AruJNslFvtuy2X+BuL0vOCcCPzc+EVT50DPO+tFfUO42FGrbGxbZ7W /PJQFmpjLfZCH4bqrnXZc/ZPwXIhYAcSB5L/xXJGvI6Wu3BB1AQum1eUFrW/FmpxVWSN gl/XsJ83jJJ7XBXy9mT16h3CHJFp9YG1OXLqh10XjYyhe9sbTvrrGIAb003XnRyIVJxQ SKtpp2NYComfaiu+yR1wzFNTHF3xw4tE1OppDJ+pJVOykVf1nK39vXLx8pw/taud/pLv GSDmTBaMw5+wm/pVKHS9kaX5ZSSZuV+5Yz3s3+2/brf7Daac1EOS4zPT6GYo1GX2SfeK 0w0Q== X-Gm-Message-State: AOAM533oQNm5MIBqGmxpLZXVEAYkk8XYp7NVO9LW8vdWZPuDc9yDUJ9A 4WRqf2vooV8o4xJTEhd5rY2T6NwCuKJWu7eYbUU= X-Received: by 2002:a05:6e02:de2:b0:2c6:f14:884a with SMTP id m2-20020a056e020de200b002c60f14884amr6916885ilj.100.1646561099918; Sun, 06 Mar 2022 02:04:59 -0800 (PST) MIME-Version: 1.0 References: <20220301145233.3689119-1-arnd@kernel.org> <20220301145233.3689119-3-arnd@kernel.org> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Sun, 6 Mar 2022 11:04:23 +0100 Message-ID: Subject: Re: [PATCH 3/3] Kbuild: use -std=gnu11 for KBUILD_USERCFLAGS To: Nathan Chancellor Cc: Nick Desaulniers , Arnd Bergmann , Masahiro Yamada , Arnd Bergmann , Linus Torvalds , Marco Elver , Jani Nikula , David Sterba , Alex Shi , Miguel Ojeda , Mark Rutland , linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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, Mar 4, 2022 at 12:12 PM Sedat Dilek wrote: > > On Fri, Mar 4, 2022 at 8:18 AM Sedat Dilek wrote: > > > > On Fri, Mar 4, 2022 at 7:47 AM Sedat Dilek wrot= e: > > > > > > On Thu, Mar 3, 2022 at 6:37 PM Nathan Chancellor = wrote: > > > > > > > > Hi Sedat, > > > > > > > > On Thu, Mar 03, 2022 at 07:26:05AM +0100, Sedat Dilek wrote: > > > > > Hey Nick! > > > > > > > > > > This only applies 1/3. > > > > > > > > > > $ b4 --version > > > > > 0.8.0 > > > > > > > > > > $ b4 am https://lore.kernel.org/lkml/20220301145233.3689119-1-arn= d@kernel.org/ > > > > > -o - | git am -3 > > > > > Analyzing 14 messages in the thread > > > > > Will use the latest revision: v3 > > > > > You can pick other revisions using the -vN flag > > > > > Checking attestation on all messages, may take a moment... > > > > > --- > > > > > =E2=9C=93 [PATCH v3 1/3] Kbuild: move to -std=3Dgnu11 > > > > > =E2=9C=93 Signed: DKIM/kernel.org > > > > > + Reviewed-by: Nathan Chancellor (=E2=9C= =93 DKIM/kernel.org) > > > > > ERROR: missing [2/3]! > > > > > ERROR: missing [3/3]! > > > > > --- > > > > > NOTE: install patatt for end-to-end signature verification > > > > > --- > > > > > Total patches: 1 > > > > > --- > > > > > WARNING: Thread incomplete! > > > > > Link: https://lore.kernel.org/r/20220301145233.3689119-1-arnd@ker= nel.org > > > > > Base: not specified > > > > > Wende an: Kbuild: move to -std=3Dgnu11 > > > > > > > > It looks like the threading somehow got broken, likely due to the [= v3] > > > > on the first patch and not the second or third: > > > > > > > > This worked for me on v5.17-rc6: > > > > > > > > $ for i in $(seq 1 3); do b4 shazam -P _ 20220301145233.3689119-"$i= "-arnd@kernel.org; done > > > > > > > > "b4 shazam" is the equivalent of "b4 am -o - ... | git am" and the > > > > "-P _" tells b4 to only fetch that exact message ID, not the whole > > > > thread. > > > > > > > > > > Hmm, the universe is not good to me... > > > > > > $ for i in $(seq 1 3); do b4 shazam -P _ > > > 20220301145233.3689119-"$i"-arnd@kernel.org; done > > > usage: b4 [-h] [--version] [-d] [-q] {mbox,am,attest,pr,ty,diff,kr} .= .. > > > b4: error: argument subcmd: invalid choice: 'shazam' (choose from > > > 'mbox', 'am', 'attest', 'pr', 'ty', 'diff', 'kr') > > > usage: b4 [-h] [--version] [-d] [-q] {mbox,am,attest,pr,ty,diff,kr} .= .. > > > b4: error: argument subcmd: invalid choice: 'shazam' (choose from > > > 'mbox', 'am', 'attest', 'pr', 'ty', 'diff', 'kr') > > > usage: b4 [-h] [--version] [-d] [-q] {mbox,am,attest,pr,ty,diff,kr} .= .. > > > b4: error: argument subcmd: invalid choice: 'shazam' (choose from > > > 'mbox', 'am', 'attest', 'pr', 'ty', 'diff', 'kr') > > > > > > Do I need a higher version of b4 (here: v0.8.0)? > > > > > > Check myself... b4.git: > > > > > > commit 7c1d044ff1d5235e598d4c777c4abfe60e0a09a8 > > > ("shazam: change default behaviour to be "apply-here"") > > > > > > ...is post-v0.8.0. > > > > > > > I brutally applied the post-v0.8.0 patches stolen from b4.git over my > > local distro b4 files. > > > > And was able to apply the triple: > > > > $ git log --oneline --no-merges > > 5.17.0-rc6-1-amd64-clang13-lto..5.17.0-rc6-2-amd64-clang13-lto > > 96a4222bdd4c (for-5.17/kbuild-std_gnu11-arndb-20220301) Kbuild: use > > -std=3Dgnu11 for KBUILD_USERCFLAGS > > c4e8cef401a8 treewide: use -Wdeclaration-after-statement > > 6a7cc105b238 Kbuild: move to -std=3Dgnu11 > > > > I was able to build and boot on bare metal. > > No new warnings in my build-log here after switching to -std=3Dgnu11. > > Tested-by: Sedat Dilek # LLVM/Clang v13.0.0 x86-6= 4 > I have re-tested with Debian's LLVM/Clang v14.0.0-rc2. Tested-by: Sedat Dilek # LLVM/Clang v14.0.0-rc2 (x8= 6-64) - sed@ -