Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp4019968pxm; Tue, 1 Mar 2022 09:36:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuptoYqYAhdpyLx6WCyZwBKsrw6NeQNcfpEfgNkgeEsb0XFndhk1LdaCkyEF1SrnDXzu8m X-Received: by 2002:a63:6883:0:b0:378:3582:c94f with SMTP id d125-20020a636883000000b003783582c94fmr17723670pgc.60.1646156199271; Tue, 01 Mar 2022 09:36:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646156199; cv=none; d=google.com; s=arc-20160816; b=wzeyvS+9g0MKniuqqaZKZ3HEELvhGIT4DvC+bKwGExrhKbhkGjIdCV0eRiHr3pINPn KE5pAP2nBZhYb5C0jmqmv/TKPSXok3b8la8zqPg/Pd+84gCIB6Z7DJcDetxTexrwDjh5 s5lujL0d9jG9Tk3YMrsexqsmrvevo3fc7SxGZLa5krLEYBaAjZJxPaNG22ad5QC+iG9n ex1JI7o9JllL692+ISUfq2gGe6DdN8eIZKlPjhDSvCopqGSxXCAzD9A52pIjv965uQNm sp0rUJbhd8pd1K34GchniYZJlVqDHsG5Q/G6Djg5dn4lHhVl5RWRqcdKZcGcDI9suWw2 BXhw== 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=ds4o5gG9DkDgipgVNbdtUiEyogQBnlcBECKUpSHrF08=; b=PpVXOzcCgO9ehn13s0RGNPcymBpvM+S1FB85X9vTenTNh7hHZhPdGGKBq77eQ6/sNp pVv9hgUtfxSdkJJeaYpmWpUr/lk/TQonx04YNDZfGG+7ebUhV3vwA94Jw/Yt4EScwLvp pwEecXw05bSERN0VoQbAxdyJWj4BsrHz7RPvwht/9KBOK+WzdcHbECBMoQJQGH4PnW+U 7b8smTOXJHlEkoEn7yhrFE0XFxxO1GimtFt062VmHo87iaCLLmIV2NQGYqqM8wwHZbYB Dn8OK4YA6c8ks+jSp/Yfw5ZRlcY9600OylkeRUFOJ5NWwPoNQE+gZ7qu7fpV7A13u/AO NXrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ScbK0J6p; 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 ns11-20020a17090b250b00b001bc2c2d87easi2601083pjb.167.2022.03.01.09.36.20; Tue, 01 Mar 2022 09:36:39 -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=@kernel.org header.s=k20201202 header.b=ScbK0J6p; 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 S234165AbiCAOqy (ORCPT + 99 others); Tue, 1 Mar 2022 09:46:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232245AbiCAOqx (ORCPT ); Tue, 1 Mar 2022 09:46:53 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 717CD3F881; Tue, 1 Mar 2022 06:46:12 -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 ams.source.kernel.org (Postfix) with ESMTPS id 1E10CB81986; Tue, 1 Mar 2022 14:46:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7958C36AEA; Tue, 1 Mar 2022 14:46:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646145969; bh=O7PMjYoyVgpMGjTVJdUqo4vjOgkMH6zVD28CMdfxejY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ScbK0J6pozv/c2GDJYHlIZpbvfONFwSIK/2j9QTvGy0h6OxUAoFSJS7ACLBifahWv DcEHKw3lZtb+uu9XBfWLbqlt4501Amp6VUN+Dzs96ZiZLJ0WrXZIhbPfc31qIWMyNy ATq4x+Oqa8aCq2GW5gs+Y/j2lbHCJQUV8G4qbfbhkoke2or1lVhj8owINILXGePjRZ R7WocAjuMhKmJQAgH9JZzvEWwPneWdjxvB9/qREXxhHUchmngRvsvQS8MYiNKoAhTS lRIGGo0c7PSqmvXlDIU+2nV4tRgWSUE8CyjB1CiW2iruBEJHgJWl3+5y31XDNWkEo7 0CfBGfIlQclkw== Received: by mail-wm1-f43.google.com with SMTP id r187-20020a1c2bc4000000b003810e6b192aso1542527wmr.1; Tue, 01 Mar 2022 06:46:09 -0800 (PST) X-Gm-Message-State: AOAM530xrUzL/4VE+Tn7ZYIacTNeAK5iM4lcZlW2s+G7H+zS0MHPiRYY XiUrtu5nEsPeXAVZBO6Pc/z0sbbVgANUYI+pXWs= X-Received: by 2002:a7b:c001:0:b0:381:1afd:5caa with SMTP id c1-20020a7bc001000000b003811afd5caamr17359158wmb.35.1646145967920; Tue, 01 Mar 2022 06:46:07 -0800 (PST) MIME-Version: 1.0 References: <20220228103142.3301082-1-arnd@kernel.org> <20220228214145.o37bgp3zl3rxpeo4@google.com> In-Reply-To: <20220228214145.o37bgp3zl3rxpeo4@google.com> From: Arnd Bergmann Date: Tue, 1 Mar 2022 15:45:51 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] [v2] Kbuild: move to -std=gnu11 To: Fangrui Song Cc: Nick Desaulniers , Linux Kbuild mailing list , Arnd Bergmann , Linus Torvalds , Masahiro Yamada , llvm@lists.linux.dev, Jonathan Corbet , Federico Vaga , Alex Shi , Hu Haowen , Michal Marek , "open list:DOCUMENTATION" , Linux Kernel Mailing List , linux-doc-tw-discuss@lists.sourceforge.net, Linux ARM , Intel Graphics , 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=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 10:41 PM Fangrui Song wrote: > > > >More precisely, the semantics of "extern inline" functions changed > >between ISO C90 and ISO C99. > > Perhaps a clearer explanation to readers is: "extern inline" and "inline" swap > semantics with gnu_inline (-fgnu89-inline or __attribute__((__gnu_inline__))). > > >That's the only concern I have, which I doubt is an issue. The kernel > >is already covered by the function attribute as you note. > > > >Just to have some measure: > >$ git grep -rn "extern inline" | wc -l > >116 > > "^inline" behaves like C99+ "extern inline" > > Agree this is handled by > > #define inline inline __gnu_inline __inline_maybe_unused notrace > Ok, I've reworded it again, but kept it a bit shorter, I don't think we need the full explanation in this patch description in the end. Thanks, Arnd