Message ID | 20230209010635.24016-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp44275wrn; Wed, 8 Feb 2023 17:08:55 -0800 (PST) X-Google-Smtp-Source: AK7set8rIjhdj5bXImiUs8wM1Hh1knZad/vDcZvb7oi4tBojYdQLjro+gaNjv9mnDiKlg+LeLjWa X-Received: by 2002:a05:6402:34cc:b0:491:6ea2:e88a with SMTP id w12-20020a05640234cc00b004916ea2e88amr10356340edc.2.1675904934887; Wed, 08 Feb 2023 17:08:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675904934; cv=none; d=google.com; s=arc-20160816; b=o0/TITM6RvlXDyob0pc2OHPQmCIDEm3QMX2PxMomSy4ERMvj1EvK65UwiIvd1OGsrT RsUJWJIcSi5uk0sMI2xU125QX5PNhDG8MHB2e6h5vV5c9jqW2vb6FGJx5Z+1MlXYE5vP jrOWSNFX7isNs7H/uCoFzj28Tj7xHtKbauZmJctVJx/FZPJFM1QCMyFveV+W8wO+RFMl B8ZDvETV4U93MOk/7AbYfzfKPE07U+NUas5D28mQvcCYJiDzRro7yqg5WQ7I9s6b7Lb5 TZR6F1rX4R9Hs++xPLolZKtm1JHbWtZBVgX59oGlMtwCf8F5H6FzLbJdi/B/u5Natjm7 CtOA== 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=OcW8GdVrBEWyhALBhRMthSCRaiPw82hJsz7VAS9p4Ag=; b=KbHz7umCGm0qQFJMdj7YNodhDqot8e2RtXRoGLz5xvxFu67M5eG05xqqzNeoe5DQGk RWhIE6IyVtua8y8Ui7c/U/kBrnBMMUSDWdA7JYYtm5ncwTdxc+LlCY9ZTYsLsnG1isZf ZfamQASbtEduu/XO9q5bYXWmvhydH7agR8pEt2MH27YDxBOBaZIfvFgjuWwDCmr05FGB lm8zBRLs+pS0NxHib7cz0nE3VHXXha6S4yM/L0XY1dANPRAX2An20tgzGK0S2UMFRHlj tOp70TMTeqHhp0g/TgXSVIuV2bq0ydd1WwJ2TPhOhI+PR9ByZodLR4QL/+NxSlFjCUKE 2UHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=0lp6NmF3; 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 m25-20020aa7c2d9000000b004a515610f03si414768edp.198.2023.02.08.17.08.07; Wed, 08 Feb 2023 17:08:54 -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=0lp6NmF3; 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 S230502AbjBIBGn (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Wed, 8 Feb 2023 20:06:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230487AbjBIBGj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Feb 2023 20:06:39 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4246F12851; Wed, 8 Feb 2023 17:06:39 -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=OcW8GdVrBEWyhALBhRMthSCRaiPw82hJsz7VAS9p4Ag=; b=0lp6NmF3LueIjFiWdcHYtpXB1U 1YmWS4O+HwlRY4OMb0TbUubrBNn5pPnF5ayeFT/DmwLymhUFl2m6tS3sV75XHy9vmE5PIDazqFzmN CPPXHTyicDLj4gqjUY9/M2gESm3KclnZtJASVAJ+Tmn3BZ4fgwZSeWVXWnEITXPs+fFaMloQBNd6Q E820N00xjEvDlOx+ozvPjMgZj6XDqGJQvgyzwSrwHqodGA2+kTZmjII+RIwHjomNT9MC4gqL25hdX 17vOmp3aK2IQJKyfzA5NxFsXDGDeE8+sKcX0IYcQftS+pQfVdME9kv2eoL8rvIoFhabfjZ5Ar84gL 4t35Sh5w==; Received: from [2601:1c2:980:9ec0::df2f] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPvOW-00HMdb-FX; Thu, 09 Feb 2023 01:06:36 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, Arnd Bergmann <arnd@arndb.de>, Geert Uytterhoeven <geert@linux-m68k.org>, linux-m68k@lists.linux-m68k.org Subject: [PATCH] m68k: allow PM menu options for COMPILE_TEST Date: Wed, 8 Feb 2023 17:06:35 -0800 Message-Id: <20230209010635.24016-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757313692798929749?= X-GMAIL-MSGID: =?utf-8?q?1757313692798929749?= |
Series |
m68k: allow PM menu options for COMPILE_TEST
|
|
Commit Message
Randy Dunlap
Feb. 9, 2023, 1:06 a.m. UTC
Allow PM options for COMPILE_TEST. This quietens a kconfig
warning.
This is similar to a patch for Sparc32 that was suggested by
Arnd.
WARNING: unmet direct dependencies detected for PM
Depends on [n]: !MMU [=y]
Selected by [y]:
- SUN20I_PPU [=y] && (ARCH_SUNXI || COMPILE_TEST [=y])
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-m68k@lists.linux-m68k.org
---
arch/m68k/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Randy, On Thu, Feb 9, 2023 at 2:06 AM Randy Dunlap <rdunlap@infradead.org> wrote: > Allow PM options for COMPILE_TEST. This quietens a kconfig > warning. > > This is similar to a patch for Sparc32 that was suggested by > Arnd. > > WARNING: unmet direct dependencies detected for PM > Depends on [n]: !MMU [=y] > Selected by [y]: > - SUN20I_PPU [=y] && (ARCH_SUNXI || COMPILE_TEST [=y]) > > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Thanks for your patch! > --- a/arch/m68k/Kconfig > +++ b/arch/m68k/Kconfig > @@ -126,7 +126,7 @@ menu "Kernel Features" > > endmenu > > -if !MMU > +if !MMU || COMPILE_TEST > menu "Power management options" I think this is the wrong solution. All other selects of PM are done by architecture/platform-gating symbols, and none of them can be enabled for compile-testing. So either SUN20I_PPU should depend on PM, or ARCH_SUNXI should select PM. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Hi Geert, On 2/9/23 06:03, Geert Uytterhoeven wrote: > Hi Randy, > > On Thu, Feb 9, 2023 at 2:06 AM Randy Dunlap <rdunlap@infradead.org> wrote: >> Allow PM options for COMPILE_TEST. This quietens a kconfig >> warning. >> >> This is similar to a patch for Sparc32 that was suggested by >> Arnd. >> >> WARNING: unmet direct dependencies detected for PM >> Depends on [n]: !MMU [=y] >> Selected by [y]: >> - SUN20I_PPU [=y] && (ARCH_SUNXI || COMPILE_TEST [=y]) >> >> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > > Thanks for your patch! > >> --- a/arch/m68k/Kconfig >> +++ b/arch/m68k/Kconfig >> @@ -126,7 +126,7 @@ menu "Kernel Features" >> >> endmenu >> >> -if !MMU >> +if !MMU || COMPILE_TEST >> menu "Power management options" > > I think this is the wrong solution. > All other selects of PM are done by architecture/platform-gating Yes, which is where they should be. > symbols, and none of them can be enabled for compile-testing. > > So either SUN20I_PPU should depend on PM, or ARCH_SUNXI > should select PM. I'll do the first choice since I shouldn't be the one to make a platform config change without knowing about the platform. Thank you.
diff -- a/arch/m68k/Kconfig b/arch/m68k/Kconfig --- a/arch/m68k/Kconfig +++ b/arch/m68k/Kconfig @@ -126,7 +126,7 @@ menu "Kernel Features" endmenu -if !MMU +if !MMU || COMPILE_TEST menu "Power management options" config PM