Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3797814pxb; Tue, 7 Sep 2021 07:48:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEvmmQ/hm4eF1+JX/hhc5hVTGX8l17v797IgqLhLGr3zHE3SDPtQG2/V06wMJoleRcBaD7 X-Received: by 2002:a05:6e02:1b05:: with SMTP id i5mr12583618ilv.5.1631026131827; Tue, 07 Sep 2021 07:48:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631026131; cv=none; d=google.com; s=arc-20160816; b=E8fgPDyofWD1aiTKchW6MNM9nvR1sPF6F/TFLtixBy1JoXqUpVr6SE67PK2/rNTCsT SA5W5oUChZzboEqtQpN0KvCd2c60WxvtIgCe1Y9Hco89JkOnvFuDbCxFGWTi9dvcOlf+ w9Z1ojkPu9MXez3VbCr4I6Jf7EoS2AKjPjUEkH273PyDB0ck/STsFVngFNL2OpRK9K2U Z5O1IY4dvs1dpDbJD9lahqYI/ll5I5pd4792oJaDcCGatKxwlG5L85e/PGMHnTa+BKrQ dtcBcCXcxhJgcLjvWVOy84gogb0ScUOVnPjAkf950b4vc6PRPn7iqMezNOECUY5+bvCT MNWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=eXd7EjtSdGq2jVwZFdGtOevYholOSn9jt/6/QLbJTCA=; b=j3gsgk92nICBzk5detQgrFFi+osHfyh50iXOpHrascIOvIMUIV06H4pUNAk1avn0+F BDeVRu7jPuXkg8ZUs64/J3Q/yamWjQJBMtS85IdfPvVjJoAtAVcxiEIjc3TrqvpW+LCZ 9j52uSshDeKvOq48VXw5/DyOfofYbKE8h9j7BUFUpu5uQKDj24XJZm4+6TIySZBqd9eO rBv87rfWTHLHzrYsxhMeYzK8Gitd+Q2Y3SjzDeHcvGqStyo/QwfLVPe/KorCUDhZP5ds AbCgm9vuoLCm5iPBZd2i714Mt8vh/jxbZdO6OFAeTR2Ms2WBqeviz3TOkLnFvTPAd7Do 2wmw== 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 l4si10721882jaf.96.2021.09.07.07.48.40; Tue, 07 Sep 2021 07:48:51 -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 S244356AbhIGOrK (ORCPT + 99 others); Tue, 7 Sep 2021 10:47:10 -0400 Received: from gate.crashing.org ([63.228.1.57]:50810 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244071AbhIGOrJ (ORCPT ); Tue, 7 Sep 2021 10:47:09 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 187EfdkK007864; Tue, 7 Sep 2021 09:41:39 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 187EfcpQ007861; Tue, 7 Sep 2021 09:41:38 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Tue, 7 Sep 2021 09:41:38 -0500 From: Segher Boessenkool To: Linus Torvalds Cc: Jakub Jelinek , Florian Weimer , Nathan Chancellor , Masahiro Yamada , Nick Desaulniers , Linux Kbuild mailing list , Linux Kernel Mailing List , clang-built-linux , llvm@lists.linux.dev, linux-toolchains@vger.kernel.org Subject: Re: [GIT PULL v2] Kbuild updates for v5.15-rc1 Message-ID: <20210907144138.GG1583@gate.crashing.org> References: <20210906154642.GV1583@gate.crashing.org> <20210906172701.GX1583@gate.crashing.org> <87lf49wodu.fsf@oldenburg.str.redhat.com> <20210906194808.GY1583@gate.crashing.org> <20210906201432.GZ920497@tucnak> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 06, 2021 at 02:24:39PM -0700, Linus Torvalds wrote: > There are some *very* core header files that the kernel cannot include > from outside. That "stdlib.h" thing already came up in the errors I > quoted. > > But I think you'll find that you guys want to include things like > too, and you'll probably add others (? things like > that) simply because they always work fine in user space, and you'd > not even notice. Guess what. We actually test this. We do notice. Except we don't, because all those problems do not actually exist. Long ago there were issues. We do not live long ago now. > I'm pretty sure you guys don't really want to deal with the pain that > is crazy kernel people that have their very bare environment. There are many other users that use freestanding environments. Most of them do use the standard headers. > So you may *think* you want the kernel to use your header files > "because compiler portability". Instead, you should be very thankful > that we don't, and that you don't have to deal with our mess any more > than you already do. We would like it to be *less* pain, *less* unnecessary work, that is why we would like the kernel to use the compiler headers. Instead of what the current patches do: getting rid of more of them, which will end up as more work for everyone. Segher