Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp5994336ybn; Sun, 29 Sep 2019 10:02:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVF+e5W5J5aNY3lbyBqPDrcRsBuR2/UfVgZK7tquw3CowUpwEOOgAYQQWbfIRy/oufWL8x X-Received: by 2002:a17:906:fad6:: with SMTP id lu22mr15472164ejb.98.1569776571539; Sun, 29 Sep 2019 10:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569776571; cv=none; d=google.com; s=arc-20160816; b=qt6XlRD9BjpEoRsWiIV72kSKElpv0vUGOfJWU1rOj3YisLWKdsy1lAW6qfhXAa4VrX Mag5AT1BXGRu3dHXsNvsLpVpa4poqlblNgNQm4vHAFVIMZ1nGMA05mLmspLMGUbdfi0T IUbKjZB/XKZuyRWEr/W5ZJXw9CoYbIf9T5yen0JMw6+rqA7CwOnDPW4yop6ewVaz5/tu Eqk9ZXYWVL3wkIJOuG/lK05cIeQ4qo2VphNHDE6cJVGKI6vVg7GX2WoQ1fsMqXa2df+y 2JP90BN4xwbvQAsq7DWkfDmfE/eGdB8tKnV1s2Iofa99cQhMxKsXxohPsbU8LL11l+PR OXsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=RNDoutGDvOZvHTVduDc/xowF3Yl3vCcT50+XRcdHU+4=; b=YwFyQBxKb2XkgrfCMaiewYRO3lmxWoLvvSnfCdq2Nn7kTCwTDnM4jsCtbw6D0uYsrT LrNIqwv9qhLRAxN+wtz4F9heSenTfqJy18HH+bHPf+8LLlbP/kd0khiseFv5gyfT0biV WMYmqZzC1lqdR0KmAswNLnXyd/hZRD/rpAhjk3cxLqpRyWFAqY8mkfQfnWG39Jk7dpnn 0Ks1dAe4fdOaNsK6OkwYPVHV0rAmCOqtaGvX9m4C6Tlut1ItCJpBct+aQh4+GP8wp5Cz cXLmkil1CfIekM1s2xsX83Py+bHKP1n90SsNrObga5ujioLjO/iC86haW4B3oyLi26wp gJ3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=a9TpzaH3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f29si6165781ejj.110.2019.09.29.10.02.25; Sun, 29 Sep 2019 10:02:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=a9TpzaH3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729032AbfI2RAO (ORCPT + 99 others); Sun, 29 Sep 2019 13:00:14 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:43734 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726827AbfI2RAO (ORCPT ); Sun, 29 Sep 2019 13:00:14 -0400 Received: by mail-lf1-f65.google.com with SMTP id u3so5255232lfl.10 for ; Sun, 29 Sep 2019 10:00:12 -0700 (PDT) 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=RNDoutGDvOZvHTVduDc/xowF3Yl3vCcT50+XRcdHU+4=; b=a9TpzaH3q3HwmagNzHo1UyLPfKUrFN8tPFY8I1+plKnNTY1e10w+JBEJFpaTuRBvRW W2yIcI3Xrultoz6vVXOdWNqGlQo+iCB6FGJsrDMifCWX1Qms3kf26i2WdF88FE2sIvJA AEgkWZvERAKYAY8SVcmU5Emsf3IfqPwGrj15g= 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=RNDoutGDvOZvHTVduDc/xowF3Yl3vCcT50+XRcdHU+4=; b=bTgpiD5sa+rbaKKaXg+IBeDI8Gt1lrLfbhRK2UvU2bsA7cwMQfYlJlo1MwTqr/gpx7 VcjaXPtShxFrNjokCSlTuw9Rgu6aeVjPsSZMH7IspEAKFgL98Y+WBC4aNl2XIpjISOHY aMqoYAYuE/3o6U5/A40PCwSfb2IJNR9ni/FvuIKaqImKsQV/nMcGEhn3Y5wKFdrsD639 ArEIHzEG1+E2/oxiVb+Ngx4sCXHSRxspWj0f/hJQ8+fEWzVIMX8mlvnCM7kXfXJk3cnc Q4nAh5Kz9E1Pubm1Q1ybTq72vDaanidRZvbr1Y05dyEZu5Az+2R33FlrCHa0ZN4msq3P h6bQ== X-Gm-Message-State: APjAAAUj0Qc8ZwIognVuGCWyKxS3l1ZFfmZG9XJR8jcsIZ2zKW1Etn7r QNAp9hWzHIOghokz/pPDErHmJATOPJ0= X-Received: by 2002:ac2:50cb:: with SMTP id h11mr8870080lfm.170.1569776411554; Sun, 29 Sep 2019 10:00:11 -0700 (PDT) Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com. [209.85.208.172]) by smtp.gmail.com with ESMTPSA id x30sm2397939ljd.39.2019.09.29.10.00.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Sep 2019 10:00:10 -0700 (PDT) Received: by mail-lj1-f172.google.com with SMTP id 7so7009567ljw.7 for ; Sun, 29 Sep 2019 10:00:10 -0700 (PDT) X-Received: by 2002:a2e:3e07:: with SMTP id l7mr9326176lja.180.1569776410194; Sun, 29 Sep 2019 10:00:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Sun, 29 Sep 2019 09:59:54 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] More Kbuild updates for v5.4-rc1 To: Masahiro Yamada Cc: Linux Kernel Mailing List , Linux Kbuild mailing list , masahiroy@kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 28, 2019 at 9:00 PM Masahiro Yamada wrote: > > The concept of header test is to make sure every header > is self-contained, Yes, I realize. But at the same time the filenames it creates are very annoying and clutter up the tree, and I'm not sure we really want that in the first place. The thing _I_ would want is actually a lot less includes, and a lot more streamlined, just for better build times. I sometimes get a small pull, and wonder why the *whole* tree recompiles, and realize that it's due to some really obscure header file that just gets included "in case". So I'd like us to be stricter about header files another way entirely, and I'm not sure that header files should need to be completely independent. > Of course, you can argue that it is addressing hypothetical issues > "what if the include directives are arranged in this order?", > that nobody has been hit before. Well, I think people hit it all the time but just add the right header file when some build fails. In a perfect world, we'd have something that understands what symbols get declared in each header file, and what symbols each header file needs, and have a SAT solver for this that actually also understands about different configurations and architectures. And actually minimize the headers, and have a tool that warns when you have unnecessary ones - or are lacking some. Yeah, it's probably too complex to be worth the pain, but it would be lovely. > But, at least, I want to continue compile-testing > uapi headers that are exported to user-space. I think the uapi headers have a much stronger case for being self-sufficient, but even there I'd really prefer some other model than "*.h.s". We have the dot-files for dependencies and for tracking the command that was used to generate them, I'd much rather have that. At least then we wouldn't uglify the directory structure. Yea, I realize that some people "solve" that problem by just not building in the source-tree at all, but I find that annoying too. Linus