Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1654568pxm; Fri, 4 Mar 2022 00:31:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzumjOot4UTDwcDCNkaZ2b9tTqFEWPW2v6KSv4FtxQDlz8PR6fa5WRQoo4GzUydNcsPXb5o X-Received: by 2002:a63:83c1:0:b0:37c:b3c2:9016 with SMTP id h184-20020a6383c1000000b0037cb3c29016mr1195539pge.143.1646382686487; Fri, 04 Mar 2022 00:31:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646382686; cv=none; d=google.com; s=arc-20160816; b=aqSbyxOBwUxecSCLNPH2cw/hxoJlwdV0aCbDotYuwIwLX1o/BYndQkPhqCZW3rvrkQ 3Bnikmeh05/+hIJWRhN93tvvg4QkOHmwp3u1KNPFNHYihubXD5GIMmkD6sZidXNE+RcN 4ILR0W/QbEH4X66afhQi+MpDXjg5Nh8bB5VK7Cp26F8a+gwq8sESLD38/W48MIoNYAF2 mFtzDF0WU4kX0CmMlbMpg8yDqv7uFnwe/IkmMpPcYsskZCnqRgo6vQZNWZ903McIIJaC EKbhrDbPj5vbkj6l20M3XU2kNSdLloxpk7MHqpoghDar+s+3z8m8GzwNARRR+OOBZ4qX j7Mw== 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=j23UEdgmoD3PT7cpFQAiB9cWyyGiVLaUvaBGU1GyBnM=; b=guMltq5sV/EzkbtjKZLFqtB2pmqPYwMhAUsq9zI3AQdAAcOP8J/GDT0MbdBdm1PDER 0GzWn4wuL3KjH+E375r1VPrvlHeaVAC3Q0WrICWNQCFYh3tikvXtMWbNRobjmgr16XCV phRm2VvPiJNboMOoThfoiexClMBQFmo+XZSJOAa6cPrYjDYShGawuGfmtj5f/a3NayQn QZ0rUgsDA0G8qwW4CZ4P+wlzIxrztt9n+5TuuXfXn54GGe6N0G1Vs/WFsVpbs1ycuR1U sP1xNRPrFQBwlEh7Aah61T8uwtfgCaRStHvDkVmbiXB+too2ofzyEEgDTPuz6sdtzixj SSgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=O4anCBKr; 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 o13-20020a056a00214d00b004e1d44a8cbdsi3644470pfk.311.2022.03.04.00.31.12; Fri, 04 Mar 2022 00:31:26 -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=O4anCBKr; 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 S238564AbiCDGst (ORCPT + 99 others); Fri, 4 Mar 2022 01:48:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236380AbiCDGsr (ORCPT ); Fri, 4 Mar 2022 01:48:47 -0500 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 903F74DF5C; Thu, 3 Mar 2022 22:47:51 -0800 (PST) Received: by mail-io1-xd32.google.com with SMTP id d19so8560028ioc.8; Thu, 03 Mar 2022 22:47:51 -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=j23UEdgmoD3PT7cpFQAiB9cWyyGiVLaUvaBGU1GyBnM=; b=O4anCBKrsFyHyGzL2RF8B7cVoEGN7VorjGDN2lWfWk7InIipFAsHECPDsdOCfaRbpB 2Kt82y1BnVO5YHOf3TxW7h/ybyzM3bT9MqjlwgrpF2WtQIymp3JrcV5QOJEJ8rNAIy4a PLCK58ysJgdl6mAUW1D1vHWF/bPt2T/nCsKva5+pRKypjda9JkxpjO555iUWjqjtp6yX zHOy96yoFqH9Ox7QiF69+hVa9y7GMf1LfN3bnbRccWkQk1lRwTQ5rw3V4NJLJHSc6e0c VwIf3JuNMtpCudUkuFthPr30ar6Xx9zkMXFuboIjXHL3QE+cBaOVO72cXXKQ0MYLNUUC qmAQ== 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=j23UEdgmoD3PT7cpFQAiB9cWyyGiVLaUvaBGU1GyBnM=; b=EIWJKxLuaZjNPU0LmcF8cDkwAq9ngR+mdK8bsVpJCGcbFbjpMPcLDvzWHYpAn9yq47 Icd443w3TnxHlDHSPJxGJEWejQaeQ8MUUNzCfKYbOxSR71OgZ3U/Y3bxo0RKb6orkhCM WLRC5ME66XoaWdf8woMGmJexguOVua8cULNdOU1dSI/TQ9yz75sKn1qq8z8eOxZWfwl0 Esmaz7Tu7i6oZBYCmF15YWMAJTn5kqMBdJEH0KjgLmRfAosgOq8vpPCIKGH+O/o0No2L dlDWx/hEGVDmoyHKAVtl8iwhpIt91Jt+HHHh+E/w5Ru/BZG75HBw+3+JvFBaDZqwOyb0 ukZw== X-Gm-Message-State: AOAM530QWvkRdgD7Nl6oOSuSxW7IAvy26KMZXE/uLE4LLVfu10TPlUpO FLi+ws4Jt91Kni9DdMlxbnFK7iTvlofHV2tlHwU= X-Received: by 2002:a05:6638:a9b:b0:317:12d1:5a46 with SMTP id 27-20020a0566380a9b00b0031712d15a46mr15095078jas.306.1646376471271; Thu, 03 Mar 2022 22:47:51 -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: Fri, 4 Mar 2022 07:47:14 +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, WEIRD_PORT 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 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-arnd@kern= el.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@kernel.or= g > > 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. Lemme see if I can apply this patch... # cd /usr/lib/python3/dist-packages # LC_ALL=3DC git apply --check --verbose /root/b4-shazam.patch Checking patch b4/command.py... error: while searching for: sp.add_argument('-M', '--save-as-maildir', dest=3D'maildir', action=3D'store_true', default=3DFalse, help=3D'Save as maildir (avoids mbox format ambiguities)= ') def cmd_am_common_opts(sp): sp.add_argument('-v', '--use-version', dest=3D'wantver', type=3Dint, default=3DNone, help=3D'Get a specific version of the patch/series') error: patch failed: b4/command.py:35 error: b4/command.py: patch does not apply Checking patch b4/mbox.py... error: while searching for: ifh =3D io.StringIO() b4.save_git_am_mbox(am_msgs, ifh) ambytes =3D ifh.getvalue().encode() if cmdargs.applyhere: amflags =3D config.get('git-am-flags', '') sp =3D shlex.shlex(amflags, posix=3DTrue) sp.whitespace_split =3D True error: patch failed: b4/mbox.py:262 error: b4/mbox.py: patch does not apply Nope. Dunno if I am willing to do that manually or build-from-git. Anyway, can you add this b4 shazam tipp/trick to our wiki, please? Last question: LLVM/Clang-14... Do I need any patches to Linux v5.17-rc6 or upstream Git? Dependent/Independent of "std-gnu-11"? I can see on my Debian/unstable AMD64 system: # LC_ALL=3DC apt-cache policy clang-14 clang-14: Installed: (none) Candidate: 1:14.0.0~++20220301114802+19149538e9a9-1~exp1~20220301234814.85 Version table: 1:14.0.0~++20220301114802+19149538e9a9-1~exp1~20220301234814.85 99 99 https://apt.llvm.org/unstable llvm-toolchain-14/main amd64 Packa= ges 1:14.0.0~+rc1-1 99 99 https://ftp.debian.org/debian unstable/main amd64 Packages 99 https://deb.debian.org/debian unstable/main amd64 Packages The one from apt.llvm.org I guess is LLVM/Clang v14.0.0-rc2? Maybe, I wait until Masahiroy has the triple in his kbuild Git tree... Thanks. Have a nice Friday, - sed@ - [1] https://git.kernel.org/pub/scm/utils/b4/b4.git/tag/?h=3Dv0.8.0 [2] https://git.kernel.org/pub/scm/utils/b4/b4.git/commit/?id=3D7c1d044ff1d= 5235e598d4c777c4abfe60e0a09a8 [3] https://github.com/ClangBuiltLinux/linux/wiki/Command-line-tips-and-tri= cks