Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp413844ybt; Fri, 10 Jul 2020 03:10:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFCTSWl5Hkxc66OUaTYRI0o9XlEMrhUZWh0XyTKsa1eijzMvjCjXseHtjMKbk+SEyLW5PK X-Received: by 2002:a17:906:cc13:: with SMTP id ml19mr59695658ejb.288.1594375830532; Fri, 10 Jul 2020 03:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594375830; cv=none; d=google.com; s=arc-20160816; b=vA9q2ilU8bZZpnWvYfjBwVLNF0EQEBNg/C1AC8hqb5MmQ86HxSUxUokr7IsuYmgh1o fjKT1mxoNrcOXU9umk8DfjYDouLE06+uRtqdKm1p5rKJ9pJg55ro2PU1g+mvgWpQ76bw rlmsCDiYly7an4LP+c97BI8onymwu3HKZq0yNUx2lDMTHuJzTVqCkuOFq2fzw+7+6N85 zbzLUqstvCpWXwjrtCz3wjtJLkoohoDBGu/q9x1BnpVK0wzfo8CM2TcQ+9xjWinoeh1a ul9RVRY3DTqplycEQarGL2+tykYQAaDNcQuKXSDcPwf8kB7gu1dm5RjCSQJWobWpE5bt ftZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=AMV46JUprnjRE6U7oGFLt/P7mj0iUsZv2I2fNdhdYB4=; b=XewPYW16glhCMXRWyQ5jJB1QVQV7NGCijaUqth258NHHV3VoKW+NY13jtsjpSqWz2f Rlbop9MgLvvaLMt9PDNnq3Ly+EEOhS5fkpLd5Q+ChuNinlhYuoJnStY0beujEo0vblof NrHwgGLsQNfLO5IYaEo29PqB0na2SGNjOcODoyjf3ilSyQBdwP8WmdoKAvcVjAstlzbc Z8I30Vio+iMi+JXEtmRHjCM0DAHMlbTv+SCl2Byxu8C3a/tNxkWEVTrDclry9qYNzhnf YLDlc6qjOsB88/GmxlsEU1oISu20+B1Wp3Kf3sZz8hnQerQR4sic+EZXJ7Gico22sZLh GRnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ot18si3333310ejb.303.2020.07.10.03.10.06; Fri, 10 Jul 2020 03:10:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726816AbgGJKJ4 (ORCPT + 99 others); Fri, 10 Jul 2020 06:09:56 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:43081 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbgGJKJ4 (ORCPT ); Fri, 10 Jul 2020 06:09:56 -0400 Received: from mail-qv1-f45.google.com ([209.85.219.45]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MhDIw-1kY6TI29AI-00eK63; Fri, 10 Jul 2020 12:09:54 +0200 Received: by mail-qv1-f45.google.com with SMTP id di5so2276762qvb.11; Fri, 10 Jul 2020 03:09:54 -0700 (PDT) X-Gm-Message-State: AOAM532n3buQmTopmzjvj8DqP8b/9LM2Kgf0Yj3mynra1mbzcg1/8wQl kkHX1qyVGxXv3O5z2d1kxBj+IPGA/z1nmkyMAOs= X-Received: by 2002:ad4:4c09:: with SMTP id bz9mr32958807qvb.210.1594375793273; Fri, 10 Jul 2020 03:09:53 -0700 (PDT) MIME-Version: 1.0 References: <20200628182601.GA84577@gmail.com> <20200708162053.GU4800@hirez.programming.kicks-ass.net> <20200709103459.wenqhbp52vesr7e5@box> In-Reply-To: <20200709103459.wenqhbp52vesr7e5@box> From: Arnd Bergmann Date: Fri, 10 Jul 2020 12:09:36 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] EFI fixes To: "Kirill A. Shutemov" Cc: Linus Torvalds , Peter Zijlstra , Ingo Molnar , Linux Kernel Mailing List , Ard Biesheuvel , Thomas Gleixner , Borislav Petkov , linux-efi Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:gvF83ApGf8hKP2O1vP8zoFIwS44aCFiOT/QsD3dUR7syB2ayIEp ZP7Wx3P2FeTmrlclGt64f46/6xp5Clr177EqCilknKtnxltjpM2k31rnCycFXG8iCDQg8l3 JAvGf8OuyBN2mGKhLpMDcurprWw9i0tQGcgPL+TUjK5CS62ODAefH9HrniLt5aowQ1mGspF nGW79wKW1tkDiSFAiMnoQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:eBjNb/liNXQ=:qxrWFd//CZF+Zppew6fUEQ dVYZdZJQuaaVtD1lxgukJTxZEXte6aYuaCUKlEXImGBWeSg2r36c1iu2M/4P5U62mojTMXV4s MzLB74s/Dfhg6VagcRsKi8qNllt3pT/ikgrutvjatVjUFrpB72PzelAuYl0aSI04i2l/zOcnD hKttWm9NPuCaEqtuC758tfbYuv57/dVNylaab5OPLBf5VCUfH0n1QZA3hnS57CQHLaURjrcb+ +FzTKBUnCrTUAwSQmFj3286SNgt2fyBSJvs/dm5opLhzuHTG0AC8Eeh2Wvr+9LZ/E3kCx8hJM MX5P5HZZd0YFj6aRUsJcFpNfFJamq5UfVNfaxpqoLGU8poM7yUbFMM9ECy3Ca9y9T5XXFBJ/u 7/f9bO5fVY2F3+DTgr/vdJGIyrw3/+lVUu7lM0/dyURm+Nyq6Oi9qcrt7p26OHEF1QnPz+XGU YIn05ktBsK5JqDFb410SFQPxt3RwEsMrjdsOMCnysw4KCO35T2wSQKL/6Ja5BnEwuzwZVhOhg prQ1YlYw+YpyrSEnMDT9A7OKPDmqYG9dBQpKcezIp9F8odsGcvm6dIBYazLKHNzpoboB9+tuX RT5CcngsInSOM1QUAQEVIUpMlifrPUALnx+6kmLpyBm0n19jwQyyDV85VpoPeYL+bw50+EDZ2 yQ1QEckn8UAlhL/V/T+aqeVhEzwx+fPOmcpefALHJMYL/J7VguhSqhnkwRKEFeRxfuY2ubIvT xjDJTeAW/+Y4NtAWmE/j2k7SaURwnVKEAdg6TvgFBxSstNS/kiahQh9r0+bnL8SkzwdJXEdwB NDxRKaZjkFNEniF97LNKAcaqQmt8wl1SlrmnvHBn1pBg5qvCAD+yOAbqGd2m/Tfx/NR6A5A Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 9, 2020 at 12:35 PM Kirill A. Shutemov wrote: > > On Thu, Jul 09, 2020 at 11:30:27AM +0200, Arnd Bergmann wrote: > > The most interesting version to require in the future would be > > gcc-7, which IIRC is the point at which we can just use -std=gnu99 > > or -std=gnu11 instead of -std=gnu89 without running into the > > problem with compound literals[1]. > > It is gcc-5, not gcc-7. This commit: > > https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=d303aeafa9b4 Ok, glad I was wrong here. I confirmed that with gcc-5 or higher I can build a kernel with -std=gnu11 or -std=gnu99 instead of -std=gnu89, but gcc-4.9.4 fails with anything other than gnu89. I forgot why we care though -- is there any behavior of gnu11 that we prefer over the gnu99 behavior, or is it just going with the times because it's the right thing to do? All the interesting features of c11 seem to also be available as extensions in gcc-4.9's gnu89, though I could not find a definite list of the differences. Arnd