Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9176569pxu; Mon, 28 Dec 2020 08:29:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXaHYV5QxshXjy8fMyu9qEjJzwSabBWLk/pePjhfceAmePaJ/g4naiXbK55cVqaGEUybfB X-Received: by 2002:aa7:dcd0:: with SMTP id w16mr43126009edu.229.1609172949051; Mon, 28 Dec 2020 08:29:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609172949; cv=none; d=google.com; s=arc-20160816; b=CTdwc7FjLgHIRKqYSUNZX+Y/Eny3LNDYCG+clxUz7FBD+4uirHQNZZMMzJuKsjsl6D dpHS6JEeiBS8e7osmSgeOaLldgsbEvz8vpnVeXHnfeXxZ1A6VP2gdF24h4FUf1iFTmAi vCAIccf6HL1TxPSMzL56p9BCCScHKtz8Nkgrj4XVgqZF7FcIabKbWtgrkTj3lAR6CznV I6J1IwuriPlCcH8WtAYEhARFb/IVXAzZfHMrn0ToT/gEzK8j8FENGM/t2knZn8KFU+2i Fs9LhShB1e8o7yVgTG2gmwo9LwDfW0ZtwJu9bakj2WcxdGXys/fFhtaE1xHSh/ZIRrBl PUYQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HqwSSBBBlQ/ZLvYNOFmLxpv+1aZ5x/FBhGEYGKrW+SM=; b=cy/RlvakCrUmcp9mDqCK5y9wd2/e6dCZueTmlvThhFZ9Pa11YGhCa4b+B6ahO6ZWuV 2/MlTW4glFjAqzDejUce915LALAwfhZwD6yC4M20mkcrygbq9N2kiKo4zUaJB4BsG9jW +6TjGOFfM1Q5yxiY8jc9jqAIna4OIjBabeOBbTcgU8l5EmJrnbn8TNnDXFziC+9FcUWr F+1by9WvAQtuSFvn9EX3LV8Om+Y3OwuyQsCZ0RVX7HqHwGQU4/Sssc4pamU0C+REmGym yr0htzfms9kOTK+X1Og37IKq+FslO7IqhU14lY5jxkuJE7byW8R708PXzRjVDzHuylr4 KPoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=N1aJB1jP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si3291167ejd.56.2020.12.28.08.28.46; Mon, 28 Dec 2020 08:29:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=N1aJB1jP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2633369AbgL1QYP (ORCPT + 99 others); Mon, 28 Dec 2020 11:24:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:38716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730797AbgL1NLZ (ORCPT ); Mon, 28 Dec 2020 08:11:25 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B3F7C206ED; Mon, 28 Dec 2020 13:11:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161070; bh=Fl2siaoJyc8HjAOQguAav/uWtoacuvzIBUcl1LSUC88=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N1aJB1jPmyYCs59rqcrVjKqKs0q/JP4KmZiviAyW84OQnGc+AIU8RLqTzJJzjRUpp kEfbAt0JlahPmQaow2+oa65ekzac53U7wfBfKtIL8GgR7/dbUbVuJznsXMQnumMZPH NmugHuingmmEwOYCPhgeI5Cu+TgJx4YZsPKI96Ec= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Necip Fazil Yildiran , Thomas Bogendoerfer , Sasha Levin Subject: [PATCH 4.14 091/242] MIPS: BCM47XX: fix kconfig dependency bug for BCM47XX_BCMA Date: Mon, 28 Dec 2020 13:48:16 +0100 Message-Id: <20201228124909.180446652@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Necip Fazil Yildiran [ Upstream commit 3a5fe2fb9635c43359c9729352f45044f3c8df6b ] When BCM47XX_BCMA is enabled and BCMA_DRIVER_PCI is disabled, it results in the following Kbuild warning: WARNING: unmet direct dependencies detected for BCMA_DRIVER_PCI_HOSTMODE Depends on [n]: MIPS [=y] && BCMA_DRIVER_PCI [=n] && PCI_DRIVERS_LEGACY [=y] && BCMA [=y]=y Selected by [y]: - BCM47XX_BCMA [=y] && BCM47XX [=y] && PCI [=y] The reason is that BCM47XX_BCMA selects BCMA_DRIVER_PCI_HOSTMODE without depending on or selecting BCMA_DRIVER_PCI while BCMA_DRIVER_PCI_HOSTMODE depends on BCMA_DRIVER_PCI. This can also fail building the kernel. Honor the kconfig dependency to remove unmet direct dependency warnings and avoid any potential build failures. Fixes: c1d1c5d4213e ("bcm47xx: add support for bcma bus") Link: https://bugzilla.kernel.org/show_bug.cgi?id=209879 Signed-off-by: Necip Fazil Yildiran Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/bcm47xx/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/bcm47xx/Kconfig b/arch/mips/bcm47xx/Kconfig index 29471038d817e..c6b99845fb377 100644 --- a/arch/mips/bcm47xx/Kconfig +++ b/arch/mips/bcm47xx/Kconfig @@ -27,6 +27,7 @@ config BCM47XX_BCMA select BCMA select BCMA_HOST_SOC select BCMA_DRIVER_MIPS + select BCMA_DRIVER_PCI if PCI select BCMA_DRIVER_PCI_HOSTMODE if PCI select BCMA_DRIVER_GPIO default y -- 2.27.0