Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3002174pxm; Mon, 28 Feb 2022 10:04:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzG8bbg8HWPtpZFrMCynz/MJ4mfyD+IBTesHhCFqXTfMdYU28BdENQvf00R0zsd7xMOtnXw X-Received: by 2002:a17:90b:94e:b0:1bc:c99f:ede1 with SMTP id dw14-20020a17090b094e00b001bcc99fede1mr17971616pjb.49.1646071488670; Mon, 28 Feb 2022 10:04:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646071488; cv=none; d=google.com; s=arc-20160816; b=j/ZCHyQrGSveYaeU2u+vgAGBvo5002LfU9YI8EIDWi7LjbBX2lS+/DUiSCgvb16Z84 nHXoT8aGfYmVKnGe7xVwjPa6J3w1dICP2iGBGjZmp/tE91xH4jRDsZfQQ53AP2001chp eIXwAS6Pj+gF0r1V43/tEFus7w/Z/bdcnT2F32kiJ0xHTME3g0/ixga7rHT/L937pSvc UW92i1BPWapp5C0XfdPtVcBgIK4IkO4+CRNJUl6irMqGqo2extVRRyOADc/jC+FT+7Yj g+x4Y8JkY1wbRelksEb06acD9mCnf2qCqxWXzl63FOuxQtgcW+rIs4ZNehVyKYwls4iH 5Hjg== 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:dkim-filter; bh=sryAZLDXD/t7zVmI+J82zVk8l2yloq/oD0nvYGiN984=; b=pVQrb3ZsCRtoXfhNGoXBwdjhL2YfL8tqfDK7zN3xBm2+wvdvsnQ5MaArWQ4YuOiHqi wU3AvX0xB3M1FfShj8MC7jlnJGay0PxKXD1iDFN50uiM9COMO6i35hKnoNrHys+a91tp h8RcKNZNavQIeWMZr5C4NPmb+5wYWxuV2xzPo+y39GIioZb90qSeVPbMPWsUUgWO9UDo g1EcoEdY7UDi01URqHPeXPAAQO4FsNA48P4v23+QxJWU424kJzmVBu0w/lbwEQmLcW7y nTaUmkRX/+0zVk7CGFJOeEsQ76suKmUsi/AyhSDmTqQys4o84vGhfQjX9eHwtNb/oTCZ ny6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=DFAl9D3d; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i131-20020a639d89000000b0036327202757si10696556pgd.123.2022.02.28.10.04.32; Mon, 28 Feb 2022 10:04:48 -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=@nifty.com header.s=dec2015msa header.b=DFAl9D3d; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238084AbiB1REt (ORCPT + 99 others); Mon, 28 Feb 2022 12:04:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230393AbiB1REr (ORCPT ); Mon, 28 Feb 2022 12:04:47 -0500 Received: from conssluserg-03.nifty.com (conssluserg-03.nifty.com [210.131.2.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 952DE1CB0B; Mon, 28 Feb 2022 09:04:05 -0800 (PST) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 21SH3bcT021027; Tue, 1 Mar 2022 02:03:38 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 21SH3bcT021027 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1646067818; bh=sryAZLDXD/t7zVmI+J82zVk8l2yloq/oD0nvYGiN984=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=DFAl9D3d5SV7l8OlblFtkdudyppXM87TTXLJkKaFiDrnHYA5wFLCqpf/bi6XW+/lL Wxcxf4DRuPeQzgRVRD0ZLZqGJVyV92OkIiBQSKCRD0fkbmGaM77V1X8/io54DfJJE1 WHjVeTmICFjHCNQFMP84l0KM6p9KeusZdxBvunEoZ/3O0KaCmfcm9xJcBOxDBliQLy v2hLNwthpmWXp3NyaQ3wZjDjgPQxfdr5sC/vbH+pTH2mOrDULVuZBpmLb5vfOGA989 Xl28AGykKx2Snuz0kqy9XcABSVfqA/+0wAkzfvVhA8SShTSlLQBtapcr4hUau+8ujK GQtrmak7eUByg== X-Nifty-SrcIP: [209.85.210.175] Received: by mail-pf1-f175.google.com with SMTP id d17so11571637pfl.0; Mon, 28 Feb 2022 09:03:37 -0800 (PST) X-Gm-Message-State: AOAM533Kduz81j7AsM7VC+DQ+9nUnmn6KGNAdT7DNcrqjsqOTNl+XNCZ gEKSzMo1exb75ZkpaPM186/945eCf/hAUmmpbiA= X-Received: by 2002:a05:6a02:182:b0:374:5a57:cbf9 with SMTP id bj2-20020a056a02018200b003745a57cbf9mr18072494pgb.616.1646067817034; Mon, 28 Feb 2022 09:03:37 -0800 (PST) MIME-Version: 1.0 References: <20220228103142.3301082-1-arnd@kernel.org> In-Reply-To: <20220228103142.3301082-1-arnd@kernel.org> From: Masahiro Yamada Date: Tue, 1 Mar 2022 02:02:53 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] [v2] Kbuild: move to -std=gnu11 To: Arnd Bergmann 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@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE 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 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, ... > 'make W=1' option, as well as for three drivers in the kernel that always > enable -Werror, but it was only observed with the i915 driver so far. Same here. enable -Werror, but ... -> enable -Wextra, but ... Otherwise, Acked-by: Masahiro Yamada Please let me know if you want me to pick up this. -- Best Regards Masahiro Yamada