Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3902253pxu; Mon, 12 Oct 2020 04:32:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvZ9Akr2941fkIE9skOoAkPQLVCAKZAxEedOcYunAIsInNlQEw0CO6lpsRk1n4tMT+q1G6 X-Received: by 2002:aa7:c948:: with SMTP id h8mr11845416edt.171.1602502323844; Mon, 12 Oct 2020 04:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602502323; cv=none; d=google.com; s=arc-20160816; b=z11vGrTdLQcqFsPdxOK8ruXZ+AFsKV8aiF4g1liEiCAA4VWiH5ZrzPRg/rMb1UpN1B CDT18RUEenv/Mly6MHdTrmL3OotMmf7sd5mgrWlMEyJvjNe0AW/pg9sx6+dw3G+IBK+/ cs1/sR8C9lSJUw4Qt9TdGXcyNpSpcIoa2F2VeGplx6e+YkLaLdPPBT7o9dT320oEgLRV eKW4Iu7nGR8wffM+lfEpEoxJmFjZQ/hMzdtGTYG/JTYq//XFH49ncYF2jdpEf2DQRc91 h9BqORE4LKjtzxg8S4HHL4ldzIMmFa2Q8ftoCbOII4WiWok9TGjsJbLrJidCaTDkdtSW VpVQ== 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; bh=+XBDGrLSwB/6Y+76sReBKVonEBADxfEIwAHgLXgJVMM=; b=fm4ZcDg7DF/rcOvGMDUNhzQbUiHLFZYwK/8Gu3Ipl2hEbtYFc1a97c5JD/iAEiLU35 xmtHc72oJeHlIJko7Ntdb8Wrkzex23XKtFRDK+qB0eYRZu8YORb0giTuJBGLRORaVD7c G/0sAH3R4vrE6T6BK3faFmKvPwY0I/kPbYBduEMuah9lLjmbGINlZRn9Icsi6Dsjhbte 199cX9oWhcaw/ie+yjnRYLIsAhvj3DZ/F8uHUwRMJqpzYUOQVBbDUx7Diu0A2WtnZK10 PDxBrGW0vexvQIMnwMlPDQ2TNvPTrs+iqjgXyvjD7U0NPT7i11fg5aNQTu7eDnQwMk4+ j0jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WNwNfCC2; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j15si8792364eds.74.2020.10.12.04.31.40; Mon, 12 Oct 2020 04:32:03 -0700 (PDT) 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=@google.com header.s=20161025 header.b=WNwNfCC2; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388212AbgJLL2y (ORCPT + 99 others); Mon, 12 Oct 2020 07:28:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388160AbgJLL2y (ORCPT ); Mon, 12 Oct 2020 07:28:54 -0400 Received: from mail-oo1-xc43.google.com (mail-oo1-xc43.google.com [IPv6:2607:f8b0:4864:20::c43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F0D1C0613CE for ; Mon, 12 Oct 2020 04:28:54 -0700 (PDT) Received: by mail-oo1-xc43.google.com with SMTP id c10so612032oon.6 for ; Mon, 12 Oct 2020 04:28:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+XBDGrLSwB/6Y+76sReBKVonEBADxfEIwAHgLXgJVMM=; b=WNwNfCC2ACvhv6Pa/bsQsYh4kkbVFDdT5MQQONrFzL2gwX2MnK1rrG1hTLm2LOiffa SQNwSmdAuo7yfROtUrQKfzrgiyTB/OedKABr7BcetNgeA9/21HUAr5fvxqxBIF9BdvGF vTgCZRXUVz3zUO6A0eUpkN4bYxvqxZa4c4JKHwV2amoJLfuMy48tIJ1PLvPi2Fec8av0 3IPFllGnuCE8yt8J8sDzBxSGKNyTU0x4sgH0xJCnIkGjwklwaZ//LqiA76vGJudwFaUK uPBFzsKZlcfkVQg7JnhB0Mpt6tT0RpU1t0YIMdzjrtYA5y2vzpw3cSpDZEg4VJnRNf6e PeWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+XBDGrLSwB/6Y+76sReBKVonEBADxfEIwAHgLXgJVMM=; b=hRfc7wxWo+nk/egs3/rNQdskjRzMkK9S380X+muQ5yH3zsQCMLiwouVqJWX95C9+mu IHD1Y40rrcAmHEkvScn/LtITB/ycyJ/YfY0vc6ZqzFugtHpT+EesWfjRK71MgnBEgwcf KHwX2UCNLA1vSVwzn0GcVBaIzc/fTDU+Rxap2RD9JtbSOcbFWHqC+GkbIV5Z+VKVR39T bypTes5wtlhvcfqEXA+qKazp3Y2Cny18PTf+DwZo0Hp2PeK9/RwvAIG5iicGF/6QNeCS LWHFN5qz+s9434OllkDm7qVHLR2DN+zmY1yKMhFUSr7eG489dyWOOwNq8yojCENslwB+ W7qg== X-Gm-Message-State: AOAM531GTifwLRmHhuhcCKC6s4FFb8O/wtDcF2B3YLxqepePzgRgcFCx 56asgQWGXtxjsc64MXltUYBrBC1GIqH1UBhNU+E28w== X-Received: by 2002:a4a:db6f:: with SMTP id o15mr18181579ood.36.1602502133520; Mon, 12 Oct 2020 04:28:53 -0700 (PDT) MIME-Version: 1.0 References: <20201012105420.5945-1-sjpark@amazon.com> In-Reply-To: <20201012105420.5945-1-sjpark@amazon.com> From: Marco Elver Date: Mon, 12 Oct 2020 13:28:42 +0200 Message-ID: Subject: Re: [PATCH] Documentation: kunit: Update Kconfig parts for KUNIT's module support To: SeongJae Park Cc: Brendan Higgins , SeongJae Park , Jonathan Corbet , skhan@linuxfoundation.org, "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , "open list:DOCUMENTATION" , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 12 Oct 2020 at 12:54, 'SeongJae Park' via KUnit Development wrote: > > From: SeongJae Park > > If 'CONFIG_KUNIT=m', letting kunit tests that do not support loadable > module build depends on 'KUNIT' instead of 'KUNIT=y' result in compile > errors. This commit updates the document for this. > > Fixes: 9fe124bf1b77 ("kunit: allow kunit to be loaded as a module") > Signed-off-by: SeongJae Park > --- > Documentation/dev-tools/kunit/start.rst | 2 +- > Documentation/dev-tools/kunit/usage.rst | 5 +++++ > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git a/Documentation/dev-tools/kunit/start.rst b/Documentation/dev-tools/kunit/start.rst > index d23385e3e159..454f307813ea 100644 > --- a/Documentation/dev-tools/kunit/start.rst > +++ b/Documentation/dev-tools/kunit/start.rst > @@ -197,7 +197,7 @@ Now add the following to ``drivers/misc/Kconfig``: > > config MISC_EXAMPLE_TEST > bool "Test for my example" > - depends on MISC_EXAMPLE && KUNIT > + depends on MISC_EXAMPLE && KUNIT=y > > and the following to ``drivers/misc/Makefile``: > > diff --git a/Documentation/dev-tools/kunit/usage.rst b/Documentation/dev-tools/kunit/usage.rst > index 3c3fe8b5fecc..410380fc7fb4 100644 > --- a/Documentation/dev-tools/kunit/usage.rst > +++ b/Documentation/dev-tools/kunit/usage.rst > @@ -556,6 +556,11 @@ Once the kernel is built and installed, a simple > > ...will run the tests. > > +.. note:: > + Note that you should make your test depends on ``KUNIT=y`` in Kcofig if the > + test does not support module build. Otherwise, it will trigger compile > + errors if ``CONFIG_KUNIT`` is ``m``. s/Kcofig/Kconfig/ > Writing new tests for other architectures > ----------------------------------------- > > -- > 2.17.1 > > -- > You received this message because you are subscribed to the Google Groups "KUnit Development" group. > To unsubscribe from this group and stop receiving emails from it, send an email to kunit-dev+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/kunit-dev/20201012105420.5945-1-sjpark%40amazon.com.