Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1964482ybd; Thu, 27 Jun 2019 04:37:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiwC0L2zXpSWwx5/37hMbcJMQhRgYEZukHYhyvXTYbaNB8Bc2Ztx1qGNaHGtnZ8d3GkKZa X-Received: by 2002:a17:902:b20d:: with SMTP id t13mr3940552plr.229.1561635466489; Thu, 27 Jun 2019 04:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561635466; cv=none; d=google.com; s=arc-20160816; b=yPF92itxARRcrG1GNE4WQ4qDybTFOUoDQ+OxmehxueJOaxCo+w3GAkYaGd6GhT7muI n2laLAsrSFoN3sX98ThjzzWT4o5G5DaK2smvPlcJlTWBTtm8D6ES5sUJh19Qw+3hIC4f k7MQc3uY/mqdZf19PWNDFHpPIxgipDYRGi/Iv0UQ4/1rY1mTMOCknUYm+5/2menKzthM tp3xKO77KQRuwmcHf5EiAGvdz/Al39z2k07MDr4pNrc/9QTkuXQqO5vwzBFmWC9o9Jlo gqKgi/W/9xLdImn9hkdnfq9iQ+WrluJfnxxrxJWsY4KDgxBPlOpojzHBIEuKOElT1ja5 wZxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from; bh=NSE7W8Xnxb1eIq2OZ3xJhKXmRF7wRZjqAw5wteOuDaw=; b=lLmJ+DSlDCzHXyI6HDAWk3aTpRQtTRaFnxwvraFl2JSmS43hiOYFCmnb8PZ7gNrmbd xg18kzZuvz3yGj1sPWe4AAOxv04kyo1UmY9Liv9jk2FFVAI+s4tdD3giGWffxX/4uqsj Mo57+hV9j/w/tLJeHg2pw5LxXfJ2+FSMCe++XUW45tpse06dOhmObZD75n1g+kTOLD4H XnK9x+rQHzVCY/JreTQvSEuwB1dlDgcHUItbc7UPKQUb/gD0UFgYEdZmLcHq4m4or70X /k+qMBydzhJdKWjDoGLBDGO77Kgqu0KEPKHKLpCIUzSqusn58R+u+2yWLklNTdc2M/eM PswQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v13si2393159pfe.217.2019.06.27.04.37.28; Thu, 27 Jun 2019 04:37:46 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726658AbfF0Lgp (ORCPT + 99 others); Thu, 27 Jun 2019 07:36:45 -0400 Received: from mga04.intel.com ([192.55.52.120]:32844 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726429AbfF0Lgp (ORCPT ); Thu, 27 Jun 2019 07:36:45 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Jun 2019 04:36:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,423,1557212400"; d="scan'208";a="183430789" Received: from jnikula-mobl3.fi.intel.com (HELO localhost) ([10.237.66.150]) by fmsmga001.fm.intel.com with ESMTP; 27 Jun 2019 04:36:37 -0700 From: Jani Nikula To: Masahiro Yamada , linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Masahiro Yamada , Tony Luck , linux-doc@vger.kernel.org, John Fastabend , Jonathan Corbet , Jakub Kicinski , linux-riscv@lists.infradead.org, Daniel Borkmann , xdp-newbies@vger.kernel.org, Anton Vorontsov , Palmer Dabbelt , Matthias Brugger , Song Liu , Yonghong Song , Michal Marek , Jesper Dangaard Brouer , Martin KaFai Lau , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Albert Ou , Colin Cross , "David S. Miller" , Kees Cook , Alexei Starovoitov , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH v2 0/4] Compile-test UAPI and kernel headers In-Reply-To: <20190627014617.600-1-yamada.masahiro@socionext.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20190627014617.600-1-yamada.masahiro@socionext.com> Date: Thu, 27 Jun 2019 14:39:24 +0300 Message-ID: <87y31np89f.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 27 Jun 2019, Masahiro Yamada wrote: > 1/4: reworked v2. > > 2/4: fix a flaw I noticed when I was working on this series > > 3/4: maybe useful for 4/4 and in some other places > > 4/4: v2. compile as many headers as possible. > > > Changes in v2: > - Add CONFIG_CPU_{BIG,LITTLE}_ENDIAN guard to avoid build error > - Use 'header-test-' instead of 'no-header-test' > - Avoid weird 'find' warning when cleaning > - New patch > - New patch > - Add everything to test coverage, and exclude broken ones > - Rename 'Makefile' to 'Kbuild' > - Add CONFIG_KERNEL_HEADER_TEST option > > Masahiro Yamada (4): > kbuild: compile-test UAPI headers to ensure they are self-contained > kbuild: do not create wrappers for header-test-y > kbuild: support header-test-pattern-y > kbuild: compile-test kernel headers to ensure they are self-contained [responding here because I didn't receive the actual patch] This looks like it's doing what it's supposed to, but I ran into a bunch of build fails with CONFIG_OF=n. Sent a fix to one [1], but stopped at the next. Looks like you'll have to exclude more. And I'm pretty sure we'll uncover more configurations where this will fail. But I do applaud the goal, and I'm committed to making all include/drm headers self-contained. I wouldn't block this based on the issues, it's pretty much the only way to expose them and get them fixed/excluded, and it's behind a config knob after all. With the caveat that I didn't finish the build, but OTOH tested the rainy day scenario and had the patch find issues it's meant to find: Tested-by: Jani Nikula [1] http://patchwork.freedesktop.org/patch/msgid/20190627110103.7539-1-jani.nikula@intel.com > > .gitignore | 1 - > Documentation/dontdiff | 1 - > Documentation/kbuild/makefiles.txt | 13 +- > Makefile | 4 +- > include/Kbuild | 1134 ++++++++++++++++++++++++++++ > init/Kconfig | 22 + > scripts/Makefile.build | 10 +- > scripts/Makefile.lib | 12 +- > scripts/cc-system-headers.sh | 8 + > usr/.gitignore | 1 - > usr/Makefile | 2 + > usr/include/.gitignore | 3 + > usr/include/Makefile | 133 ++++ > 13 files changed, 1331 insertions(+), 13 deletions(-) > create mode 100644 include/Kbuild > create mode 100755 scripts/cc-system-headers.sh > create mode 100644 usr/include/.gitignore > create mode 100644 usr/include/Makefile -- Jani Nikula, Intel Open Source Graphics Center