From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5E99C28CC3 for ; Wed, 5 Jun 2019 02:38:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7EF1C2070B for ; Wed, 5 Jun 2019 02:38:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nifty.com header.i=@nifty.com header.b="reRoC3LC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726555AbfFECiG (ORCPT ); Tue, 4 Jun 2019 22:38:06 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:23777 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbfFECiF (ORCPT ); Tue, 4 Jun 2019 22:38:05 -0400 Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com [209.85.217.48]) (authenticated) by conssluserg-05.nifty.com with ESMTP id x552bwqj023011; Wed, 5 Jun 2019 11:37:59 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com x552bwqj023011 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1559702279; bh=rlXG4KafJ48SszDXPb9veQ1mChqnZopGbbSbM2AtzLc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=reRoC3LCODW2GBXW/hPCv4S/B7CVl9c+nRtJ4VY8VY6hzI24tWZrUHkGNWz420Nxm kA5XCPbqM+OcfHVU2VJwzQuuBHYJqAn1wVeQ72k4q/3g1jhzo46RQXCg/ukFh2Dox7 LR1uj6rky7CyY6u4WR0us9bTjJZgclXEUPQxSVVG70hHPG2k8nOGylY2MysCZiL0iG YqMskldpLSmjYFpHCr5Tkh2Ifh48QY8xmg7TBMBkEF8jxDxwwerKaY9jc0GYh1EpfR eGmZCZ4253i7cIrBZj1Z1utua3uwfrvPlahSg5FCD/jXViNq2pL+e8DeNYjaabxd3l fbTOkdui/IHVw== X-Nifty-SrcIP: [209.85.217.48] Received: by mail-vs1-f48.google.com with SMTP id n21so9083325vsp.12; Tue, 04 Jun 2019 19:37:59 -0700 (PDT) X-Gm-Message-State: APjAAAUJSf6uv3e8xz/lSHIFnG7yWBQ4EMyfIbvLeziXJe+cZWKe2PaA BHwSO3AdTPTTF1TIyYuLO8jAgWtqFiGJcWbl6Kk= X-Google-Smtp-Source: APXvYqzyi/PN7usug5PnObKBoqJxKJtYCUFINZdd71aBKnjEu2CMU8+EOU/sdcKVYceeBvsBUi01Xqmwcp/M7j6Sefg= X-Received: by 2002:a67:f495:: with SMTP id o21mr3047792vsn.54.1559702278042; Tue, 04 Jun 2019 19:37:58 -0700 (PDT) MIME-Version: 1.0 References: <20190604101409.2078-1-yamada.masahiro@socionext.com> In-Reply-To: <20190604101409.2078-1-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Wed, 5 Jun 2019 11:37:21 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 00/15] kbuild: refactor headers_install and support compile-test of UAPI headers To: Linux Kbuild mailing list Cc: Song Liu , "open list:DOCUMENTATION" , Benjamin Herrenschmidt , Palmer Dabbelt , Heiko Carstens , Alexei Starovoitov , David Howells , Paul Mackerras , linux-riscv@lists.infradead.org, Vincent Chen , Sam Ravnborg , linux-s390 , Vasily Gorbik , Daniel Borkmann , Jonathan Corbet , Michael Ellerman , Helge Deller , Christian Borntraeger , Yonghong Song , arcml , Albert Ou , Arnd Bergmann , Jani Nikula , Greentime Hu , "James E.J. Bottomley" , Michal Marek , linux-parisc@vger.kernel.org, Vineet Gupta , Randy Dunlap , Linux Kernel Mailing List , Networking , bpf@vger.kernel.org, linuxppc-dev , Martin KaFai Lau Content-Type: text/plain; charset="UTF-8" Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, Jun 4, 2019 at 7:15 PM Masahiro Yamada wrote: > > > Multiple people have suggested to compile-test UAPI headers. > > Currently, Kbuild provides simple sanity checks by headers_check > but they are not enough to catch bugs. > > The most recent patch I know is David Howells' work: > https://patchwork.kernel.org/patch/10590203/ > > I agree that we need better tests for UAPI headers, > but I want to integrate it in a clean way. > > The idea that has been in my mind is to compile each header > to make sure the selfcontainedness. For convenience, I pushed this series at git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git uapi-header-test-v1 (13/15 was replaced with v2) If you want to test it quickly, please check-out it, then $ make -j8 allmodconfig usr/ (As I noted in the commit log, you need to use a compiler that provides , , etc.) -- Best Regards Masahiro Yamada