Message ID | 20231007182443.32300-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp1061800vqo; Sat, 7 Oct 2023 11:48:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvdb2DPEAzz0mXJuhyx+sL/w37QRS/zSdmyFMV7jyg6nSyEt4o+GBCyebSgA9xXeyMLtDh X-Received: by 2002:a05:6a20:12d0:b0:12e:5f07:7ede with SMTP id v16-20020a056a2012d000b0012e5f077edemr14402731pzg.41.1696704501372; Sat, 07 Oct 2023 11:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696704501; cv=none; d=google.com; s=arc-20160816; b=swr8cVukuqc7qWzGWjBACfrNbuVOZkfiCZFfjzRI5zNZkXNmxyBmgOAu6V3Pezf2xC OjrdRPc8l3dqGtWNL/+EGEcttoW6N8LsuViFYudTixshPEccAJrEj4T2LoVus36uxXHh d5arqliQ6+YF74ByNkQabqezS4bzFna9SkFj+fvfRvyRTWu58OgXSjFV3Esh8tW2bPgD XV3cFQqD76dc15YdAYnNS62+sW2qlHFlKoy32YjjSphgPgIXKlJhoebj81JeVC+SOe0o FB1XGOlPrgESLZzKr1EKVjDS8NTMyNKoBhAf0boLof4iC0H41nhQ9nlA7EKyiXWyn1AT zoDQ== 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=QMmmdka+5r7TnWgQ+zRWrvp3h9M2Ione/vlBDmKezJY=; fh=QQ0xeIPTmhFVO+TdqFd9p6wpWga8cpxbI3I2K8Hjk3s=; b=sKeW+BecTEnDJBOGhp4FBs7SfW/YdQkCyMBi7zjr5lCdp+M/wE3zZa/HZDDTkWI3N0 BSNLgjOjsesqAzzC31WFhGGIG+y3GydnW2KZrwjb3Q1rFU5g8Us/Z8vmVpLi2KWhGuXr woD1Y8srN8Hf04yWJGC1Y4osvMdo6sq6mFQPXcGFhqfMECE9ZtOHYm+u+Vr20msjgv/q IZQVBVvJawQ1DyzYo+BWBC1uzqNW4JRyy9DPTByxIUaSMXl9NI+8Hc58RUYipxx16+KI l0H0iSbCHj56KTtjGkUZFWEuDBAoCWnVyp6eu1HqYN6cBd61kVDwiES635G0e3+s0qLk gxrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Brg9Yo1V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id t184-20020a6381c1000000b00577516d9a1esi6368394pgd.172.2023.10.07.11.48.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 11:48:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Brg9Yo1V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id AD6FE80775A8; Sat, 7 Oct 2023 11:47:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344109AbjJGSYr (ORCPT <rfc822;pusanteemu@gmail.com> + 17 others); Sat, 7 Oct 2023 14:24:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjJGSYq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 7 Oct 2023 14:24:46 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82720BC; Sat, 7 Oct 2023 11:24:45 -0700 (PDT) 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=QMmmdka+5r7TnWgQ+zRWrvp3h9M2Ione/vlBDmKezJY=; b=Brg9Yo1VWlk5XfNL843e/POx5h qm+gnZ/1DEEN9vP3mSkDoZTD8QOvddRbrrPCdCnQdDfVsmas3NkZ3uUSwRWuvrwiOI4TPOzPDbrJf gsN9q1pFxkAn8pYECarc5RQCBw85lkUdK2V/9Ii0SqapsFsKDmfNqT1ClFxx0ACgU4mhkKquatWUh XQrEH7kAkP2RqHSZGZXfm+Hy5RlL0vd9F6VIOrfibELoYt50gkCLAUkll9ur5VYXGXywFkgBARt7l 0QMtyHzFg7nN2bAPvKZFeay1IFIoIEiP5zLaeyFrmopy7ZL08W4DaaYTLxGzGiI4A1NXZg/a66MP8 QeUJUVZw==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qpBym-007nvV-2e; Sat, 07 Oct 2023 18:24:44 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, Michael Buesch <m@bues.ch>, linux-wireless@vger.kernel.org Subject: [RFC PATCH] ssb: relax SSB_EMBEDDED dependencies Date: Sat, 7 Oct 2023 11:24:43 -0700 Message-ID: <20231007182443.32300-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 07 Oct 2023 11:47:34 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779123619356349206 X-GMAIL-MSGID: 1779123619356349206 |
Series |
[RFC] ssb: relax SSB_EMBEDDED dependencies
|
|
Commit Message
Randy Dunlap
Oct. 7, 2023, 6:24 p.m. UTC
This is a kconfig warning in a randconfig when CONFIG_PCI is not set:
WARNING: unmet direct dependencies detected for SSB_EMBEDDED
Depends on [n]: SSB [=y] && SSB_DRIVER_MIPS [=y] && SSB_PCICORE_HOSTMODE [=n]
Selected by [y]:
- BCM47XX_SSB [=y] && BCM47XX [=y]
This is caused by arch/mips/bcm47xx/Kconfig's symbol BCM47XX_SSB
selecting SSB_EMBEDDED when CONFIG_PCI is not set.
This warning can be prevented by having SSB_EMBEDDED not depend on
SSB_PCICORE_HOSTMODE, although some parts of SSB use PCI.
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Michael Buesch <m@bues.ch>
Cc: linux-wireless@vger.kernel.org
---
Comments, thoughts?
I also tried changing arch/mips/bcm47xx/Kconfig's BCM47XX_SSB to
select SSB_EMBEDDED if PCI
but that results in build errors.
drivers/ssb/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Randy, thanks for the patch. On Sat, 7 Oct 2023 11:24:43 -0700 Randy Dunlap <rdunlap@infradead.org> wrote: > This is a kconfig warning in a randconfig when CONFIG_PCI is not set: > > WARNING: unmet direct dependencies detected for SSB_EMBEDDED > Depends on [n]: SSB [=y] && SSB_DRIVER_MIPS [=y] && > SSB_PCICORE_HOSTMODE [=n] Selected by [y]: > - BCM47XX_SSB [=y] && BCM47XX [=y] > > This is caused by arch/mips/bcm47xx/Kconfig's symbol BCM47XX_SSB > selecting SSB_EMBEDDED when CONFIG_PCI is not set. > > This warning can be prevented by having SSB_EMBEDDED not depend on > SSB_PCICORE_HOSTMODE, although some parts of SSB use PCI. > diff -- a/drivers/ssb/Kconfig b/drivers/ssb/Kconfig > --- a/drivers/ssb/Kconfig > +++ b/drivers/ssb/Kconfig > @@ -134,7 +134,7 @@ config SSB_SFLASH > # Assumption: We are on embedded, if we compile the MIPS core. > config SSB_EMBEDDED > bool > - depends on SSB_DRIVER_MIPS && SSB_PCICORE_HOSTMODE > + depends on SSB_DRIVER_MIPS > default y > > config SSB_DRIVER_EXTIF Could we instead make SSB_EMBEDDED depend on SSB_PCICORE_HOSTMODE if PCI!=n. Wouldn't that also solve the problem? I don't fully remember how all this ssb config stuff works, but to me adding a PCICORE->PCI dependency sounds safer against build regressions in some other configurations. What do you think?
On 10/8/23 00:35, Michael Büsch wrote: > Hi Randy, > > thanks for the patch. > > On Sat, 7 Oct 2023 11:24:43 -0700 > Randy Dunlap <rdunlap@infradead.org> wrote: > >> This is a kconfig warning in a randconfig when CONFIG_PCI is not set: >> >> WARNING: unmet direct dependencies detected for SSB_EMBEDDED >> Depends on [n]: SSB [=y] && SSB_DRIVER_MIPS [=y] && >> SSB_PCICORE_HOSTMODE [=n] Selected by [y]: >> - BCM47XX_SSB [=y] && BCM47XX [=y] >> >> This is caused by arch/mips/bcm47xx/Kconfig's symbol BCM47XX_SSB >> selecting SSB_EMBEDDED when CONFIG_PCI is not set. >> >> This warning can be prevented by having SSB_EMBEDDED not depend on >> SSB_PCICORE_HOSTMODE, although some parts of SSB use PCI. > >> diff -- a/drivers/ssb/Kconfig b/drivers/ssb/Kconfig >> --- a/drivers/ssb/Kconfig >> +++ b/drivers/ssb/Kconfig >> @@ -134,7 +134,7 @@ config SSB_SFLASH >> # Assumption: We are on embedded, if we compile the MIPS core. >> config SSB_EMBEDDED >> bool >> - depends on SSB_DRIVER_MIPS && SSB_PCICORE_HOSTMODE >> + depends on SSB_DRIVER_MIPS >> default y >> >> config SSB_DRIVER_EXTIF > > Could we instead make SSB_EMBEDDED depend on SSB_PCICORE_HOSTMODE if > PCI!=n. Wouldn't that also solve the problem? > > I don't fully remember how all this ssb config stuff works, but to > me adding a PCICORE->PCI dependency sounds safer against build > regressions in some other configurations. > > What do you think? I'll test it some and see how it works out. Thanks.
Hi Michael, On 10/8/23 07:08, Randy Dunlap wrote: > > > On 10/8/23 00:35, Michael Büsch wrote: >> Hi Randy, >> >> thanks for the patch. >> >> On Sat, 7 Oct 2023 11:24:43 -0700 >> Randy Dunlap <rdunlap@infradead.org> wrote: >> >>> This is a kconfig warning in a randconfig when CONFIG_PCI is not set: >>> >>> WARNING: unmet direct dependencies detected for SSB_EMBEDDED >>> Depends on [n]: SSB [=y] && SSB_DRIVER_MIPS [=y] && >>> SSB_PCICORE_HOSTMODE [=n] Selected by [y]: >>> - BCM47XX_SSB [=y] && BCM47XX [=y] >>> >>> This is caused by arch/mips/bcm47xx/Kconfig's symbol BCM47XX_SSB >>> selecting SSB_EMBEDDED when CONFIG_PCI is not set. >>> >>> This warning can be prevented by having SSB_EMBEDDED not depend on >>> SSB_PCICORE_HOSTMODE, although some parts of SSB use PCI. >> >>> diff -- a/drivers/ssb/Kconfig b/drivers/ssb/Kconfig >>> --- a/drivers/ssb/Kconfig >>> +++ b/drivers/ssb/Kconfig >>> @@ -134,7 +134,7 @@ config SSB_SFLASH >>> # Assumption: We are on embedded, if we compile the MIPS core. >>> config SSB_EMBEDDED >>> bool >>> - depends on SSB_DRIVER_MIPS && SSB_PCICORE_HOSTMODE >>> + depends on SSB_DRIVER_MIPS >>> default y >>> >>> config SSB_DRIVER_EXTIF >> >> Could we instead make SSB_EMBEDDED depend on SSB_PCICORE_HOSTMODE if >> PCI!=n. Wouldn't that also solve the problem? >> >> I don't fully remember how all this ssb config stuff works, but to >> me adding a PCICORE->PCI dependency sounds safer against build >> regressions in some other configurations. >> >> What do you think? > > I'll test it some and see how it works out. > Thanks. The following change seems to work and passes some testing. Is this what you had in mind? Thanks. --- --- drivers/ssb/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/drivers/ssb/Kconfig b/drivers/ssb/Kconfig --- a/drivers/ssb/Kconfig +++ b/drivers/ssb/Kconfig @@ -134,7 +134,7 @@ config SSB_SFLASH # Assumption: We are on embedded, if we compile the MIPS core. config SSB_EMBEDDED bool - depends on SSB_DRIVER_MIPS && SSB_PCICORE_HOSTMODE + depends on PCI=n || SSB_PCICORE_HOSTMODE default y config SSB_DRIVER_EXTIF
On Sun, 8 Oct 2023 23:12:49 -0700 Randy Dunlap <rdunlap@infradead.org> wrote: > - depends on SSB_DRIVER_MIPS && SSB_PCICORE_HOSTMODE > + depends on PCI=n || SSB_PCICORE_HOSTMODE I thought about something like this: depends on (SSB_DRIVER_MIPS && PCI=n) || (SSB_DRIVER_MIPS && SSB_PCICORE_HOSTMODE) Would that solve the warning?
Hi Michael, On 10/10/23 11:43, Michael Büsch wrote: > On Sun, 8 Oct 2023 23:12:49 -0700 > Randy Dunlap <rdunlap@infradead.org> wrote: > >> - depends on SSB_DRIVER_MIPS && SSB_PCICORE_HOSTMODE >> + depends on PCI=n || SSB_PCICORE_HOSTMODE > > I thought about something like this: > > depends on (SSB_DRIVER_MIPS && PCI=n) || (SSB_DRIVER_MIPS && SSB_PCICORE_HOSTMODE) > > Would that solve the warning? Yes, that works as well, although I prefer to express it like this: config SSB_EMBEDDED bool - depends on SSB_DRIVER_MIPS && SSB_PCICORE_HOSTMODE + depends on SSB_DRIVER_MIPS + depends on PCI=n || SSB_PCICORE_HOSTMODE default y although if you prefer the way that you have it above, I'm OK with that also. Thanks for your help.
On Wed, 11 Oct 2023 20:44:49 -0700 Randy Dunlap <rdunlap@infradead.org> wrote: > > I thought about something like this: > > > > depends on (SSB_DRIVER_MIPS && PCI=n) || (SSB_DRIVER_MIPS && > > SSB_PCICORE_HOSTMODE) > > > > Would that solve the warning? > > Yes, that works as well, although I prefer to express it like this: > > config SSB_EMBEDDED > bool > - depends on SSB_DRIVER_MIPS && SSB_PCICORE_HOSTMODE > + depends on SSB_DRIVER_MIPS > + depends on PCI=n || SSB_PCICORE_HOSTMODE > default y Acked-by: Michael Büsch <m@bues.ch>
diff -- a/drivers/ssb/Kconfig b/drivers/ssb/Kconfig --- a/drivers/ssb/Kconfig +++ b/drivers/ssb/Kconfig @@ -134,7 +134,7 @@ config SSB_SFLASH # Assumption: We are on embedded, if we compile the MIPS core. config SSB_EMBEDDED bool - depends on SSB_DRIVER_MIPS && SSB_PCICORE_HOSTMODE + depends on SSB_DRIVER_MIPS default y config SSB_DRIVER_EXTIF