Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5413609ybl; Tue, 14 Jan 2020 08:32:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxtfgF7F9dVxFSlX/a9fvYmsAHjf4moW7IJ/mIThX6aFDT+Av5uBUgJdUdLGxhuOy+wvyCa X-Received: by 2002:aca:3d7:: with SMTP id 206mr17639923oid.98.1579019529202; Tue, 14 Jan 2020 08:32:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579019529; cv=none; d=google.com; s=arc-20160816; b=IuFse++K0WICWWdZMGgKjZTht1NSlOExAsUzyojiQadZhVRny+p/UCM9+Q3uaWrpxJ rLfc9VGoubXHd9QRExgo3Z5QQC1/HA3BhSiy7WDucmG8tTIZbwkca7+GMssFH5bVa2OC hSftBNci+BHRQbfse1s3fKayPf5UEqKYRMonwUmAAlBMf1/K6Jm7/bys4McKQVQv3kJo +wt4E0rSP1+aRibe+g/ryqqcMNy1LsDW5OMW3Ul7fDvZ71pEnCrSxyHuU9Svj5gDR7yJ x3s00vbnITT8WOhAL+mzW3szz9I9Xj2bL72D2Enp8Dq8xJOb5SYw/BcK0GxGi8xWswER dv8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=nus/i78kK3SpGp2U2Esf2bTqwzBG98LRZpZBiWVKPiw=; b=dWpR9lKh3aLgesxwRkKubbm4CHNHbFTUtT1Q2Ei2euCZjUIpSIkNvF9V4hwDuptpNL AYJB756G1mPhN8A8fdDvHXsV9Tv9FHN2oxIuJBibDmFdmKG6m55Kkspu2W0XHzNI6nFK qc1FFhd0La1z0fHGqyX8Ck+j/YJ+ye6B+am3jOI7y5fJZN3UCP0GGuBrC7EF3SpFzp5L HhF41IL/dgWUelBL0ciX5SCOLahFxEcu7j3DxEF2vvej1qRNq7G3BbEWuhN+wVAM8LI9 jM/rQ0pUbpZ7UY2LubODiHk1z0Gyl0lWzOAlrGYOHNyCrYReAewN+G8InG8x+vaYsVIj rgXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NY2FUl3v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1si6735369otf.58.2020.01.14.08.31.57; Tue, 14 Jan 2020 08:32:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NY2FUl3v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727556AbgANQaJ (ORCPT + 99 others); Tue, 14 Jan 2020 11:30:09 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:48408 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726195AbgANQaI (ORCPT ); Tue, 14 Jan 2020 11:30:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=nus/i78kK3SpGp2U2Esf2bTqwzBG98LRZpZBiWVKPiw=; b=NY2FUl3vLOtb2XkzeXGzvfcdD wtXkCRAhj01IpPwNLvBWCdHKSi8O/O5hU3EK364oV+TvbT3AIfOHbU4KslE8M/+dDnRABVZJP5f5B nVvTsa8LWYGSOM4Oe7kfhNQEltOWrhWo+7kRk9Llr41SG9QswSNS3DxpJl/yUQI1nebSvFALhUcIS vJ+ZOUgj+FHvTLHw1fjZZePBqe9BkaeHhw9VUw8c9Wk96Y7kLx4tcHHpbYSy6IGE0XgHVfRiu20CZ qMG7VTxBe4ODOw9Z0TzIDX77HXwwVphYKSsiA08DUnJaFhEkYlDZI5z9AAdC6jAzZ5WSOFcgXLb8r TCDe/lYqw==; Received: from [2601:1c0:6280:3f0::ed68] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1irP4x-00072m-VB; Tue, 14 Jan 2020 16:30:08 +0000 Subject: Re: [PATCH] software node: introduce CONFIG_KUNIT_DRIVER_PE_TEST To: Alan Maguire , brendanhiggins@google.com, gregkh@linuxfoundation.org, rjw@rjwysocki.net, dmitry.torokhov@gmail.com Cc: sfr@canb.auug.org.au, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, linux-kselftest@vger.kernel.org, skhan@linuxfoundation.org References: <1579018183-14879-1-git-send-email-alan.maguire@oracle.com> From: Randy Dunlap Message-ID: <2242e184-93a5-147d-d603-4017ca86eba9@infradead.org> Date: Tue, 14 Jan 2020 08:30:07 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <1579018183-14879-1-git-send-email-alan.maguire@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alan, On 1/14/20 8:09 AM, Alan Maguire wrote: > currently the property entry kunit tests are built if CONFIG_KUNIT=y. > This will cause warnings when merged with the kunit tree that now > supports tristate CONFIG_KUNIT. While the tests appear to compile > as a module, we get a warning about missing module license. > > It's better to have a per-test suite CONFIG variable so that > we can do selective building of kunit-based suites, and can > also avoid merge issues like this. > > Reported-by: Stephen Rothwell Reported-by: Randy Dunlap > Fixes: c032ace71c29 ("software node: add basic tests for property entries") > Signed-off-by: Alan Maguire > --- > drivers/base/test/Kconfig | 3 +++ > drivers/base/test/Makefile | 2 +- > 2 files changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/base/test/Kconfig b/drivers/base/test/Kconfig > index 86e85da..d29ae95 100644 > --- a/drivers/base/test/Kconfig > +++ b/drivers/base/test/Kconfig > @@ -8,3 +8,6 @@ config TEST_ASYNC_DRIVER_PROBE > The module name will be test_async_driver_probe.ko > > If unsure say N. > +config KUNIT_DRIVER_PE_TEST > + bool "KUnit Tests for property entry API" > + depends on KUNIT Why is this bool instead of tristate? > diff --git a/drivers/base/test/Makefile b/drivers/base/test/Makefile > index 2214310..3ca5636 100644 > --- a/drivers/base/test/Makefile > +++ b/drivers/base/test/Makefile > @@ -1,4 +1,4 @@ > # SPDX-License-Identifier: GPL-2.0 > obj-$(CONFIG_TEST_ASYNC_DRIVER_PROBE) += test_async_driver_probe.o > > -obj-$(CONFIG_KUNIT) += property-entry-test.o > +obj-$(CONFIG_KUNIT_DRIVER_PE_TEST) += property-entry-test.o > thanks. -- ~Randy