Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9183471pxu; Mon, 28 Dec 2020 08:39:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXBOU8XKIPM8KSE9ldBwY3lTuehbwrcAWfrPze9WWxdaz517niGxNtplJ3i09oV+7AJL5b X-Received: by 2002:a17:906:358c:: with SMTP id o12mr35285546ejb.301.1609173599310; Mon, 28 Dec 2020 08:39:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609173599; cv=none; d=google.com; s=arc-20160816; b=p+cl+MwKw23DboK0o3Qpnn7stwEQrxJsrOw0NSIt9TJnvMIDWt1gjFc4C4OP8NI14L BAVEotooZaU0yW431MA6O6JPg2G0bpsV7978Rms3653Cp4+3dsNI84pUIk+wwYSjS+e+ CVbN9c6AW4xWHDVvhgj39wU71Ie6qrt5P34NNwlspj9BCzzrOw62gsdeFW2BxMJ7LJEE zdRKM0yqoxnPx6oBVltIeh9wQxByEBVYebCDWvLMASC8LHxaw/0JkXz4ttukeKEmS/8f +qsS5pUmu0fzinAO1QHTT40Vl6Ot//7XmJHZRLIpp6xGVdPQhn1op9ySQO36vhbX2YX+ czEQ== 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=Xa14ZdeYxbWtky+clmZp2MFvFV198ib3GdC0upN1Eb0=; b=0QUvLV+OymKhIMRq55MOqU0wioiyrAWtCqNrn6HkW0tgW/cfyaBmMlp1ubt37yLE2g cgLLMeOGGxXP9H3vrlAHgVeWjK7jfpF35G8u3Q7E6EK50sKIuiNoS07jS/TwTwXGduYW PO3+zwxtdTZGX4xZ+eDQ7fD7HAmss/rofdhWUZrWefNmF0Ab/iCJHPAlqyJv/xehHkU8 BrusawRNsGNEDsYb6yw5WKaxkC3dxCLxOm/YJBtuDfqWxQ7FvHKxHhbcQ6LGPO2GJBkh NJklShPgMGV0khQNJaQSjqhP11yfZFLfq1VOmm8RqEPEs/Tf1jvwVTYLWrt1nGRY7Inr DcKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MUygsIZT; 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 d21si21299099edy.92.2020.12.28.08.39.37; Mon, 28 Dec 2020 08:39:59 -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=MUygsIZT; 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 S2442149AbgL1QhV (ORCPT + 99 others); Mon, 28 Dec 2020 11:37:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:58198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729789AbgL1NB5 (ORCPT ); Mon, 28 Dec 2020 08:01:57 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3996E22B3B; Mon, 28 Dec 2020 13:01:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609160476; bh=pTvif6N61dk2LqyTuqvqgcraYYX9lXCcL5IFWOtqYGQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MUygsIZTNl/cVObHE8MC6w0mM/I+KNgXWb4a+jHsxteIxHJeBaYLKXuQj74wsbouC TksI+Co8KvkMU304TI+jFhCSeOcIvV7gc7TnptZxw/YQRe31rb6Y4n0A2QJsABMlqX ZjDsL5g9lDQ1KKPPXLwG1MEW25Jl4FfkMjmv7908= 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.9 065/175] MIPS: BCM47XX: fix kconfig dependency bug for BCM47XX_BCMA Date: Mon, 28 Dec 2020 13:48:38 +0100 Message-Id: <20201228124856.397541279@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124853.216621466@linuxfoundation.org> References: <20201228124853.216621466@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 e970fd9cf7693..7ca7384fd5c9d 100644 --- a/arch/mips/bcm47xx/Kconfig +++ b/arch/mips/bcm47xx/Kconfig @@ -26,6 +26,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