From nobody Sat Sep 13 04:05:23 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E589C636CC for ; Sun, 5 Feb 2023 00:44:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231401AbjBEAoH (ORCPT ); Sat, 4 Feb 2023 19:44:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229865AbjBEAoF (ORCPT ); Sat, 4 Feb 2023 19:44:05 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5622120690; Sat, 4 Feb 2023 16:44:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=b2WyZrtmPUwW7ibcZwI17X+YOhCURjH4jEMa7j9F8OI=; b=dMsaI9GsbZkr2FzxUFQ1Z5MEXb Na5fclS4w34wQD+N4D3qKIpq80w2KQz8SqZaoMqCKbN3KfnvYDQCgYV9d3L/bLE2oJt2Tdb3ptKi6 WRBsjYXyQcpxxGxh57jo3i2+cJae54sS9uxbn00B0UtmjHgVhLeiH46aLjyoUe9BtRaG7sGL5bGIG nwSFHkkefGOuHdQNT0mcNgqHk3J2o+VgPXNOHRfhvtUVPftfy474p3Iavi6EUSeS+KLKiq00A4JXw Dd9kBmWQLDkjUclo6AoyjKmYUYYIVjpeiPiCKFTcSh5RPzQlgGsWl/7InUniq7MZNNxC9+6MvKmTy yyg83sKA==; Received: from [2601:1c2:d00:6a60::9526] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pOT8R-005mfr-L2; Sun, 05 Feb 2023 00:43:59 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Arnd Bergmann , "David S. Miller" , sparclinux@vger.kernel.org, Kirill Tkhai , Sam Ravnborg , Andrew Morton Subject: [PATCH] sparc: allow PM configs for sparc32 COMPILE_TEST Date: Sat, 4 Feb 2023 16:43:57 -0800 Message-Id: <20230205004357.29459-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" When doing randconfig builds for sparc32 with COMPILE_TEST, some (non-Sparc) drivers cause kconfig warnings with the Kconfig symbols PM, PM_GENERIC_DOMAINS, or PM_GENERIC_DOMAINS_OF. This is due to arch/sparc/Kconfig not using the PM Kconfig for Sparc32: if SPARC64 source "kernel/power/Kconfig" endif Arnd suggested adding "|| COMPILE_TEST" to the conditional, instead of trying to track down every driver that selects any of these PM symbols. Fixes the following kconfig warnings: WARNING: unmet direct dependencies detected for PM Depends on [n]: SPARC64 [=3Dn] Selected by [y]: - SUN20I_PPU [=3Dy] && (ARCH_SUNXI || COMPILE_TEST [=3Dy]) WARNING: unmet direct dependencies detected for PM Depends on [n]: SPARC64 [=3Dn] Selected by [y]: - SUN20I_PPU [=3Dy] && (ARCH_SUNXI || COMPILE_TEST [=3Dy]) WARNING: unmet direct dependencies detected for PM_GENERIC_DOMAINS Depends on [n]: SPARC64 [=3Dn] && PM [=3Dy] Selected by [y]: - QCOM_GDSC [=3Dy] && COMMON_CLK [=3Dy] && PM [=3Dy] - SUN20I_PPU [=3Dy] && (ARCH_SUNXI || COMPILE_TEST [=3Dy]) - MESON_GX_PM_DOMAINS [=3Dy] && (ARCH_MESON || COMPILE_TEST [=3Dy]) && PM= [=3Dy] && OF [=3Dy] - BCM2835_POWER [=3Dy] && (ARCH_BCM2835 || COMPILE_TEST [=3Dy] && OF [=3D= y]) && PM [=3Dy] - BCM_PMB [=3Dy] && (ARCH_BCMBCA || COMPILE_TEST [=3Dy] && OF [=3Dy]) && = PM [=3Dy] - ROCKCHIP_PM_DOMAINS [=3Dy] && (ARCH_ROCKCHIP || COMPILE_TEST [=3Dy]) &&= PM [=3Dy] Selected by [m]: - ARM_SCPI_POWER_DOMAIN [=3Dm] && (ARM_SCPI_PROTOCOL [=3Dm] || COMPILE_TE= ST [=3Dy] && OF [=3Dy]) && PM [=3Dy] - MESON_EE_PM_DOMAINS [=3Dm] && (ARCH_MESON || COMPILE_TEST [=3Dy]) && PM= [=3Dy] && OF [=3Dy] - QCOM_AOSS_QMP [=3Dm] && (ARCH_QCOM || COMPILE_TEST [=3Dy]) && MAILBOX [= =3Dy] && COMMON_CLK [=3Dy] && PM [=3Dy] WARNING: unmet direct dependencies detected for PM_GENERIC_DOMAINS_OF Depends on [n]: SPARC64 [=3Dn] && PM_GENERIC_DOMAINS [=3Dy] && OF [=3Dy] Selected by [y]: - MESON_GX_PM_DOMAINS [=3Dy] && (ARCH_MESON || COMPILE_TEST [=3Dy]) && PM= [=3Dy] && OF [=3Dy] Selected by [m]: - MESON_EE_PM_DOMAINS [=3Dm] && (ARCH_MESON || COMPILE_TEST [=3Dy]) && PM= [=3Dy] && OF [=3Dy] Fixes: bdde6b3c8ba4 ("sparc64: Hibernation support") Signed-off-by: Randy Dunlap Suggested-by: Arnd Bergmann Cc: "David S. Miller" Cc: sparclinux@vger.kernel.org Cc: Kirill Tkhai Cc: Sam Ravnborg Cc: Andrew Morton Acked-by: Sam Ravnborg --- arch/sparc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/arch/sparc/Kconfig b/arch/sparc/Kconfig --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -283,7 +283,7 @@ config ARCH_FORCE_MAX_ORDER This config option is actually maximum order plus one. For example, a value of 13 means that the largest free memory block is 2^12 pages. =20 -if SPARC64 +if SPARC64 || COMPILE_TEST source "kernel/power/Kconfig" endif