Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2814922imw; Sun, 17 Jul 2022 17:59:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tyVdRrNd20vDc/9UG9gpdAiIL9UNsDapYHpGqux7O7OEg3HuOLnGat7QO2OSzYkC0Maotu X-Received: by 2002:a17:907:1b16:b0:72b:8c16:dac0 with SMTP id mp22-20020a1709071b1600b0072b8c16dac0mr22920952ejc.286.1658105956029; Sun, 17 Jul 2022 17:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658105956; cv=none; d=google.com; s=arc-20160816; b=tnF90MmMeMp5/r/oPBJ8DsKzNGClaLDHlnA5E3zvznBmjtXslfCMg96/LyMNNm5WYR 0jpyYUBsACs5UXV721IUwQKpLKzjlxph64AZzs/8iaoAYdzaS0fNeCb0/GWJmHjS52iW Ua0RqFYuCku5MIPsjPzLeuL80oO2jJIV74HzRYMqtYCenojZDvVzZ044uNho3D6sxEYa ygPMiR7mDW1lBJijup9QKB31HRw8pov0qusAhOMNg/Ut1h33lqgIkuOSqjYx1/4kE2cB OI/U2p1cKC0cY32a7Y0FL5KXmuCd/ImqLcvEn/SGgD9LkwjzBDmrAOQGfCnr/AMt/m51 MeVw== 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=9eCT8yjok0PcSR4T5HvuxY2Sn6RNMobB+nq9wlqocDU=; b=EbepSvz/KIEYl9+LZvNoB2mPYEIP0wQ2zmDrsPk1gimFlVMUAYBlFHsWaOP9VZKmMO jtkbLO+PLflBrvzpUf91eXLr0VxX+3i1ZcKJiYuVBiX6k4ziofOhXbR+E6rH+zqqNLZD LHwPCmHCrPnmGeZ4Pb+PpBTPXG3RtAteVuDPQYnxY3+sS+YEKBtqBf6pWivIvxvH4m2H YYd0TJxGSrpZZ10dehSADb2M09dhwmbhNaMbCLqe/52yFypJSOZ+FRWoJLVNcmmHDgLu FeYctP0vIHaIlurOwiWGQxzaAUVcghpDQn27RvSNwqGo2SCBAIKlWqDz6hUKXzgcYK3Y d86w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm2 header.b=Txgoqm8L; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=18tngN32; 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 b12-20020a056402350c00b0042e0cfdab0fsi17018441edd.6.2022.07.17.17.58.43; Sun, 17 Jul 2022 17:59:16 -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=Txgoqm8L; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=18tngN32; 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 S231263AbiGRApS (ORCPT + 99 others); Sun, 17 Jul 2022 20:45:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbiGRApR (ORCPT ); Sun, 17 Jul 2022 20:45:17 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9248813EB0; Sun, 17 Jul 2022 17:45:14 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 1429F320039A; Sun, 17 Jul 2022 20:45:10 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute3.internal (MEProxy); Sun, 17 Jul 2022 20:45:12 -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=1658105110; x=1658191510; bh=9eCT8yjok0 PcSR4T5HvuxY2Sn6RNMobB+nq9wlqocDU=; b=Txgoqm8L3eOo97F6L2M1hCzzWs eZ1ANe5/eX/M3qB5ZKrWRI4vAfEaOBH54clcBHo9bsRLf+ogW5P3Ni0pLEbuWUfB aaMPf6Nb9tEjDJkvlV0r/B5BGg+w3klBfR+HgltvUZx8+y7/c4gLvnQ5X3wtFQGv 1vv6RYDzhWqic+hY/hovn0opbtb/dj3MEzRgtQxzWTlUMJT2czTAfmQSG1hz7e39 QwEREcL8+VGzle+hjZJ6tH4Dmq45iqZdaR1W9+XrX0NwZf62FI5OfdiDiEPFVxiq 16zax4Moze54MA/lx9l6yJa+ub1r4LAbvMliFPrEGPC+3jQISgZ+THBIp3uw== 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=1658105110; x=1658191510; bh=9eCT8yjok0PcSR4T5HvuxY2Sn6RN MobB+nq9wlqocDU=; b=18tngN32W7+K7CjfUBw8Ftb5OhGZaov/D6q/jVY1lDqI lvOfiOAtDBBreSofiFmQ71gjlWcuIXK5H+fBAk4UQXFJwvGXyt6LxsZ3LAkO7mPi mftuFQK02EhH3pNPSaiNMIPjumnj5SO6L1oI5XW6a6wWAJPmRcfNTxnjUsm2EHQn 6hlMXQJT8xskwpajkQ0bLjTgmaMRRrV7t26YVPqKz5S/XntreGCGjUn2S+N0CYp9 hkQG11QZtKv+yDHYS8QvkkAg3Z9Hm5SpVmOZ+wN+xsqJfryuZ/rj7qe+iCyhtmXz CZCZNkYQGbHa08hEBWclVHKfz2mY2gh8OpEqvij9vA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudekjedggedtucetufdoteggodetrfdotf 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 26B5A170007E; Sun, 17 Jul 2022 20:45:10 -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: <38480b33-3b4d-44d4-bb24-6ab199d0c793@www.fastmail.com> In-Reply-To: <20220715040354.2629856-1-davidgow@google.com> References: <20220715040354.2629856-1-davidgow@google.com> Date: Mon, 18 Jul 2022 10:14:48 +0930 From: "Andrew Jeffery" To: "David Gow" , "Brendan Higgins" , "Daniel Latypov" , "Shuah Khan" , "Ulf Hansson" , "Arnd Bergmann" Cc: linux-aspeed@lists.ozlabs.org, linux-mmc , "Linux Kernel Mailing List" , "kbuild test robot" , linux-kselftest@vger.kernel.org, "Sadiya Kazi" , kunit-dev@googlegroups.com 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 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? Regardless, thanks for your work here, the kunit integration with the ASPEED SDHCI driver bothered me a lot when I wrote it. Andrew