Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9129064pxu; Mon, 28 Dec 2020 07:19:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwY7F1OkLME/mfg1j013ckQrkkG2232MW9ifXPJiTciY3covVewzl683XahsaM9kBRaDzMa X-Received: by 2002:a17:906:74d9:: with SMTP id z25mr41662341ejl.217.1609168792754; Mon, 28 Dec 2020 07:19:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609168792; cv=none; d=google.com; s=arc-20160816; b=KPvGk0TOVTxtDxhWhaLPmMlQEXGrvkDhm+Q8ETMXLopS0PO/aJpUdYJbLgK+VXGyD8 tlxR7Wf1iBQWeNl/aRsFBEzonWoAou4aPnQdqZLjA+aW0vKk6OO87sN+oMlZPwpykj8c MdvnaLdzpCrn8qYXUorM/ViFQxjQ98rFwnT6yusvdZq+YK99jRLsJBAfp2IwU7rnG9mR 4vbIqRQ/3pDDbAJpwYyHx6/zGkIoicThGPGY8AiX9kP7k856/06SgqqtVxOIQNRnVMD/ l+xhGL6KIFwT4AHjQuz6EyOhcL8DDNmx9YZuKUuagRGXKGAq7ztDaW96AW9D0Bna88wW 8Vuw== 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=l5RRSpKcNu9ITrudRXgBh4fRp+RSUOkfRQJd2RNjZhs=; b=FJrS0sqqc2TKSYD64NC1RMamKZ3I41TACEXTujvr2RAWm/9DKBWrqbGlUO0rBQJDNF Sdd1d27xt2EDlfjxyycrtX0LHmkGQ3FofuylN1jLfpTCSRGP4wPgjKRFCjkDi0/NIPGY Jn7iM0A1L2z2CzuZCJW17aNl9Onrbz2/3RBWvrGL9s/84hMSSDGBhjjdlkZqZIh/A4Ij NkxKxV4nOkKW/sMIQFsqffbBEmYPIXidKI1QiF/inRYC8J7Hh1VvmMJj0dSWFap00DZH ykvdZYvej4eRiLCQ4zs+6NyqtjTeLsweqoTSC63YKzKuveddhNsf9V/ksC5qK0U/kozD gvoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2Sp63NAF; 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 s3si20215042edy.134.2020.12.28.07.19.28; Mon, 28 Dec 2020 07:19:52 -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=2Sp63NAF; 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 S2392569AbgL1PRW (ORCPT + 99 others); Mon, 28 Dec 2020 10:17:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:38700 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437336AbgL1OEX (ORCPT ); Mon, 28 Dec 2020 09:04:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A00B420715; Mon, 28 Dec 2020 14:03:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164223; bh=27VwrQoWTxZMfb3nbLFIqHHM+ZMeoScZtvDEugBpn0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2Sp63NAFALOtCxyHw2HpF6ZPlh7u2guh3mmWcSghfQlzqk9bU9pcOnZOGFICEtfFY X2WDYM2im8cvuOtdNwWUScCK2oP3eiN2KEkMVzop141QrwmMeBgt3pzj+k4+b5ynS8 qTkRXw6F8XgXcsZdsxliIfdeaal08RxQdeKCzvts= 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 5.10 104/717] MIPS: BCM47XX: fix kconfig dependency bug for BCM47XX_BCMA Date: Mon, 28 Dec 2020 13:41:42 +0100 Message-Id: <20201228125025.944293091@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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 6889f74e06f54..490bb6da74b7e 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