Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp454409ybt; Fri, 10 Jul 2020 04:17:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/zpJYpAeRUuSYKwjS2xIqanVMR6/2k7yU669yE1ElTugS7PHMfkZUeEL78TxCK1flXayS X-Received: by 2002:a17:906:fcc1:: with SMTP id qx1mr62051627ejb.379.1594379878822; Fri, 10 Jul 2020 04:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594379878; cv=none; d=google.com; s=arc-20160816; b=Mrzo8Kjh1uA5OtbDB6sN8D6DcLRtHuolyVzOtH8ZH7wEEiHK6tpJynOes+TwMfaSmu TD8Ez3gmLRLFv2LHzDckpuwTru1ENTYMxyJ7CIP42Zy1XTFUEpMYt4Oghbn/J/0FXXfF j8Ja8jsky6OSMcI57TDYN+DdL4zMY9xuI2jjXUKjo/G1wC2NNsATPOZmYHL8laetu1NY oi1gp6zIZLNIJpTz4+XxP1ldewaRnxw7biEVJuvWs4AHayzwdC79kqp48a9BXrp77Baa 4xF1j3mbwFX8lTyrblbbZEunPVj2HO4qb+qhqwiwkx/KF28xrLhYmyIvKeO8Emzw3UJa cPMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YU1wNi1PFALDWUKNyJ2gAGmpOk5lts11rVHLgEn5bCQ=; b=OTbANMSJFhUsdumdkr1K/jyUjRrMlLgVzvA2XmORM+pgfrSPefcyo+N3+6PqZArIAL S8X4DLrpsIPfg8/zqcHFkgNp/HOP/rRreg+nODM8a7zEXxfFC53MMUyN1108NVqfW96n 71uQHP0fOdI1jOVczutYjXrXpYV9LPZByBZJ25slkzMWu737fFo3ghnoxYcuED0mv64D v67Iew6rOoKe0Wpt8670KY51RZkCi01ALncPpTVI+8GdZJPW/3QQEF2w9QTGqbQte5mI sq1FsvXY1las7B2/aOzDbRisgXBQ6e87TRY2sLIv+t/gl+sCfhoxZ63W+JIC2i5XWBSm BtHQ== 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 r26si4207368ejb.35.2020.07.10.04.17.34; Fri, 10 Jul 2020 04:17:58 -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 S1727949AbgGJLR3 (ORCPT + 99 others); Fri, 10 Jul 2020 07:17:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726757AbgGJLR1 (ORCPT ); Fri, 10 Jul 2020 07:17:27 -0400 Received: from bmailout1.hostsharing.net (bmailout1.hostsharing.net [IPv6:2a01:37:1000::53df:5f64:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA2B3C08C5CE for ; Fri, 10 Jul 2020 04:17:26 -0700 (PDT) Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id 1BA0E30002524; Fri, 10 Jul 2020 13:17:25 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id E419388DDA8; Fri, 10 Jul 2020 13:17:24 +0200 (CEST) Date: Fri, 10 Jul 2020 13:17:24 +0200 From: Lukas Wunner To: "Kirill A. Shutemov" Cc: Arnd Bergmann , Linus Torvalds , Peter Zijlstra , Ingo Molnar , Linux Kernel Mailing List , Ard Biesheuvel , Thomas Gleixner , Borislav Petkov , linux-efi Subject: Re: [GIT PULL] EFI fixes Message-ID: <20200710111724.m4jaci73pykalxys@wunner.de> References: <20200628182601.GA84577@gmail.com> <20200708162053.GU4800@hirez.programming.kicks-ass.net> <20200709103459.wenqhbp52vesr7e5@box> <20200710110034.zthb7lctf7xwj2yt@box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200710110034.zthb7lctf7xwj2yt@box> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 10, 2020 at 02:00:34PM +0300, Kirill A. Shutemov wrote: > On Fri, Jul 10, 2020 at 12:09:36PM +0200, Arnd Bergmann wrote: > > 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. > > Last time (llist_entry_safe() thread) it came up due to local variables in > loops feature that is not available for gnu89. Both gnu99 and gnu11 is > fine. Same for anonymous structs/unions. I used to have a use case for that in struct efi_dev_path in include/linux/efi.h, but Ard refactored it in a gnu89-compatible way for v5.7 with db8952e7094f. (BTW, revisiting that commit I think it should have been broken into smaller pieces, in particular the efi_get_device_by_path() argument and #ifdef change should have gone into a separate commit.) Thanks, Lukas