Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5393353ybl; Tue, 14 Jan 2020 08:13:25 -0800 (PST) X-Google-Smtp-Source: APXvYqy7uwxTlog+mawrLZO68OKMecZ1d4B2lhFnZRxl9JUOxiLpqD2XmGlDLxSKTbLzFrfjCI+h X-Received: by 2002:a05:6830:1e09:: with SMTP id s9mr17984526otr.139.1579018405684; Tue, 14 Jan 2020 08:13:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579018405; cv=none; d=google.com; s=arc-20160816; b=yStEu/dl/i3k0w3nb5LuTwMEoQgACGqwt90ZTDgN0VEPJ3Ol1Dwl9uNYl+nIFERoLq msnpnpDZInA5UcZIYiQlJJiijxQO5EQP5fCDigeUBhxQnz5vo32o9sPrGQEk2Yq9+VDP kJ6EzAiGwFZykSmkMTsLGFtof03j4c2AK75JdMuixqegbWYxENzKqloGQKREkjwCn7JE IYpXLc+60J25SSKBT7xoTe5ScJmhYI1bjzzZ05mkB0ICl6BB5I2bgQ6n+peP498aBr3M yrX/uQoLH+zmtPQm3x6lvZTYCaB3A2KFE4aIKXAJGxvFtvDSTVmjZevTVdBPI8IUtMaA YxwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=DXGEyr5ta0XlqUrJRWrExFRIxM3FCYNIxMhvm8kVLdE=; b=ylAj0OK2MR7VOkNblTaf6F+xOajkfYbrt85PytzqEXTcCXT74ZecPFIO+AI1EjCAKy Xiz6IOuamX7I24kgLUlTwmvjCiA/0aAt2YC19ypNnn82G11sHPbhNxovLmPloJJYgX1s ByV7usLu9BCYQInc52pCh90VlFg9xnLlo/pQisw3y3vmrca7C+ia6ZJ2RsZP6Dwj2Lk1 V1zALkmqd08kUF+M3JGLBh9su+2lrFTpEBpOVvHDMV1K6l9jNaoCCARVQ5FVKcGXFMzA RZ4DyVf1TzYWV3tsu/5Q/ph3K2mzlVAn0h2iPbNqnwJnWiQqUPo2j4DFsY4UobzxRRTg 5lUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=ZI3C7yuV; 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 f15si7954842oib.61.2020.01.14.08.13.14; Tue, 14 Jan 2020 08:13:25 -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=ZI3C7yuV; 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 S1728808AbgANQKj (ORCPT + 99 others); Tue, 14 Jan 2020 11:10:39 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:46722 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726342AbgANQKi (ORCPT ); Tue, 14 Jan 2020 11:10:38 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00EG8DBH069867; Tue, 14 Jan 2020 16:10:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2019-08-05; bh=DXGEyr5ta0XlqUrJRWrExFRIxM3FCYNIxMhvm8kVLdE=; b=ZI3C7yuVyQIPUg9GH91miMNTre/ToCR/HIiHa97eUXdjlFjn/9nZU30Sb1RwVufHnRyv 0HwOKjY0uFb7isZPVyzuCOXXlMoMmOiDVKnNfUTey6jXtv1B2Hr8tytKkpWhZZLjvm25 oFdoDNbaOlKXKkK15Kzm9skxBszekYmb+9U4dMAnwRI/JRY7+j7Y+jWGsWWUesJ9MIoc w2FPPEIuZNwiHq+aIauj3Yu4OmyPUwkJ3/di+G6ZwjIaIgdqeO76Q2AkS8oCcBpCl0kz f3f5uYAG1k58SZTz45Ja+Qgf59QUsP4k9Qo7G0hI4PDpQHWEgBlTOLBGB0svdoCVbVin Ug== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 2xf74s6yb2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Jan 2020 16:10:09 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00EG9QRW168893; Tue, 14 Jan 2020 16:10:08 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3020.oracle.com with ESMTP id 2xh8esas4m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Jan 2020 16:10:08 +0000 Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 00EG9umn004555; Tue, 14 Jan 2020 16:09:56 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:09:55 -0800 From: Alan Maguire To: brendanhiggins@google.com, gregkh@linuxfoundation.org, rjw@rjwysocki.net, dmitry.torokhov@gmail.com Cc: sfr@canb.auug.org.au, rdunlap@infradead.org, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, linux-kselftest@vger.kernel.org, skhan@linuxfoundation.org Subject: [PATCH] software node: introduce CONFIG_KUNIT_DRIVER_PE_TEST Date: Tue, 14 Jan 2020 16:09:43 +0000 Message-Id: <1579018183-14879-1-git-send-email-alan.maguire@oracle.com> X-Mailer: git-send-email 1.8.3.1 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-2001140137 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=1011 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-2001140137 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 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 -- 1.8.3.1