From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C575C47427 for ; Sun, 27 Sep 2020 04:34:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E614A23899 for ; Sun, 27 Sep 2020 04:34:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="DUjixyV8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730250AbgI0Ed4 (ORCPT ); Sun, 27 Sep 2020 00:33:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbgI0Ed4 (ORCPT ); Sun, 27 Sep 2020 00:33:56 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A1E0C0613CE for ; Sat, 26 Sep 2020 21:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=AHmTfFc14u0+4dfTY7AVuIbWTYomcjz+rbGnGjXoNCI=; b=DUjixyV8xUvg1udS9dCKRaXNgC fuECTSec58LpiM3c/lu3KlU7X6AtVOMlsfaqkVTQR973XXX9fLaCoNPGJHhXvYN1dKGXOnmHOpZKi 2GFqzosYUj/KGZ/+He5Na5yfqCNSLOktF26S5XkVAlf0jCUPaIa+YVF8ADcCHsjkiSPV8nbUZliPb 1NhazTNpwk+mFXQZpV9GnVzfyfNedzQ2oEAx0ngPtdtRBy3+mJgnWt5qS98BDvo6qMNNucj51Punn 3WFpSJvVvPOL5NeNjHsQWzl5oNd67gHbwD0w1i3zEF+ScB5Qs6Qkn//bubcRd8/0FcbJQtQYssAal oulFp4Fw==; Received: from [2601:1c0:6280:3f0::19c2] by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kMONe-0000eb-GS; Sun, 27 Sep 2020 04:33:46 +0000 To: "netdev@vger.kernel.org" , David Miller Cc: Bartosz Golaszewski , Andrew Lunn , Heiner Kallweit , David Daney From: Randy Dunlap Subject: [PATCH] mdio: fix mdio-thunder.c dependency & build error Message-ID: <5aecbd3f-a489-0738-8249-5e08a6f2766f@infradead.org> Date: Sat, 26 Sep 2020 21:33:43 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Randy Dunlap Fix build error by selecting MDIO_DEVRES for MDIO_THUNDER. Fixes this build error: ld: drivers/net/phy/mdio-thunder.o: in function `thunder_mdiobus_pci_probe': drivers/net/phy/mdio-thunder.c:78: undefined reference to `devm_mdiobus_alloc_size' Fixes: 379d7ac7ca31 ("phy: mdio-thunder: Add driver for Cavium Thunder SoC MDIO buses.") Reported-by: kernel test robot Signed-off-by: Randy Dunlap Cc: Bartosz Golaszewski Cc: Andrew Lunn Cc: Heiner Kallweit Cc: netdev@vger.kernel.org Cc: David Daney --- or applies to drivers/net/phy/Kconfig in mainline (or stable) # v4.6 drivers/net/mdio/Kconfig | 1 + 1 file changed, 1 insertion(+) --- linux-next-20200925.orig/drivers/net/mdio/Kconfig +++ linux-next-20200925/drivers/net/mdio/Kconfig @@ -164,6 +164,7 @@ config MDIO_THUNDER depends on 64BIT depends on PCI select MDIO_CAVIUM + select MDIO_DEVRES help This driver supports the MDIO interfaces found on Cavium ThunderX SoCs when the MDIO bus device appears as a PCI