From patchwork Thu Jun 27 01:46:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 11018913 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0B2DF1580 for ; Thu, 27 Jun 2019 06:51:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ECA35289EF for ; Thu, 27 Jun 2019 06:51:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DEE9628A16; Thu, 27 Jun 2019 06:51:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8360E289EF for ; Thu, 27 Jun 2019 06:51:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=q0f+NOF+tTV5O17RqOPnjJGQw/NIiaAk5BQ3Dh1/vFk=; b=LhW JJUtuiRmOinYLeZo3w8hm9HqmPVUCzK1wbcWseSBOenj/ofACryW0Nit5JUMCw+xqaAqkNDmVck8k XtixO3bCv3vhvqiV1qupLKov0DqwnXWeYFSTNlGsqBpdT05AgQrdk6AMlSnqTR0bhi+uXss6Ytd8w wl+9rkIQzUy4NuPRHkbMq+zvfedzr3Vl5myKdTIB/dcSd/rJmbmBcRcwxNO6L8CZka57Y7D9Vmk1b oELZvj6oh4q1W8dZQDCWGjUopE31IJRQRK7G2v1SDJmz2SD2VpetCPYalpAWwzhAryXrcvbBFVG3m hwrYv6arLrTbVRPiFIFojAzTMj7RfuA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hgOFq-0006fP-54; Thu, 27 Jun 2019 06:51:34 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hgO8b-0006KM-8W; Thu, 27 Jun 2019 06:44:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=t/tKte8+f+WnIerV46Kqk5V4Cu5goyQEz8X3TPyTH+k=; b=YmGTxxoN9UbpxZaK0IJIRp/Bk syPXhkVtX+ul8X987R6Q2eLdhZ9XRF06x594dp+A74aVZdwKAkR91accZ2pcbtmhmTYxwjoN9sueD G0zwBZWAlpKhbW43sq6dTpytNsieafBkZVq+OBd0uYZtDZCFDp/I6z7O8gMwAxWcwTZLwr+mn+Nez eq2hS6Vps456GJvlF2oyG5MiTskjB0VapBGkozAkTErhCD5kzGScUxVAhMrFAToKqNbMW3NqYNKbD 5qds3DGZrTV4lE0X88FzVhgxdHbJ1+TZ17Mh6miLcs/wIMyI8dX6kE3U4RTCucN0Y7u69Cm2ijkhE eRzg9kH/g==; Received: from conuserg-08.nifty.com ([210.131.2.75]) by merlin.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hgJW2-0005W4-Ma; Thu, 27 Jun 2019 01:47:59 +0000 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 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 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Song Liu , Jakub Kicinski , linux-doc@vger.kernel.org, Palmer Dabbelt , Alexei Starovoitov , Masahiro Yamada , linux-riscv@lists.infradead.org, Sam Ravnborg , Kees Cook , xdp-newbies@vger.kernel.org, Daniel Borkmann , Jonathan Corbet , Anton Vorontsov , John Fastabend , Yonghong Song , Albert Ou , Jesper Dangaard Brouer , Michal Marek , linux-mediatek@lists.infradead.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org, Tony Luck , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Colin Cross , bpf@vger.kernel.org, Martin KaFai Lau MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Tested-by: Jani Nikula