Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3094078pxm; Mon, 28 Feb 2022 11:53:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyaKoxyIgTceGE8ZWj/UY9AbioqmPdeoz5HxMBDwjoX3ADWYtefV8GTrQ1j8gMY5r3PxDWw X-Received: by 2002:a17:902:a989:b0:14f:969b:f6b6 with SMTP id bh9-20020a170902a98900b0014f969bf6b6mr21432264plb.15.1646078003479; Mon, 28 Feb 2022 11:53:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646078003; cv=none; d=google.com; s=arc-20160816; b=BRx0ooe3xdwcGnbkdAEYlbNNj48RDUStg0gJNZRBklFrwz1ARlarSYkj7Zo8FGRJ5c HEcquWXOtd6e3hJHSpNMDNb2OTJCxOdhzosqH05UWVE73p4B8hbM3FVVLH+6QYqR8wWa xPvkRTkhhM2a83AvvqmVnROtKLo3AZmmlmwEm5CIx3dn3LUSsjxZkITA+0V7YC0eXnRE xqvqX9mZR/4gf7dcBP8hvATL1h8Tte1EH3ah4IKuH3w9DqM27J1rPu0Uh9iO/PDdCHZo R7R++61JBwn2LDF2cPEGhbtwT1spqFHqUbenQzm5m6fq6lbg9F4no8fJkvwNEUccuxgE 9guA== 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=B+acwbp8IAqy4EQhdzrRR6UrvnBSYJWdfAOCkLBEf6s=; b=q4I3FXfR5C+bJqFGTqF1lV3C0qDMNmk/uiBf3s9GhCQTTe+iM3ANxwZCJFuyppQQ9F B1xb6k1qUIRGN49u852YmdnfsIRLYOQy/Od6mZREm7jTbLLs3N5JVGKDLqKOwcMnCUnA nC5WNbSvIxGL7Bcdd3ovQq0ChTWyPa/QE5a1XXO+blzP6Qr51TAkrgw1EOlAqB+sXhIu DBqgOJbCOOumZCSK/8v6FxOtK9dmV0AD+gS/zRH15CLnwKCfL30mhbAr+0znljWSZiDG jER1Wz40yBQnTg6UEKdKmN6h+RhMGGMNaEcmRYahWnagWh/kYFphw8ntCBfBPh7SDEQ2 234A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=LvJ51tK8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s20-20020a656914000000b00372d2f90579si10968381pgq.636.2022.02.28.11.53.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 11:53:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=LvJ51tK8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AD13C6AA6E; Mon, 28 Feb 2022 11:27:36 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240637AbiB1Snx (ORCPT + 99 others); Mon, 28 Feb 2022 13:43:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241347AbiB1Sna (ORCPT ); Mon, 28 Feb 2022 13:43:30 -0500 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A49F219291 for ; Mon, 28 Feb 2022 10:40:58 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id l12so6803544ljh.12 for ; Mon, 28 Feb 2022 10:40:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B+acwbp8IAqy4EQhdzrRR6UrvnBSYJWdfAOCkLBEf6s=; b=LvJ51tK8OGXmUdrq1FTGfGhAU7kyWg6aDacet+/T6m1xcdm96SFLNin6cqkfGY+rbg A+4gdF9QL3th8X1CIPS6F2KrwGpjUcAkZFh2wMRAAEhyIS9gK5hzhXTjv7RRLGY5VhDN /ORnVKar4p0KNDioI7O/8vsyY3PJ0BwGF0c/w= 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=B+acwbp8IAqy4EQhdzrRR6UrvnBSYJWdfAOCkLBEf6s=; b=Xsk2YCjH1BxsMtyD8k9g67IbMLXR+0jZUG0FFKrMhYiaIvH0jcgL+o6Uuw8cm9U2t1 WBmnriezVvTBtNJQoFmbqEesZUX+jHP/Oa9wbNK010toBC6GRk1eMPmJPudXJCmiS4MZ rMV4afeAsjAkjk+csTdfEQ0T2afz9gFZ0IRxGcKmUZzcTVO6Vl+hdm1V8kGgdmc8D+mN CQ69tC5eJTm6x1M3E7gCEOw55D6vyklgX/v4BtG6+zJNc25OKm35HsF+GU/6vsCE9Yfd QnxsNWGwHAKhvlcyKJccYQlyCjEQJ2bB1GyHGAd66h6jl2y8YcZ6ZKTS1AiEJjL0b46w DFMw== X-Gm-Message-State: AOAM5319JLHtVimPYbPUgWGOVYQhzSs88zjb8GKRKtN4YpGnT6Jk/hub J3c5FGEbqcf9Oiq2nu9H8F/jg6QIWCz7MmoZMqI= X-Received: by 2002:a2e:681a:0:b0:23e:6350:e442 with SMTP id c26-20020a2e681a000000b0023e6350e442mr15256179lja.454.1646073656980; Mon, 28 Feb 2022 10:40:56 -0800 (PST) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com. [209.85.167.54]) by smtp.gmail.com with ESMTPSA id k14-20020a192d0e000000b00443c399e462sm1085859lfj.160.2022.02.28.10.40.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Feb 2022 10:40:55 -0800 (PST) Received: by mail-lf1-f54.google.com with SMTP id f37so22888951lfv.8 for ; Mon, 28 Feb 2022 10:40:55 -0800 (PST) X-Received: by 2002:ac2:4c8c:0:b0:445:6c26:3cff with SMTP id d12-20020ac24c8c000000b004456c263cffmr13670491lfl.435.1646073655129; Mon, 28 Feb 2022 10:40:55 -0800 (PST) MIME-Version: 1.0 References: <20220228103142.3301082-1-arnd@kernel.org> In-Reply-To: From: Linus Torvalds Date: Mon, 28 Feb 2022 10:40:38 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] [v2] Kbuild: move to -std=gnu11 To: Arnd Bergmann Cc: Mark Rutland , Linux Kbuild mailing list , Arnd Bergmann , Masahiro Yamada , 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 , Intel Graphics , dri-devel , greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-btrfs , Marco Elver Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 3:37 AM Arnd Bergmann wrote: > > I think the KBUILD_USERCFLAGS portion and the modpost.c fix for it > make sense regardless of the -std=gnu11 change I do think they make sense, but I want to note again that people doing cross builds obviously use different tools for user builds than for the kernel. In fact, even not cross-building, we've had situations where the "kbuild" compiler is different from the host compiler, because people have upgraded one but not the other (upgrading the kernel build environment is actually much easier than upgrading the host build environment, because you don't need all the random libraries etc, and you can literally _just_ build your own gcc and binutils) And we have *not* necessarily required that the host tools match the kernel tools. So I could well imagine that there are people who build their kernels, but their host build environment might be old enough that -std=gnu11 is problematic for that part. And note how any change to KBUILD_USERCFLAGS is reflected in KBUILD_HOSTCFLAGS. So I would suggest that the KBUILD_USERCFLAGS part of the patch (and the modpost.c change that goes with it) be done as a separate commit. Because we might end up reverting that part. Hmm? Linus