Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4011583imw; Mon, 18 Jul 2022 19:56:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ukxfnr3TCtFeMumiJH1/BEvrEyHbjtdKRVXSfbPFNZgeQKdNxE13m24mclhz7MgizMV6qC X-Received: by 2002:a17:906:7c0c:b0:6f9:1fc:ebf3 with SMTP id t12-20020a1709067c0c00b006f901fcebf3mr27912546ejo.403.1658199389386; Mon, 18 Jul 2022 19:56:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658199389; cv=none; d=google.com; s=arc-20160816; b=tyoR7zbabkl4y2N+v2Ucwr/wxDdRZVSIyuWURJymQe9PWbPXzkq/Qct4ksJnS1tXp+ CVe0lCnTOpko23KbmpHeUf9B/hgZJyWgPaIPXAN4sbZjmhp4AkMM7FQeQtBoFEOd1NBV +qABA0D50eN68N7zhlhB9hffylkvrqCgR9UL+5n5TxbAaQs+v43HOSi35HqlQzJVM+eh TvKxQ07jipOBRDiriMPAXc6PjhLoWcXp4oRKqz42TGzgMSFq16cxzHn1ml2ONOYV8QP5 Gy3lbk+qE2EppRR/29/dYFlCcmWBBH2BgTCzZ4MswCf34k9ip8Deo/z+LIFXlvMWQX/V wwOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=wHVY6i+Yaf5t2+yX0N5Kt7nv5hQLK0Oovx2GIklJtSQ=; b=XFnhvaSb3Qk0HJwOI/Jm5HSiOFH0onpsIUP6xpJKtHAqPGtW9MydOGCenzP21Huxrz h8XwRijJw/LRaF3nf/8EtOw55nktqU5MBPJHHFCOH56kF5MvMPrUCxVgu3sdnvgkNSxE 20asYcUckUO7cx+QZjikfrCg1nCyhQwcdq+Z59V2vMAYreiknN+A8bWVZsUPOvK3tHhJ jm5jOHmAn41CJQQdh8sQGLrTvCiuKnkuFzM8zuXc4z4zkU384m4qw+YUVzK8KYnBxuFM X7w5QDzAcBLuUcDZFU089FrC4cEy9oZYOiAax97yz6ep02iS1j4V3Diz+DewbU8j4sQU oy/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm2 header.b=aTpX4sGw; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=pS78PrPF; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji3-20020a170907980300b007262ad8839esi12757359ejc.16.2022.07.18.19.56.03; Mon, 18 Jul 2022 19:56:29 -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=@aj.id.au header.s=fm2 header.b=aTpX4sGw; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=pS78PrPF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236906AbiGSCZh (ORCPT + 99 others); Mon, 18 Jul 2022 22:25:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233749AbiGSCZf (ORCPT ); Mon, 18 Jul 2022 22:25:35 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03A283B96C; Mon, 18 Jul 2022 19:25:32 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 5B9A63200931; Mon, 18 Jul 2022 22:25:29 -0400 (EDT) Received: from imap47 ([10.202.2.97]) by compute3.internal (MEProxy); Mon, 18 Jul 2022 22:25:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1658197528; x=1658283928; bh=wHVY6i+Yaf 5t2+yX0N5Kt7nv5hQLK0Oovx2GIklJtSQ=; b=aTpX4sGwPceYAcol+aRJwJRpUW Ws0qvx10J5oXHkpQBZfDd2szjxbRk2gggw7TMmdyEZxsx3aMMiWA3LmZqfsoqYwc 0D1pMO8fr4NxKWDrW8iJ0zBkkZG997AGfIqQHvIJ/gwCn6SoAC7QqjiMFEck0LsR 8nZxCm2jGaOkk8BX7jZtLBQN2NjBNXF7ukK8Sxwwx/xl68nocPpDYTLFyBDXyR+8 OkphJt3JHytQV7K5Ii1rcm4eyO4g5eyat003iLxCIl2u2T/5PJ+gDRunsBAC1Y/o SKlqHVZ+KGl10INkANhcQKpO8hNdosinPTA2bpJg3rZNsoFkJcUj3gs+5NgA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1658197528; x=1658283928; bh=wHVY6i+Yaf5t2+yX0N5Kt7nv5hQL K0Oovx2GIklJtSQ=; b=pS78PrPFoQbxYdgdgAJreVahHS11jVFvWdMb3BTpyocV X5EccwSepuM+WJzfS3iBN65HO1W+WN6fcKN0p12qSfiAf7STxbnlBoBpN/eUXGLa pil03+GUJM18xxStHOjkzhov4l/bA2mvNqojP3OfYEKa9teXyfGu2FCIGtcW59UX 9CNCih44OqbAiYxDeFxDZ5IrHC+Al6wun1/71Aj7xjbbOCqiN8jebNOwOe57dP8+ O+ial22JAj0ojjIe38t4IFkLdPF7CX1/udxpADBGcVNxk+AJUsUtlJTVKVcHehlb 9/JAbF0Uh5XcLUktjmXLVcpPnBXv8DeyxYlR25tIog== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudekledgheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehn ughrvgifucflvghffhgvrhihfdcuoegrnhgurhgvfiesrghjrdhiugdrrghuqeenucggtf frrghtthgvrhhnpedvvedvieeuteehiefftdfhjeevvdetffevgffhhfeuudffhedvkeef veeiueejleenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvgifsegrjhdrihgurdgr uh X-ME-Proxy: Feedback-ID: idfb84289:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 31304A6007C; Mon, 18 Jul 2022 22:25:28 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-755-g3e1da8b93f-fm-20220708.002-g3e1da8b9 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20220715040354.2629856-1-davidgow@google.com> <38480b33-3b4d-44d4-bb24-6ab199d0c793@www.fastmail.com> Date: Tue, 19 Jul 2022 11:55:06 +0930 From: "Andrew Jeffery" To: "David Gow" Cc: "Brendan Higgins" , "Daniel Latypov" , "Shuah Khan" , "Ulf Hansson" , "Arnd Bergmann" , linux-aspeed , linux-mmc , "Linux Kernel Mailing List" , "kbuild test robot" , "open list:KERNEL SELFTEST FRAMEWORK" , "Sadiya Kazi" , "KUnit Development" Subject: Re: [PATCH] mmc: sdhci-of-aspeed: test: Fix dependencies when KUNIT=m Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS 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, 19 Jul 2022, at 11:11, David Gow wrote: > On Mon, Jul 18, 2022 at 8:45 AM Andrew Jeffery wrote: >> >> >> >> On Fri, 15 Jul 2022, at 13:33, David Gow wrote: >> > While the sdhci-of-aspeed KUnit tests do work when builtin, and do work >> > when KUnit itself is being built as a module, the two together break. >> > >> > This is because the KUnit tests (understandably) depend on KUnit, so a >> > built-in test cannot build if KUnit is a module. >> > >> > Fix this by adding a dependency on (MMC_SDHCI_OF_ASPEED=m || KUNIT=y), >> > which only excludes this one problematic configuration. >> > >> > This was reported on a nasty openrisc-randconfig run by the kernel test >> > robot, though for some reason (compiler optimisations removing the test >> > code?) I wasn't able to reproduce it locally on x86: >> > https://lore.kernel.org/linux-mm/202207140122.fzhlf60k-lkp@intel.com/T/ >> > >> > Fixes: 291cd54e5b05 ("mmc: sdhci-of-aspeed: test: Use kunit_test_suite() macro") >> > Reported-by: kernel test robot >> > Signed-off-by: David Gow >> > --- >> > drivers/mmc/host/Kconfig | 1 + >> > 1 file changed, 1 insertion(+) >> > >> > diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig >> > index 10c563999d3d..e63608834411 100644 >> > --- a/drivers/mmc/host/Kconfig >> > +++ b/drivers/mmc/host/Kconfig >> > @@ -171,6 +171,7 @@ config MMC_SDHCI_OF_ASPEED >> > config MMC_SDHCI_OF_ASPEED_TEST >> > bool "Tests for the ASPEED SDHCI driver" if !KUNIT_ALL_TESTS >> > depends on MMC_SDHCI_OF_ASPEED && KUNIT >> > + depends on (MMC_SDHCI_OF_ASPEED=m || KUNIT=y) >> >> Should this replace the line above? Isn't it just more constrained? >> > > We need both lines. The first ensures that both KUNIT and > MMC_SDHCI_OF_ASPEED are available, and the second just targets the > case where KUNIT=m and MMC_SDHCI_OF_ASPEED=y. > If we got rid of the first line, we could end up compiling this > without KUnit at all (if MMC_SDHCI_OF_ASPEED=m). Ah, yes. Fair enough! Acked-by: Andrew Jeffery