Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2988967pxu; Sat, 19 Dec 2020 08:12:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfli7BLpI86LzU9H01il8LzF/cst4WqEAdKRwpGe5bqepdKIJJ62o8rN+qblNuuRz05blu X-Received: by 2002:aa7:d915:: with SMTP id a21mr9213895edr.251.1608394374724; Sat, 19 Dec 2020 08:12:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608394374; cv=none; d=google.com; s=arc-20160816; b=xHyMJHyOTuw64hifrKdm6x90Gm6VKU03xwaNLCVpl+1XHFFYqv9c4qTfuNi4RUCsWL SOw7MiUdQVlPt19HulJ7r0xKd15Sx+H36UXthbQ0MHUiI+I0LYkA+0ZNcbmH/3Y1j0V0 urDZiFjhtna60idORmJibPotBlGDO3h8cW4AfK5UeMmFyvByHHOI7EF6aqu/EAVjw6u+ UNSqFK5XESzbcCcvt0efjKFedPTqUSyrZMFjMA++L0gD4bPS32WqnT6ScR3fx/u81RAy Mh2RzCXgRrM5YzFIr8F1uGHSiVxayYP6wmOPA6lvS+prmCBu07qRMVKwI2SYs1iU5ubR jJHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=lat0uiKUxd5PoVSVwVF/yONoUq8DBc+FK9c1SgCz/n4=; b=SH+oM5LLcemV7+dD6twOoz6QxZBTCLyWwb4WCaihjz/yJTK2TVIh4UbC0kiP5MkoLf LxEYsHLl1tZ3dbK0KIIPSRqtonQ1febpC06vVBmciU4u3O0wj07+7WZHovceRDL+glaJ b/J43KxXW2RI1kJFemNTet9cXPGXot7/06N8HD7cGi4GFAtdto1lKPiMWnON8AGjLJsW Q0blBip2OQjN+XXvwR0kRBqWIbE/9tdvvb16qMNUS2htTC6gffSanYmSJEwW9rFJtiAg Bgtoj5xB36Z1ZwAsVgn6v8uSRY2etAqn+sHs6i3G+TPEhF7q9zZR7Klirf7eT8uja/bn bsQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=mN4C+Ulv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l1si5587231edv.442.2020.12.19.08.12.29; Sat, 19 Dec 2020 08:12:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=mN4C+Ulv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726831AbgLSQLv (ORCPT + 99 others); Sat, 19 Dec 2020 11:11:51 -0500 Received: from conssluserg-03.nifty.com ([210.131.2.82]:33572 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726752AbgLSQLu (ORCPT ); Sat, 19 Dec 2020 11:11:50 -0500 Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 0BJGAkbb006938; Sun, 20 Dec 2020 01:10:46 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 0BJGAkbb006938 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1608394246; bh=lat0uiKUxd5PoVSVwVF/yONoUq8DBc+FK9c1SgCz/n4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mN4C+UlvPyWVROLtQYBaVIGJTFno0D1HTuJigrBgw1Y+9k/LpMVnmpN5kfuDxc8LL 1BoNjEwBjwsbkVV8C0pL8XPfHXH8R4rIls4Ie+B/gSYKYVr5d7Z+LD+/aNY2B+FkJj jUIHVlEKcBJlUYb5zwWnf+kC07BgNlKNNPElpuV1nmiE6sfLZzmkGoR/c/B26Z4w6X jN6myWNfrpLHrrphylNIBXFQSfuqLg6wXEOZYWDwn35Xdv+cwageYjAfPee+DfXX0W WE9hb3OufpXJAkkmG64O3mHznEfVXMVPiYApv3eAMvICz/C4Jtkr2FZDouaZZ0ltvx NDcdFl99WC+dA== X-Nifty-SrcIP: [209.85.215.171] Received: by mail-pg1-f171.google.com with SMTP id c22so3301456pgg.13; Sat, 19 Dec 2020 08:10:46 -0800 (PST) X-Gm-Message-State: AOAM532H1dp9qTDW+1iC5Ai9pw2hKzkUegewoltQ4ASHtvBnNBUL3J8f Q2N2Jt97Et3XxUfPE5VElQaK8STg4bmy6UpWeN4= X-Received: by 2002:a65:6a16:: with SMTP id m22mr8779173pgu.175.1608394245527; Sat, 19 Dec 2020 08:10:45 -0800 (PST) MIME-Version: 1.0 References: <20201208152857.2162093-1-geert+renesas@glider.be> <20201208152857.2162093-2-geert+renesas@glider.be> In-Reply-To: <20201208152857.2162093-2-geert+renesas@glider.be> From: Masahiro Yamada Date: Sun, 20 Dec 2020 01:10:08 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] Documentation/kbuild: Document COMPILE_TEST dependencies To: Geert Uytterhoeven Cc: Greg Kroah-Hartman , Michal Marek , Jonathan Corbet , Arnd Bergmann , Linux Kbuild mailing list , "open list:DOCUMENTATION" , Linux Kernel Mailing List , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 9, 2020 at 12:29 AM Geert Uytterhoeven wrote: > > Document best practises for using COMPILE_TEST dependencies. > > Signed-off-by: Geert Uytterhoeven > --- > Documentation/kbuild/kconfig-language.rst | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/Documentation/kbuild/kconfig-language.rst b/Documentation/kbuild/kconfig-language.rst > index 1cf1aebdd6cdf8fa..2b746332d8aa6bce 100644 > --- a/Documentation/kbuild/kconfig-language.rst > +++ b/Documentation/kbuild/kconfig-language.rst > @@ -553,6 +553,17 @@ with "depends on m". E.g.:: Both applied to linux-kbuild. Thanks. I replaced the two-spaces between sentences because the majority in this file adopts one-space between sentences. (I still see some inconsistencies, though.) > > limits FOO to module (=m) or disabled (=n). > > +Compile-testing > +~~~~~~~~~~~~~~~ > +If a config symbol has a dependency, but the code controlled by the config > +symbol can still be compiled if the dependency is not met, it is encouraged to > +increase build coverage by adding an "|| COMPILE_TEST" clause to the > +dependency. This is especially useful for drivers for more exotic hardware, as > +it allows continuous-integration systems to compile-test the code on a more > +common system, and detect bugs that way. > +Note that compile-tested code should avoid crashing when run on a system where > +the dependency is not met. > + > Kconfig recursive dependency limitations > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > -- > 2.25.1 > -- Best Regards Masahiro Yamada