From patchwork Sun Feb 5 00:43:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 52836 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1567977wrn; Sat, 4 Feb 2023 16:49:04 -0800 (PST) X-Google-Smtp-Source: AK7set/TG147WIoQAYxJ3u23Gi6a5CFoKcG7QI1a6oev9x40DDHwILaqLJKXN67LaLXP0MWcjqKn X-Received: by 2002:a17:90b:4a43:b0:219:7f29:3152 with SMTP id lb3-20020a17090b4a4300b002197f293152mr15179201pjb.39.1675558144679; Sat, 04 Feb 2023 16:49:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675558144; cv=none; d=google.com; s=arc-20160816; b=AM36dvwB2aSDvzEcfwQNuMlbRqIed/dWMTYQISBpNdQKUq7FvqRE40h4ltIUJF+BDf cnu18pV8s/Z2oDgw6vavDstMP+zaqx3H5gexd7bQm0CeO4C+bwhOCA19QypV7gTRogCM fyUyMeyGCWPCOa4yRwd+kV3i+Xo1sGoufCQO3acbYyOvT13kQxsXN2giF/gl5UpN9k5B T9AE44aFCsP2w9D4xaM5+22DyMG6nr5GWRfEkCf05K/+j6E68aNCeiICcAbjLh4XYr7l YAy4byoAZUNB7RBHnGbGCg0Mid/H3qMI+Vl/OFN0E3BkvHsoB5XA9cNDJ+DxUfU3pI8d yPlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=b2WyZrtmPUwW7ibcZwI17X+YOhCURjH4jEMa7j9F8OI=; b=aG5Zzdi4EDw3/2gwDvAMiILUecgP941qkTYhh+5TiQbM8XyV3z8uJh+wkHYIc99EA/ 8kTm+592fBiifB3Mnkx0VkFRwPGpgpS0iYQMMrv9RqrliraDqYZfT7vC3CKfPCTegJJf VSJOW7Db4HJiFF2aAhYfx5I6A1YjFm9ERF77oN5BjBb6aZJ+0DRP9iZxOj3a3Dmclilz QG9Sp5ifxFoD2Ens+/EzdJInb3UkhOEtq0EqeAWjyzxarxQW2ltbGH1P2X0zmFeeLREB c7rTwEuTa0Kf0fF8TncEsrrdd5Pby5F+siq1vURVnLrwQIlD/fPxt7pU8xLyeq10OFxK /VFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=dMsaI9Gs; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x8-20020a17090ab00800b0022be95c1ea1si12192625pjq.59.2023.02.04.16.48.52; Sat, 04 Feb 2023 16:49:04 -0800 (PST) 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=@infradead.org header.s=bombadil.20210309 header.b=dMsaI9Gs; 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 S231375AbjBEAoG (ORCPT + 99 others); Sat, 4 Feb 2023 19:44:06 -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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756950057106120950?= X-GMAIL-MSGID: =?utf-8?q?1756950057106120950?= 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 [=n] Selected by [y]: - SUN20I_PPU [=y] && (ARCH_SUNXI || COMPILE_TEST [=y]) WARNING: unmet direct dependencies detected for PM Depends on [n]: SPARC64 [=n] Selected by [y]: - SUN20I_PPU [=y] && (ARCH_SUNXI || COMPILE_TEST [=y]) WARNING: unmet direct dependencies detected for PM_GENERIC_DOMAINS Depends on [n]: SPARC64 [=n] && PM [=y] Selected by [y]: - QCOM_GDSC [=y] && COMMON_CLK [=y] && PM [=y] - SUN20I_PPU [=y] && (ARCH_SUNXI || COMPILE_TEST [=y]) - MESON_GX_PM_DOMAINS [=y] && (ARCH_MESON || COMPILE_TEST [=y]) && PM [=y] && OF [=y] - BCM2835_POWER [=y] && (ARCH_BCM2835 || COMPILE_TEST [=y] && OF [=y]) && PM [=y] - BCM_PMB [=y] && (ARCH_BCMBCA || COMPILE_TEST [=y] && OF [=y]) && PM [=y] - ROCKCHIP_PM_DOMAINS [=y] && (ARCH_ROCKCHIP || COMPILE_TEST [=y]) && PM [=y] Selected by [m]: - ARM_SCPI_POWER_DOMAIN [=m] && (ARM_SCPI_PROTOCOL [=m] || COMPILE_TEST [=y] && OF [=y]) && PM [=y] - MESON_EE_PM_DOMAINS [=m] && (ARCH_MESON || COMPILE_TEST [=y]) && PM [=y] && OF [=y] - QCOM_AOSS_QMP [=m] && (ARCH_QCOM || COMPILE_TEST [=y]) && MAILBOX [=y] && COMMON_CLK [=y] && PM [=y] WARNING: unmet direct dependencies detected for PM_GENERIC_DOMAINS_OF Depends on [n]: SPARC64 [=n] && PM_GENERIC_DOMAINS [=y] && OF [=y] Selected by [y]: - MESON_GX_PM_DOMAINS [=y] && (ARCH_MESON || COMPILE_TEST [=y]) && PM [=y] && OF [=y] Selected by [m]: - MESON_EE_PM_DOMAINS [=m] && (ARCH_MESON || COMPILE_TEST [=y]) && PM [=y] && OF [=y] 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. -if SPARC64 +if SPARC64 || COMPILE_TEST source "kernel/power/Kconfig" endif