Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3167424pxb; Mon, 6 Sep 2021 14:12:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWVkdyIZ4HzZjp+iqJBA5lKuSrq6725A1fSvJ7aXeVbAZEWaui/W/HpvnyUS8C3SKTwzC9 X-Received: by 2002:a50:9e0f:: with SMTP id z15mr15218584ede.40.1630962751956; Mon, 06 Sep 2021 14:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630962751; cv=none; d=google.com; s=arc-20160816; b=mbHsZVKL5ok897OIC8PaE7dYpVuIQMmSB5950ER7DmXtr9MI2iSgPiJdSkt4fidnrD hX34l1JDpwAI1KlG1ylRHduD+cuzPdBfxVN5Wi5tmxwfUpaW76XKC55LYo7KMf2Rm9+H +BDeRnCmAHvK8j1ISfZw/3opVAGRmVvF/ty3bOwjKEcHpAr1MvFORPjRXG/vFYmH0/Oy lxfrdAfZw7kmhOB9OXbPI4+AWdRpp7IYwy0f8YPMGpcx/awZAuKpfxMnI+97c/1nLbGf QmfXkiT6R82eE42OVRsaShSrgUZ+pYn7jhfmKhE0C601vmGkMF8Xvylp6DbUujtfXMHf U9MA== 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=MpoW7+4bCye+SeExcKZK2eoEgcuVbF8tuM5mlM4JK9M=; b=I8UcNKgYX6vZ0SwUvTw5uEhxwKX6GuzoABAZi823f3hq0W31vV7z4R6VVU03pZ2VoN bvcaVnkdEw7oTcIjp5bRlWJe5nWKpFSv11MSYdnEjp+pryp1BhkQ0qWz65nFnEZdnbH6 gNNk7N/w2sDLSRn7/Fj6CsKdCpClSr3tFnoGDMSM315K9CmP7mdcsmVABiprqXzVSns2 mZCkDTO7NkWfRbK/I1xZfZk9VejKLo0r8bbVbUfXOsS1Se36HNa6tHGR3cpfIUF7OUBQ 2aRV+Pou5PjqDD7uDXX23UX9dU7qb1QQS4Th5v1TPUBWav4fEHTQRjwGM9RZk0/+onnJ zClg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="iY3QXx/8"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k5si9048078edq.72.2021.09.06.14.12.08; Mon, 06 Sep 2021 14:12:31 -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; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="iY3QXx/8"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233613AbhIFVKc (ORCPT + 99 others); Mon, 6 Sep 2021 17:10:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231288AbhIFVKZ (ORCPT ); Mon, 6 Sep 2021 17:10:25 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94479C061757 for ; Mon, 6 Sep 2021 14:09:19 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id j12so13136480ljg.10 for ; Mon, 06 Sep 2021 14:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MpoW7+4bCye+SeExcKZK2eoEgcuVbF8tuM5mlM4JK9M=; b=iY3QXx/8LAgnq6Y5Josw+UIssquPRTay+X0/utkiPhEcU14USp+B0Ws3YtjZ2fQ5+S T1yNNfFL0tHpFVuVOkaS8hui5kRcMxONlYEC4/VNoUbZbWBEghFQo3qy8mhu7FY/5ByJ NQfz2k8q7ae0m+2pgo10RQ+f9SRxmF13xXJAY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MpoW7+4bCye+SeExcKZK2eoEgcuVbF8tuM5mlM4JK9M=; b=uRZ0fFq6FpNNuPkftukmLQySIqe3GP48xOd1vych+902E+gZ740Lrn9jvtTONJj5s+ xFIWzZ63Oi3Q/1fX1/6+ZAIcUOwVSlwMN0h8o3CSyEccQvSIBaeG0HpSnR/xBxX5Ggb0 Jb8OLjJCeDv9zrH7qjSXdD61cUVtECtmUdflC2PDCzsw+TrLxnz6w5C16LsxlLVUrKyv piuxOgIWVi66PtEzMkkkaR1FXr2cDoXGNMMDQAhcIhWHwXnqDdHm2dwdfbOQ0kjsmpEH Rs5v/GmNTA1FMzx7r4BWWxqyuu7e15UKpRdV1ifAvYHZ7n2J3d/lGTu0DFz1WVJyBXwH pagw== X-Gm-Message-State: AOAM531BDwdXidWAbUAg7EopWqknuzvU4ZSY2THiCfUMq+DqBMW3h5o4 Obn1npRG0NR5iP0wIxlPHGkPLABZl9MVJ+bI X-Received: by 2002:a05:651c:339:: with SMTP id b25mr12250828ljp.417.1630962556995; Mon, 06 Sep 2021 14:09:16 -0700 (PDT) Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com. [209.85.208.179]) by smtp.gmail.com with ESMTPSA id i17sm824719lfo.22.2021.09.06.14.09.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Sep 2021 14:09:15 -0700 (PDT) Received: by mail-lj1-f179.google.com with SMTP id i28so13156584ljm.7 for ; Mon, 06 Sep 2021 14:09:14 -0700 (PDT) X-Received: by 2002:a2e:8185:: with SMTP id e5mr11756332ljg.31.1630962554175; Mon, 06 Sep 2021 14:09:14 -0700 (PDT) MIME-Version: 1.0 References: <871r644bd2.fsf@oldenburg.str.redhat.com> <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> In-Reply-To: <20210906201432.GZ920497@tucnak> From: Linus Torvalds Date: Mon, 6 Sep 2021 14:08:58 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL v2] Kbuild updates for v5.15-rc1 To: Jakub Jelinek Cc: Segher Boessenkool , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? And you don't seem to realize that you are actively arguing *AGAINST* what you think you argue for. That "immintrin.h" file, for example, is simply not usable for the kernel. I just checked. Why? Because it ends up doing exactly all those things that MUST NOT be done for the kernel. In file included from /usr/lib/gcc/x86_64-redhat-linux/11/include/xmmintrin.h:34, from /usr/lib/gcc/x86_64-redhat-linux/11/include/immintrin.h:31, from t.c:1: /usr/lib/gcc/x86_64-redhat-linux/11/include/mm_malloc.h:27:10: fatal error: stdlib.h: No such file or directory 27 | #include | ^~~~~~~~~~ Oops. And no, it doesn't work trying to include some specific avx2intrin.h file either: /usr/lib/gcc/x86_64-redhat-linux/11/include/avx2intrin.h:25:3: error: #error "Never use directly; include instead." 25 | # error "Never use directly; include instead." | ^~~~~ Very similar things happens if you try to use that file that somebody mentioned earlier. Guys, you don't understand how limited the kernel header files are - on purpose. 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. And you think that we're making it harder for compiler people, but that's not at all the case. You really don't want to deal with us saying "you can't do that" when you do something that is Yes, has historically worked for us, and it's pretty much the only one. All your arguments about how people need to use the standard headers are basically worthless, because you have never actually tried to use them in a standalone project, have you? So just face it - stdarg.h is special. And it's not clear that there's any reason why the kernel should include the one that comes with the compiler, when the kernel cannot use any of the other header files that come with the compiler anyway. And ALL of your arguments about how we must use compiler header files are COMPLETE GARBAGE, because you didn't even look at them, did you? See? So stop making arguments out of ignorance. Because that's literally what you are doing. You've never tried to make those header files standalone, and you don't have any idea of how nasty it would be if you were forced to. Linus