From patchwork Fri Apr 1 05:42:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 12797916 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0652AC433EF for ; Fri, 1 Apr 2022 05:42:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235179AbiDAFog (ORCPT ); Fri, 1 Apr 2022 01:44:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235087AbiDAFoe (ORCPT ); Fri, 1 Apr 2022 01:44:34 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3502F2013CD for ; Thu, 31 Mar 2022 22:42:46 -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=H4buxTxBIyUS7hoGNmZIWOzhJtPDIgdLe1OuTp8wG2Y=; b=0+jlHY20CkURuPUvhW9Q+4C2x4 L90dQ9K2nxZFsRUEZ2kmUJuQ8mvUG+fkZhemoLr3VwaHVE/8wK8ljOZH9C3R2jzz7kmlL2//3MvTF teWZs6cvxpkONgY8pl95Vg6BDuxlU0Kas6vSgWedwAutQz+qVB8DpS2C8DfP9MlHtTC26IfzFVn0g Cfc3jAoK21nvPmwASigSwgHR2kyYilzaTqrmKl8NdZJdwvs7IqyTdqH1/KVhNCLzfF4TeeGs4AVLP t0wy3zn9c4rQVrETG69l9QA5V5ltDCdV2vpsdVrVNDjtef/F8n/lDGhqO2yuMEVHfQgS6BDwxMxh0 IwBjcL5w==; Received: from [2601:1c0:6280:3f0::aa0b] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1naA3Z-004a8w-6t; Fri, 01 Apr 2022 05:42:45 +0000 From: Randy Dunlap To: netdev@vger.kernel.org Cc: patches@lists.linux.dev, Randy Dunlap , "David S. Miller" , Jakub Kicinski , Paolo Abeni Subject: [PATCH] net: micrel: fix KS8851_MLL Kconfig Date: Thu, 31 Mar 2022 22:42:44 -0700 Message-Id: <20220401054244.18131-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org KS8851_MLL selects MICREL_PHY, which depends on PTP_1588_CLOCK_OPTIONAL, so make KS8851_MLL also depend on PTP_1588_CLOCK_OPTIONAL since 'select' does not follow any dependency chains. Fixes kconfig warning and build errors: WARNING: unmet direct dependencies detected for MICREL_PHY Depends on [m]: NETDEVICES [=y] && PHYLIB [=y] && PTP_1588_CLOCK_OPTIONAL [=m] Selected by [y]: - KS8851_MLL [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_MICREL [=y] && HAS_IOMEM [=y] ld: drivers/net/phy/micrel.o: in function `lan8814_ts_info': micrel.c:(.text+0xb35): undefined reference to `ptp_clock_index' ld: drivers/net/phy/micrel.o: in function `lan8814_probe': micrel.c:(.text+0x2586): undefined reference to `ptp_clock_register' Signed-off-by: Randy Dunlap Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Paolo Abeni --- drivers/net/ethernet/micrel/Kconfig | 1 + 1 file changed, 1 insertion(+) --- mmotm-2022-0331-2037.orig/drivers/net/ethernet/micrel/Kconfig +++ mmotm-2022-0331-2037/drivers/net/ethernet/micrel/Kconfig @@ -39,6 +39,7 @@ config KS8851 config KS8851_MLL tristate "Micrel KS8851 MLL" depends on HAS_IOMEM + depends on PTP_1588_CLOCK_OPTIONAL select MII select CRC32 select EEPROM_93CX6