Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3796927pxb; Tue, 7 Sep 2021 07:47:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3FmKjMpEt6SVhersI69/VauGa8tVZhL7Mz80IacIrDgNYmXjgZAL7m2nWigY0PrjX+lN9 X-Received: by 2002:a6b:e410:: with SMTP id u16mr13477804iog.38.1631026064605; Tue, 07 Sep 2021 07:47:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631026064; cv=none; d=google.com; s=arc-20160816; b=Hu0IiEsnRGwRYeXtMrBkpULvu7VNfB9Ba0Ex2fd+Z/NmXfhkOqMcm0pRWayEkwMtDG LC5YccIksFxPMSWOE7SZpm4SMwomQfS9Y1o5ZcFFOc8KaOaEEUwJcwDjsqseN7stoGs4 qq9vWrA3zQ50FcUtZ7MfEPGkYWxX2KfK4BxVyWh9A/ftfg+K5f8WFyCmqgly2NXgpQ98 PPyA5uglvOJrvGrKgxubgLD8GORSklSg4Uap66UHtjZ1tlExrvr7wnl4Va90z8doG74w DThb1WuezYQHjqM7dSXySXt3zqOBFUKDmcs9uaU1Zno8Vr5vGbwmooqvk7Ias/x4dzaR RGyw== 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=oQXFBsI9/iLlKBKWno6062Lp71+2XhrIfoi3KYrduIU=; b=Yavk4VE+YAWGqn2O4sXmfqEY5sqOSizZOqSFJmQ/aD/7Bcysjww5gIg5TNRXzks10V 3c6rgGhoDPfEMS2cCv2z6uG/Brbf0jk/tpGvavfo47zIWHXlbjgn9+x7Y1KusVxFZ5jq e56PDll8Vdekrpg6KFB3jvkVIJhnYeCxTkl8Vavp0s+0xEejABwdr5pQ8QtzqK/8Nggh dgV29+YSLBb2sr/xLKTOep3Fk6iSMv/Q4OJ7IdzefP5XCRSZWXpgTf/aZRFBZMhdAhUK GVBOQ3ZkUJhSspYiI+rCiKMz+7aZewTlUQZ2K9ZItT4m75LPaqkFoEqcGUQnVNibpYdc gApQ== 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 d11si472890jaf.24.2021.09.07.07.47.27; Tue, 07 Sep 2021 07:47:44 -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 S231559AbhIGOfG (ORCPT + 99 others); Tue, 7 Sep 2021 10:35:06 -0400 Received: from gate.crashing.org ([63.228.1.57]:32928 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbhIGOfF (ORCPT ); Tue, 7 Sep 2021 10:35:05 -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 187ETeIO006845; Tue, 7 Sep 2021 09:29:40 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 187ETeHc006818; Tue, 7 Sep 2021 09:29:40 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Tue, 7 Sep 2021 09:29:34 -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: <20210907142934.GF1583@gate.crashing.org> References: <20210904191531.GS1583@gate.crashing.org> <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:08:58PM -0700, Linus Torvalds wrote: > On Mon, Sep 6, 2021 at 1:14 PM Jakub Jelinek wrote: > > > > the only guaranteed APIs are > > those provided by the headers (x86intrin.h/*mmintrin.h etc. on x86, > > arm_{neon,sve}.h etc. on arm*, ...) > > You guys realize we don't use those, do you? Linux does use the Arm and Power vector intrinsics (arm_neon.h and altivec.h). > And you don't seem to realize that you are actively arguing *AGAINST* > what you think you argue for. I have no idea what you think we are arguing for, only what we are. > That "immintrin.h" file, for example, is simply not usable for the > kernel. I just checked. Yes. It cannot be used in freestanding environments; it includes a header file we don't ship (, via ). Or perhaps we do ship it, but only on native systems? Same issue, anyway. The top comment in the latter says /* Implemented from the specification included in the Intel C++ Compiler User Guide and Reference, version 9.0. */ so the shortcoming exists there already probably? > 27 | #include > | ^~~~~~~~~~ > > Oops. Yup, that is not a (freestanding) standard C header. > Very similar things happens if you try to use that file > that somebody mentioned earlier. Not at all. *is* a standard C header, and we ship it, it always works. If you find problems with it, please report them! > You also don't seem to realize how hard it is to separate out the > user-land crap that we really cannot use, and must not use. We have worked very hard for many years to make this better. For the freestanding headers only is still problematic, and you do not need that one anyway, it is legacy more than anything else. Segher