Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3654825pxm; Tue, 1 Mar 2022 02:47:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOPdTNLnkbRsbQPl8nTGmWeGd3QuZKFc8n1vwGD5w3wOYAPbhKGQePSw94RrN2cDUgsTrW X-Received: by 2002:a05:6402:1148:b0:413:11e0:1f58 with SMTP id g8-20020a056402114800b0041311e01f58mr23836177edw.113.1646131645115; Tue, 01 Mar 2022 02:47:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646131645; cv=none; d=google.com; s=arc-20160816; b=Zp3vII3d9fwWlfcrCXqNnOvSj2Opn0LMkDi2xZ5dVhhMOChP//EUZPXoq2M3Zk/9ae XXuXbM21WPOHNdrDLOWkIvG/l2JnCwTVRHEX04bg8ZtT2b4IL3LFE6S/37HF+ql77p4G q3uDpUlzNoZk6oWibYVsfhv3BYVmgg9elDE9sVo6LJKhXkXgtGj+E2PffIui+QE3+m8w ODoFmfnEYRZqhDA8M0UubIvjRXcTgKcXPZ9pRcsfxrPl5pbQdRi6V6c/rtqGTa7rQSWi YO7vjlNWlSRB2H6gfiyTAuWY74VHcNfnW9c4Fya9aFApElvJMzU96hk8cjtf7474uOeU udoQ== 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=dohQLzfhr7wZu6SxVtIw3CHG42SObGN2SXyswtlVBsg=; b=QrHF//omp5h7gFcLomTvatHOZtDQyF4tTAAh4kAmSgw2PVwvKc42Kd+bgXd+nSwZjm LZTIntSIyMxYYb9AtYpLRbCGfdOqa4le+rdKYZ4NAOFVbB4ayDNJgIgeg0Y5SPzOjAjv b52oIJfnRZ7P3h4T9k88TvVZmwjVqtyJXjgJcJKTPENjsoD9tgl4VS72kI7ms0kEgVQp 7HvrWSF4lHzWlfzrDObLrNLXfYBR18nGF07iid1NZsDRDbkBBKCEMm6ufB9B+yzQeYAd UKdLtmSjXAdyFNKXq2KuKlePo+Zx+p1x2ZrBypyFH5WP57gSksgJPNlZwITEobRotMff +K4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WrUDonvN; 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 r17-20020aa7cfd1000000b004132bca75d7si7944369edy.74.2022.03.01.02.47.01; Tue, 01 Mar 2022 02:47:25 -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=WrUDonvN; 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 S234366AbiCAKov (ORCPT + 99 others); Tue, 1 Mar 2022 05:44:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233104AbiCAKoq (ORCPT ); Tue, 1 Mar 2022 05:44:46 -0500 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B08968B6D2; Tue, 1 Mar 2022 02:44:05 -0800 (PST) Received: by mail-io1-xd29.google.com with SMTP id q8so17972978iod.2; Tue, 01 Mar 2022 02:44:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dohQLzfhr7wZu6SxVtIw3CHG42SObGN2SXyswtlVBsg=; b=WrUDonvN2fO25UTk5VNVhFhd8gruRaN5xzDoP4JD0Sakac0hlwGn0vLFs4yYd4XAFv uZKJIKn4j7cuELvqeeSDPXMNu2C1n0MsJpfl9rt1CcXMWz8ysAwYiWu0FU5ssFw8GnBu KImb7bl4uZxpEQ889GR2FwiQtAowT5cOncwrkuheaR+UErGWa6dJdP5knzUj9ZNji+C6 SaCIGAmJwbqyXPo1H+nGW/xKoV4Sv5xxMQcmeQv2UvCQ1LPx9cytIPoPatO3xtpXO37Q QL3drAKRoTDr8u6LO2OfPrWDqwyTUyYOMOn4N3XOwbIN3FW3QG+ijjXJMFfWWnQ72HyS YuTQ== 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:from:date :message-id:subject:to:cc; bh=dohQLzfhr7wZu6SxVtIw3CHG42SObGN2SXyswtlVBsg=; b=fWjcwHYaEZ8qElLi1dKVLNNEPPJlBkdYfAk9mLmtpjVniiaQknwJyHzxkiX1oEYBUR NXdoKB5jAMVa/3+5lrduGHA6Qy5ZQAMD5FsM+JRv5LQjvtX/pYcdFUB3dfEzd9bGfnhI ogtZSpBp/4sIp1G/GF9enXN2VCrlZIiF5D4E/k2eFhyiP0TiSVh0PNwcnpHRrJeg/Kt5 vMIptiG7xI6OqKCd8pXxdpE4psbkP9lvKHI7wa8Ht8Dn7MecvofHFAxJqssltKXMnhNJ k1Q4aTpcKdBvpdnpoI5/xol71EZzd7AR1RjcDx3A7goskIR8wQ3BmufPe4xE/g2r9Ofr eSEw== X-Gm-Message-State: AOAM530jyOQQEssfOEowONXnC/Cn7vxJZs1oKym0bhQjdFYYkKFntgrX 8Qh8AxQ7MXVqO1hTswymG+W5hmw6AzhkGsdK8CA= X-Received: by 2002:a6b:661a:0:b0:640:dd42:58ff with SMTP id a26-20020a6b661a000000b00640dd4258ffmr18921633ioc.64.1646131444958; Tue, 01 Mar 2022 02:44:04 -0800 (PST) MIME-Version: 1.0 References: <20220228103142.3301082-1-arnd@kernel.org> In-Reply-To: <20220228103142.3301082-1-arnd@kernel.org> From: Miguel Ojeda Date: Tue, 1 Mar 2022 11:43:53 +0100 Message-ID: Subject: Re: [PATCH] [v2] Kbuild: move to -std=gnu11 To: Arnd Bergmann Cc: Linux Kbuild mailing list , Arnd Bergmann , Linus Torvalds , Masahiro Yamada , llvm@lists.linux.dev, Jonathan Corbet , Federico Vaga , Alex Shi , Hu Haowen , Michal Marek , Nick Desaulniers , Linux Doc Mailing List , linux-kernel , linux-doc-tw-discuss@lists.sourceforge.net, Linux ARM , Intel Graphics Development , 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.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 Mon, Feb 28, 2022 at 11:32 AM Arnd Bergmann wrote: > > -under ``-std=gnu89`` [gcc-c-dialect-options]_: the GNU dialect of ISO C90 > -(including some C99 features). ``clang`` [clang]_ is also supported, see > +under ``-std=gnu11`` [gcc-c-dialect-options]_: the GNU dialect of ISO C11 > +(including some C17 features). ``clang`` [clang]_ is also supported, see I think the "(including some C17)" bit would not make much sense anymore. There were no major changes in C17 and GCC implements `-std=c11` and `-std=c17` as basically the same thing according to the docs (and GNU extensions apply equally to both, I would assume). When I wrote the "(including some C99 features)" I meant that GCC implemented some C99 features as extensions in C90 mode, and the kernel used some of those (e.g. the now gone VLAs). With that changed, for `programming-language.rst`: Reviewed-by: Miguel Ojeda Cheers, Miguel