Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5426610ybl; Tue, 14 Jan 2020 08:45:06 -0800 (PST) X-Google-Smtp-Source: APXvYqxVhlHYGXq0zRMIFTxKda4Rhr/UgTm1CCgO78DAws9FYtnFlm+KMcOTsA2tHSjdbhvxwk5P X-Received: by 2002:a05:6830:1608:: with SMTP id g8mr16853380otr.169.1579020306424; Tue, 14 Jan 2020 08:45:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579020306; cv=none; d=google.com; s=arc-20160816; b=R1i5kotfIqgKBtORC2z6Ew+Vt0J83XaTT4BvgaPAczMBM8rqh3kfjixn8O16jipQ1j jE39atnl16sjy/lVxXmhMRXKhc76VvH4KWtYxj4fQ+h1WAbvpBf+1Qub7EUrzHwo+grG 9fGt4TvsengndPcZiQjrN1qSeO8cCueiRfi749G7mJ42ZhaK5DuKVeB3VzYkuZAGNO82 hNEWoJm6++Sqj0Va3HmZK5PNAZ7BRPBvuO8Uxtengo0oHz+lP0aZ5gHPeD2MYMA0LaEs Cfh/AP3GKYKecgM0RxilVCjnIPWm+h00l+V2MXVrJTZBpGCoWWEm6GF5SMRCBJ1YcGEx N/Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=CWF7k3UenyIwPtt3gZw5fAYDOXkVTUWe1i/V4e3zLSs=; b=QOliJw5hV0QAe6sTqNlK26NIiWZWRh0rGFEhzGAI+X53nu4OhESh7Y0AXVEQCLB+x9 IIBvjwkfAm5TvUE3+IJ8MfaeQ0RQ5AdsENI4dZhiW5uxsLxAXbH5YsIahBpe+kZD8Uzw mabdN87NElNLoCkspeeghJXfmdyGwKcZ6vNb05WWW/ORbCDadTep85XtpP0Ak1uTlsnG RG/o5C5azB88JFsz6t3upJivO4qN6R/xWEuEJDoqLYQMJ4yBQGRQLS7Cg1fNzA7DHVSC 6+jQd9lp3aPUCcf55JU1CtvdeSHRXEeSPiaXCUpKOzj9fHLmFXW0dlldcD4Si08Djh+F Al1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=QjPV36Ez; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r6si8592043otq.95.2020.01.14.08.44.55; Tue, 14 Jan 2020 08:45:06 -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=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=QjPV36Ez; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728753AbgANQnM (ORCPT + 99 others); Tue, 14 Jan 2020 11:43:12 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:53862 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726379AbgANQnM (ORCPT ); Tue, 14 Jan 2020 11:43:12 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00EGXpUX071233; Tue, 14 Jan 2020 16:42:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : in-reply-to : message-id : references : mime-version : content-type; s=corp-2019-08-05; bh=CWF7k3UenyIwPtt3gZw5fAYDOXkVTUWe1i/V4e3zLSs=; b=QjPV36EzmmNo9gJpnhtE/8AYeSzi5dPWM3VNc5lWBk2piN5luEUOQkkJcJBo237LQ3Gz PgEyyNchTD5KP2roPD9+a98fYaNWP6QvNq+cBLhFW2pE/KQvetcaUBRf/jtQEg/3/Hay r6Dn5YOoTzv9LSUgg5h5iI7coGZrHxz4kp9YxGx44RdIKz7wX/5UmetlmJxrtwpPf2A1 w8CZqQ5zztShH7io7O5yHrGi/crJC1tCIR+1t0sBppKdxxwcOwQpyur5rysOJ0rmEMlE VBteG1Ff6vdFJT+VQUK0PMghyMLJ//BldVVtpNtSt5Z3dBPEecrbPbH7jBFYvxhWJmaK DQ== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 2xf73yf6cc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Jan 2020 16:42:51 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00EGXjSk086814; Tue, 14 Jan 2020 16:42:51 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 2xh2scv2cq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Jan 2020 16:42:49 +0000 Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 00EGgmov027856; Tue, 14 Jan 2020 16:42:48 GMT Received: from dhcp-10-175-171-251.vpn.oracle.com (/10.175.171.251) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 14 Jan 2020 08:42:48 -0800 Date: Tue, 14 Jan 2020 16:42:37 +0000 (GMT) From: Alan Maguire X-X-Sender: alan@dhcp-10-175-171-251.vpn.oracle.com To: Randy Dunlap cc: Alan Maguire , brendanhiggins@google.com, gregkh@linuxfoundation.org, rjw@rjwysocki.net, dmitry.torokhov@gmail.com, sfr@canb.auug.org.au, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, linux-kselftest@vger.kernel.org, skhan@linuxfoundation.org Subject: Re: [PATCH] software node: introduce CONFIG_KUNIT_DRIVER_PE_TEST In-Reply-To: <2242e184-93a5-147d-d603-4017ca86eba9@infradead.org> Message-ID: References: <1579018183-14879-1-git-send-email-alan.maguire@oracle.com> <2242e184-93a5-147d-d603-4017ca86eba9@infradead.org> User-Agent: Alpine 2.20 (LRH 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9499 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001140138 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9499 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=3 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001140138 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Jan 2020, Randy Dunlap wrote: > 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 > Apologies for missing you out here. > > 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? > The support for building kunit and kunit tests as modules has not merged into linux-next yet, so if we set the option to tristate the build would fail for allmodconfig builds. Once it's merged we can revisit though; I should have mentioned this, thanks for reminding me! Alan > > 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 > >