Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3064204pxm; Mon, 28 Feb 2022 11:16:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwClIwIjQZr3nJzaRiZOAWWf3r/g9vzHJm1aIBJpsIpLBFmVcmM0vg/uqQ6niskFhQ+8+3S X-Received: by 2002:a17:902:7b8d:b0:14f:f1c2:9ff4 with SMTP id w13-20020a1709027b8d00b0014ff1c29ff4mr21859802pll.54.1646075765653; Mon, 28 Feb 2022 11:16:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646075765; cv=none; d=google.com; s=arc-20160816; b=kwzQnw0rEijoOxB4VVGetEwlpbSWhOVNcy+wVK1UuBQQXD6XXxIFn46jce5Ovg1As4 hP+UFFcOXvaGo8p7QO8jv4Gaa2l5kzLGSKbBOWtPe7Y0aJwkl3Z3KJ09yjE0lw7DJDmg dHJswwT4MYBZjsrVbIgYzkQdQOJC4hTrAHw495BVyaQ1m7tV70HSfePS25EUIpNSkrXc 2E3H1OWfxLzQRW++f9aQcCU9yDcod7tw4CI9EdD5DfiI5vy2lL2p+E/xZD3oXyrwLHm0 8ZB+TmO/ddLqp0RWh7vT28bQKQ7BVaBA9DXUW5tyhftlsHnZRFx3LUzK7qMAm4tKsmWd QmTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OmO9VAbIva/PioYrLYgonNRZquXcDPFKEgzOlTJoJjo=; b=rywSBNFLF3gB06Ph3aPftLoMAqhIUHNBHu8G5r+H0iJ3tHBDdqoo/9ll9+a5WD6R/z m5Ap4CZ1SjbyZSTQZMi0zXuOASNKyqEqd4afT/d03OAGHp0RRhc48p5MGbOfV4dfl90q p4vbgEJ05/LO4jc19aI/e18Py3WxEQbbVA4QdHaZU3w/6W3dodUs5fl6uV3yEvM88uDq mCZPi14SXInuNKWBgAoDElnqgb8D9ut1LRfFqAQ2oPmtt0IqZvledLQ67u2SgT18Q5+o szXnRPCTl2+Ymt7OeoiRHBqavgEeV2i6igkGEJEMHDk8jwTsiqldJq+sahbno4Ru/1eG h+WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bW1ZFMo5; 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=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u134-20020a63798c000000b00378907d22f0si4499505pgc.210.2022.02.28.11.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 11:16:05 -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=@kernel.org header.s=k20201202 header.b=bW1ZFMo5; 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=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 65980140F9; Mon, 28 Feb 2022 11:07:51 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240565AbiB1SjF (ORCPT + 99 others); Mon, 28 Feb 2022 13:39:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240711AbiB1Si1 (ORCPT ); Mon, 28 Feb 2022 13:38:27 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87ECB403D2; Mon, 28 Feb 2022 10:25:13 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 238B0614DE; Mon, 28 Feb 2022 18:25:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81FD1C34103; Mon, 28 Feb 2022 18:25:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646072712; bh=W7p79vSB6J1+jxnozFyNib9GmWcAolUohfmSDG//bFo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=bW1ZFMo50q0kPFmsangI6ntG68WPn+8ztd5psh0iHHbmPXGd2Do9g5exX/orPNmoF TbileAdECwDuGZ3+humcDGlnOjlNYxeI3qAjbFLAsFhTc2LHic+YIf2ERa75osRNhn Kqq71bFPRaIovWhnQvFqOiR1ebj4qUhN855gks3wvS+rvdXKdGJUNfOOen3tcmT4S7 zpLTE7SvQlwyFubmoSBvPJGw1f5VxlcwUT5kGQbM5VRWy3yFRzf9kbennsbklNWQnr VImWf5/+PDhsYj8Ik1QLewhHGzp4RLahjjkzTll08wtY5vt0rMq16dXAFWp3Qw6QCA 7XcyjSwBnCISg== Received: by mail-wr1-f52.google.com with SMTP id x15so16815769wrg.8; Mon, 28 Feb 2022 10:25:12 -0800 (PST) X-Gm-Message-State: AOAM533q1QV2TFZAYL7lfjx745a6mZg9ITyWxPfglJbLui3J7j+DJS6v TgRBG6SrT7r7vfUmSEs2ngUI9+Q7XvTeE/2quzk= X-Received: by 2002:adf:edc3:0:b0:1ec:5f11:5415 with SMTP id v3-20020adfedc3000000b001ec5f115415mr14857770wro.317.1646072710661; Mon, 28 Feb 2022 10:25:10 -0800 (PST) MIME-Version: 1.0 References: <20220228103142.3301082-1-arnd@kernel.org> In-Reply-To: From: Arnd Bergmann Date: Mon, 28 Feb 2022 19:24:54 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] [v2] Kbuild: move to -std=gnu11 To: Masahiro Yamada , Jani Nikula Cc: Linux Kbuild mailing list , Arnd Bergmann , Linus Torvalds , llvm@lists.linux.dev, Jonathan Corbet , Federico Vaga , Alex Shi , Hu Haowen , Michal Marek , Nick Desaulniers , "open list:DOCUMENTATION" , Linux Kernel Mailing List , linux-doc-tw-discuss@lists.sourceforge.net, linux-arm-kernel , intel-gfx , dri-devel , greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-btrfs Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Mon, Feb 28, 2022 at 6:02 PM Masahiro Yamada wrote: > > On Mon, Feb 28, 2022 at 7:32 PM Arnd Bergmann wrote: > > > > From: Arnd Bergmann > > > > During a patch discussion, Linus brought up the option of changing > > the C standard version from gnu89 to gnu99, which allows using variable > > declaration inside of a for() loop. While the C99, C11 and later standards > > introduce many other features, most of these are already available in > > gnu89 as GNU extensions as well. > > > > An earlier attempt to do this when gcc-5 started defaulting to > > -std=gnu11 failed because at the time that caused warnings about > > designated initializers with older compilers. Now that gcc-5.1 is the > > minimum compiler version used for building kernels, that is no longer a > > concern. Similarly, the behavior of 'inline' functions changes between > > gnu89 and gnu11, but this was taken care of by defining 'inline' to > > include __attribute__((gnu_inline)) in order to allow building with > > clang a while ago. > > > > One minor issue that remains is an added gcc warning for shifts of > > negative integers when building with -Werror, which happens with the > > Is this a typo? > > building with -Werror, ... > -> > building with -Wextra, ... > I'm being slow today, Jani actually pointed out the same thing and I misunderstood him. Fixed it now, thanks! > Acked-by: Masahiro Yamada > > > Please let me know if you want me to pick up this. Yes, that would be great. I'll send a v3 with the updated changelog, but will drop most of the Cc list as there are no functional changes. Arnd