Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5556706pxu; Thu, 22 Oct 2020 05:39:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyy9Hij3KlmkINr91/um/FmEBC2f1nuE56z9JmAirdgybb/QuZNiwmBFeXH2eQt4hIlAxRW X-Received: by 2002:a17:906:5247:: with SMTP id y7mr1958685ejm.503.1603370381786; Thu, 22 Oct 2020 05:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603370381; cv=none; d=google.com; s=arc-20160816; b=UH9PHa1z+YUI6bqWETVujOH+grM5fzYBTAE0gKRtkTJrIEFMCCq260LL9TZcL6TNni GUJONo/k4qNxsL2PgUvPXwrd3VmcYewPNg9vKEWd7jyEKlv9eb6SoMHtIOJWGDIIFNpZ KByHTbs7sCQnEyBveb/PZuYMeD6jwbcZSn9ZLRPAVWwi3jM04WwM+klfigSC1DEc/njY +DeHEEBpBwyBaGa24XxL0Qex3nLOAOBiI7azXu1He0eOHxYjKq5IFkEzYTQc9wkchT1j 460v88SvXuwdpZjSMjaQDKaT0li9YTzH29vwU4chqvAx410MpgfJoBZYEww1V3niC+FJ ipcw== 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=fFKxxCGbpTJspLKrpQWtvorN+UB7EaCdCZuZVGvPFIg=; b=ptHW5lrSylBURb51VA9MQRsf0ihjn8HPHCmoY+WaMXvOw8WB3YBSwXHYjoc0Rvgie9 i8xqUoKCdco/mxqgSkZpe6hUu3Jg/X9FOduICfKgFr8v4h5t35Mad7efJd+fkCkHliMT StddiGBP/ihFZHGm7wcbM078Jq04V26Sare6+4w2CTO05aQaKtl0RyeyNasnpFZvyomZ Qe4eoEuh724Yn6bRE/dABlBZcVHXlCz7MJITlIe04ifjdjOz3ocsmWDWyqaYNjIMI/fR Cwld0GZj9NDRrbHCdwbend5RTm5PouaY1dFXhjcpjj/ZIWJIaaHnxsmlml7nolxmjFbz wDlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=NobhBe3y; 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 s26si1094115edr.329.2020.10.22.05.39.19; Thu, 22 Oct 2020 05:39:41 -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=NobhBe3y; 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 S2504947AbgJUT0P (ORCPT + 99 others); Wed, 21 Oct 2020 15:26:15 -0400 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:59109 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2504940AbgJUT0P (ORCPT ); Wed, 21 Oct 2020 15:26:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1603308374; x=1634844374; h=from:to:cc:subject:date:message-id:in-reply-to: mime-version; bh=fFKxxCGbpTJspLKrpQWtvorN+UB7EaCdCZuZVGvPFIg=; b=NobhBe3yloaMDrrYDUXj67NxrdUWTlSJwU/dIcWh0YoFvmTA7ntkimRE MgICJYvrM+TbvrNK+an69ufYDfYLOxx4WjMmORybXa/FJmSFbY58y7PhC 6q8KJYVuJd8eNn7NS2F6D6IdeyUGoaMKjMxOfd/tLWTZq4sHL6Sc8lRhE g=; X-IronPort-AV: E=Sophos;i="5.77,401,1596499200"; d="scan'208";a="78947680" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2a-c5104f52.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 21 Oct 2020 19:18:19 +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-c5104f52.us-west-2.amazon.com (Postfix) with ESMTPS id 76BB1A1E2D; Wed, 21 Oct 2020 19:18:18 +0000 (UTC) Received: from u3f2cd687b01c55.ant.amazon.com (10.43.161.25) by EX13D31EUB001.ant.amazon.com (10.43.166.210) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 21 Oct 2020 19:18:12 +0000 From: SeongJae Park To: David Gow CC: SeongJae Park , Brendan Higgins , SeongJae Park , "Jonathan Corbet" , Shuah Khan , "open list:KERNEL SELFTEST FRAMEWORK" , "KUnit Development" , "open list:DOCUMENTATION" , Linux Kernel Mailing List Subject: Re: [PATCH v2] Documentation: kunit: Update Kconfig parts for KUNIT's module support Date: Wed, 21 Oct 2020 21:17:57 +0200 Message-ID: <20201021191757.29007-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.161.25] X-ClientProxiedBy: EX13D43UWA003.ant.amazon.com (10.43.160.9) To EX13D31EUB001.ant.amazon.com (10.43.166.210) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Oct 2020 12:06:13 +0800 David Gow wrote: > On Tue, Oct 13, 2020 at 2:38 PM '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 > > Sorry for the delay in looking at this. Apart from another minuscule > typo below, this looks good to me. > > Reviewed-by: David Gow Thanks! > > Cheers, > -- David > > > --- > > > > 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 > nit: Grammatically, this should technically be either "depend" (2nd > person), or something like "make sure [that] your test depends". Good eye! I will fix this in the next version. Thanks, SeongJae Park