Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp99931rwr; Wed, 3 May 2023 23:20:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4e2EEh5Tya/QQKM+TcYdbHFyss7AZeSukMaSMqQozbdRO4keMR/aDWZ6krxDEpm1RTAF5K X-Received: by 2002:a17:902:da8f:b0:1ab:1b45:7974 with SMTP id j15-20020a170902da8f00b001ab1b457974mr3019905plx.19.1683181215686; Wed, 03 May 2023 23:20:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683181215; cv=none; d=google.com; s=arc-20160816; b=SBi98l2+qxJwshTnrio9fPTKQeilj5sOMAGRyfSMuhwFWPFr2zy6CmHllSgHyVnm+O aIrty3vrYaTgLcYchk8yoOeMifg9zxg9mAMIK+fjqW/k9kLPkIrVJ2+ULxbmrtVuY+Tl nnaPeqbsod3cZ4Fa2q2Jdo5bvMnDb9YCPWe5tFv9kh5yjOVUPHSE6VbQB3U606TGhzbq jrJu4YIaeBVgQTe282LeaQw9mnllbtmiDZH18rsgcsbI7hmQFVfUs5Z4jb3EtyAEfJ5g f3GFJ6kFduEuFO4UITOVTAZoeyKp4e+ptWFBVMZEpytVoavj+Lgu/U/vLbqvUGAUJD3Y fF6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LIaXFLUqrEU4fuPyGsbEyJFaiSuEv86X4nKkzgT58Tg=; b=VfYT9c28XNhioIcdlUjc1rioSuZXnnwyT3GqS4mkyy92376XK6QbaN+3S2IRQ2ILz9 gc9zsQu8dLXyjRtCCb7bhUEouaIrGSIpHSXXgUUnnXCRytQSooZEQEYA3VwfeOgB38up /V8bfsrdXiRe9gqxbunmzb5GDeVfqrz9Q8fbpuBbOxxolqczaxQeJxseEQ9iFzT1gvlM +CYBNFCMPCEQI6CIQyNQf/m07qvE/Ez0YBNYy6KfI1M5tVZbU/KPrb8OQsjkvSKPr2ch 3WtsBGz3eNxc7vyJGO3bkuowjqI9tVbuecPbXPQA6TUO5aQW/ec2IJDv7TWS5o43Ow1g tegA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=zSqTtWzs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a170902ea0100b001a979e702b2si28314514plg.416.2023.05.03.23.20.00; Wed, 03 May 2023 23:20:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=zSqTtWzs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229622AbjEDGEe (ORCPT + 99 others); Thu, 4 May 2023 02:04:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjEDGEc (ORCPT ); Thu, 4 May 2023 02:04:32 -0400 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 861C21990 for ; Wed, 3 May 2023 23:04:31 -0700 (PDT) Received: by mail-qt1-x82a.google.com with SMTP id d75a77b69052e-3ef31924c64so659221cf.1 for ; Wed, 03 May 2023 23:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1683180270; x=1685772270; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=LIaXFLUqrEU4fuPyGsbEyJFaiSuEv86X4nKkzgT58Tg=; b=zSqTtWzs71FnweBRzla+Pwlf3ldhnMujGc4ArtPvfsIp7UByWIIbaqvkZrlLCV3DQ9 kGA3Q1hBWvElfFp8qYvLTuBWKf1PpwmtrTLoifn97vEbTRKBwwHvzgrgjOB/k/7H296y +NFEtkE9p5F3c84DzvQTW0z+TwN2rsrxxlPYD35VWY5cMei8F7N2nU3NCX+HhkzKEuhf bJdeVd6p759IXIVUbzsfXF9ISz/2uZe0E3SGDV7CJgDzbjYbAPgnjS4zzmApwrhaowrf K8pXd9uWURlusm7Q+chrbM+RUW71myjf/idIZaA7dWNBIfiY96ArH1WuciBHDftlfeLk 0zMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683180270; x=1685772270; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LIaXFLUqrEU4fuPyGsbEyJFaiSuEv86X4nKkzgT58Tg=; b=kR2fNoL4vZOxQqaUke389tyn0QSfNz6ZUvUReebjRHITqNSGMQYBAawgDqyl4dlGkc cRePmXkcDZAhJJnAVvhGX3TPuFvs0/hzpTnUvtmP6UkKq5moVuYHhm5a+LKIejx98Glw L6fmSNz0Rp5Hvc56Exu7V00AaNjrYhBT4XoE8+L5gJj5Z0cgjq+Xm2Gh2/En8UI1sk7C y4qxi6UBRnCCjfYNniOyQUIDqsButieeZrXpumES/jp04oqCXd/Nhv44zw6l+wg9sjuW BFnunhId2x3OMfskj8IGsqSyEW9KkyBe8RvDGkufFhJjvzAHFaxS6L3J6l82U+M+cXY+ PjbA== X-Gm-Message-State: AC+VfDzN3tr0Z4oZdmcidg+6LJq9zonRcwopWlSDwvVtlw4uLtzoDJRi rNeqKgNZ6ECse2CRdAHPrArMvAH+pS5LfOTfsb1s/w== X-Received: by 2002:a05:622a:553:b0:3ef:5008:336f with SMTP id m19-20020a05622a055300b003ef5008336fmr167622qtx.1.1683180270574; Wed, 03 May 2023 23:04:30 -0700 (PDT) MIME-Version: 1.0 References: <36ddf432f0f46530875fa15f002012c921a380a3.1683022021.git.geert+renesas@glider.be> In-Reply-To: <36ddf432f0f46530875fa15f002012c921a380a3.1683022021.git.geert+renesas@glider.be> From: David Gow Date: Thu, 4 May 2023 14:04:18 +0800 Message-ID: Subject: Re: [PATCH] HID: uclogic: Modular KUnit tests should not depend on KUNIT=y To: Geert Uytterhoeven Cc: Jiri Kosina , Benjamin Tissoires , Daniel Latypov , =?UTF-8?B?Sm9zw6kgRXhww7NzaXRv?= , Brendan Higgins , linux-input@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 May 2023 at 18:09, Geert Uytterhoeven wrote: > > While KUnit tests that cannot be built as a loadable module must depend > on "KUNIT=y", this is not true for modular tests, where it adds an > unnecessary limitation. > > Fix this by relaxing the dependency to "KUNIT". > > Fixes: 08809e482a1c44d9 ("HID: uclogic: KUnit best practices and naming conventions") > Signed-off-by: Geert Uytterhoeven > --- This works here, and I definitely agree we should get rid of these unnecessary constraints. Let me know if this should go in via the kselftest/kunit tree, or if it makes sense to take this via input? Reviewed-by: David Gow Cheers, -- David > drivers/hid/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig > index 4ce012f83253ec9f..b977450cac75265d 100644 > --- a/drivers/hid/Kconfig > +++ b/drivers/hid/Kconfig > @@ -1285,7 +1285,7 @@ config HID_MCP2221 > > config HID_KUNIT_TEST > tristate "KUnit tests for HID" if !KUNIT_ALL_TESTS > - depends on KUNIT=y > + depends on KUNIT > depends on HID_BATTERY_STRENGTH > depends on HID_UCLOGIC > default KUNIT_ALL_TESTS > -- > 2.34.1 >