Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4276626pxu; Tue, 20 Oct 2020 12:38:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0F69W4AycDuvuy7krrOo37nW2RJawTVuhGrvYH3deQUaLNU74gI6S5h9JUrvb/UgTKykD X-Received: by 2002:a05:6402:c12:: with SMTP id co18mr4377679edb.162.1603222727745; Tue, 20 Oct 2020 12:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603222727; cv=none; d=google.com; s=arc-20160816; b=UUgScUWWDDXxeicUsNUDMuZYzsvmm+Fvb81P2aFU9uoXU+rAqo7UuogtoFsrTwjZlw non4+/DPKdBj3k9uKmPpHzwCuAdJeQQ7AZGl0/aDkI2+c76k1ZLVxLFZ3afjCfZjPkDo +wqtT27msh5f2IkTpx39mLdOuIv/b9yOfC3oyvtKbKl+Iq3bOSbUdffmc5S7QCTEBE9M Ii/z66FNqnmL/adRMtgjSNKhwOH2POKhqg1s4D5JXxj9GSz7EIAKMB3gABk3hKT+QxMa meuOyHr4lnjX2i9frzvJ9R0UGfJAqKJdowT73Xf+BRoR8YZ9XbPcy/20TsR6ajnHBFvP PVCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=91AgDhfvJvEb+DR7h51DjPS/NuVrfZllvIqhYuEyvRY=; b=vbn6Ugd8SzExzAa7krZZev5A76+4MFprgIl504bwGalzFtbmhOZyShdNLTxSSZ6mHS l0AA0P+KIBtNVJtA+q+EsuFoTj/y/GbYeVNS+rOqWnY2xxvrfV1PTi762dauecPgM6D+ X1Daxd693Amnk2qu/ouo3WhKJEzLk1iYLzOAOOoiBxIMWlWZ7+08oXqS1NXivdog6Gij epRDV87oGjEGSmTKWiXD6Nbx0ueur/3IR0f7D2JsrLUQ3WVjh0eMBy6OdDQvo5Ahr5is fzzLSRb5olN+vRH6yFQ7+EJ2XrU//Fnbyt1lc+HEurHvrkUg8XDXLQL5VercjEmHiOip y1hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=Y5uspjaa; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o2si1800920edv.485.2020.10.20.12.38.24; Tue, 20 Oct 2020 12:38:47 -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=@amazon.com header.s=amazon201209 header.b=Y5uspjaa; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404703AbgJTG64 (ORCPT + 99 others); Tue, 20 Oct 2020 02:58:56 -0400 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:55753 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404609AbgJTG6z (ORCPT ); Tue, 20 Oct 2020 02:58:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1603177135; x=1634713135; h=from:to:cc:subject:date:message-id:in-reply-to: mime-version; bh=91AgDhfvJvEb+DR7h51DjPS/NuVrfZllvIqhYuEyvRY=; b=Y5uspjaaoWXzlGx7JSqby6OBjB6D4IqTLZFo+c4oObgjhtKfNdS7brHI lSTtuXBDJ2qwNwRbkYjeg75A2cdZYuTdrF1epWXUsVSgo6T/XY4skiwjB 73YNxtiAQ2BjiGU+kb9YHgsfWjfFueIXik3ZNGVPoZo4EzctKrNIg7kk+ k=; X-IronPort-AV: E=Sophos;i="5.77,396,1596499200"; d="scan'208";a="60298389" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2a-41350382.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP; 20 Oct 2020 06:58:47 +0000 Received: from EX13D31EUB001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2a-41350382.us-west-2.amazon.com (Postfix) with ESMTPS id 6E346C7490; Tue, 20 Oct 2020 06:55:18 +0000 (UTC) Received: from u3f2cd687b01c55.ant.amazon.com (10.43.162.35) by EX13D31EUB001.ant.amazon.com (10.43.166.210) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 20 Oct 2020 06:55:12 +0000 From: SeongJae Park To: SeongJae Park CC: , SeongJae Park , , , , , , , Subject: Re: [PATCH v2] Documentation: kunit: Update Kconfig parts for KUNIT's module support Date: Tue, 20 Oct 2020 08:54:56 +0200 Message-ID: <20201020065456.24878-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201013063743.32179-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.162.35] X-ClientProxiedBy: EX13D48UWB003.ant.amazon.com (10.43.163.82) To EX13D31EUB001.ant.amazon.com (10.43.166.210) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I just realized I missed adding Marco Elver as a recipient, so adding him. Sorry, Marco. Thanks, SeongJae Park On Tue, 13 Oct 2020 08:37:43 +0200 SeongJae Park 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 > --- > > Changes from v1 > (https://lore.kernel.org/linux-kselftest/20201012105420.5945-1-sjpark@amazon.com/): > - Fix a typo (Marco Elver) > > --- > 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..b331f5a5b0b9 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 Kconfig if the > + test does not support module build. Otherwise, it will trigger compile > + errors if ``CONFIG_KUNIT`` is ``m``. > + > Writing new tests for other architectures > ----------------------------------------- > > -- > 2.17.1 >