Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1480632ybd; Wed, 26 Jun 2019 18:52:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwvI02ZCMIXKgWqDyQX/nA3H07BMD6lyI/FzwPzpB7GWlynesK1SoNdn+WFpE4UpNY6qsi X-Received: by 2002:a17:902:1102:: with SMTP id d2mr1427732pla.149.1561600324731; Wed, 26 Jun 2019 18:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561600324; cv=none; d=google.com; s=arc-20160816; b=bq8sU3VQlFdZCUxw6SP8p9vWqStpoAzQqp0Utjt6jI+XSGLWwDILPGHbhwIWLidVWd Aa1SwCnUAra3uDitg6jk9i/ImtRbl5vEw/U/zyzpSEBSamvY4X5bAoALkZBQW71BjND4 3WEsscC7IQmzYgNVHEVa4kfJ5TydOeqh/QWUZlqJU+H3DxkL5Zx1kvfoliB+NVjUkGRG oNxVSkLfF5QIm09229OVocwuzQADjOSZd/duXseKabq/qnwa6w0CdBlHRSPSuGsIPZrA gUuLcSrSpPzj+ZBzQIIKE9XLSxkBC9Mv6k4/kcR5DIxTdP/B3N57OsZr2h+5UZmitlai Uxig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=t/tKte8+f+WnIerV46Kqk5V4Cu5goyQEz8X3TPyTH+k=; b=mzZAmdkCvLfgKNV42KtRzwN0Fpt2ciRH1nhmHHE87t5kMevIMHNZahORSU6meeuW6v oAgBnwCMvx2V4vVBIyWTdV+Y2RseLj0thewdwNMidAY45UfdSfY8+THcCMDrSZfNyDDM xF3p6mV7bfZuYLVbczApEH49wpYhWsfKb0VZCmPrNtncEKHtbufyDYe7udaEOoHIEEda rsfSvWX13D9EJRDp7wsn7HvBsjGv2oVOhyVkOfLVHqvzNASeI00eueXvPrWqY279Sd1Z 5YCIt2mJ+0Vj6pQeuaWapsGmE74ho1xm1QBbXJCvhgZ5+cGPsXogM5RiJiDx1zbfUMR4 IjTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=x56ew+Nf; 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 z10si639571pgv.233.2019.06.26.18.51.45; Wed, 26 Jun 2019 18:52:04 -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=@nifty.com header.s=dec2015msa header.b=x56ew+Nf; 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 S1727243AbfF0Btr (ORCPT + 99 others); Wed, 26 Jun 2019 21:49:47 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:27093 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726905AbfF0Btq (ORCPT ); Wed, 26 Jun 2019 21:49:46 -0400 Received: from grover.flets-west.jp (softbank126125154139.bbtec.net [126.125.154.139]) (authenticated) by conuserg-08.nifty.com with ESMTP id x5R1kN0v032702; Thu, 27 Jun 2019 10:46:23 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x5R1kN0v032702 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1561599984; bh=t/tKte8+f+WnIerV46Kqk5V4Cu5goyQEz8X3TPyTH+k=; h=From:To:Cc:Subject:Date:From; b=x56ew+Nf/mRL+Y9auCSqcIA7wXTn2ja3HVYzHe0zb/E43gJ8Lggs/PguNK3OCZjgp uEyvbCO2H1dT/DpTwUE6DbmQRbC6vOSL5OITz+s0Bb0odvn6gylTlEcXpF8asnjeml 88aMR4WR5z+A0KqVY3or1TMOqNYfDZk2Ex4sSzWca/5b84o36B0eGUd3VL7kWJzm2Z ht4QKpX3nwgoUQtDo9jLHs9EQ7Dgcaxi1GdZoFz3rV7s0Tp5VvQMZ+OUmUdUW+ge61 tE78teOBqyznZ79jc3oTqjv6+zpNpU51id+uwMW/3dc8GBkGo5Jz2XIAR4PoONDPEu JgLgECL33cJbg== X-Nifty-SrcIP: [126.125.154.139] From: Masahiro Yamada To: 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: [PATCH v2 0/4] Compile-test UAPI and kernel headers Date: Thu, 27 Jun 2019 10:46:13 +0900 Message-Id: <20190627014617.600-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 .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 -- 2.17.1