Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp707873pxb; Tue, 5 Apr 2022 19:41:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEdRhk4/1HqTj1oyTl5l47P1yLkhOGa8SeZQkbB7E7Qc+EFTos6id0EoGLUGWEU7Gba+CH X-Received: by 2002:a17:907:6e87:b0:6e7:f655:3b41 with SMTP id sh7-20020a1709076e8700b006e7f6553b41mr6146812ejc.704.1649212884307; Tue, 05 Apr 2022 19:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649212884; cv=none; d=google.com; s=arc-20160816; b=Ep2aUxF/RVJX9fRiBcgFAVzZr0m3nqcLy7VdPxcdQUr4L6JnXegC7SGOCXBvy0hmKa FXwogqb4xuJX9Lwe4boxKXqi/SX3V80DDm2yr88s0hyCymASwH1KKtQRePF27gd99f9r FVTxg1nBR2G5f3wfM2kw9dae2YgtbpY9GFe2zEXx3XqLJxnh+owavc4/VR9SGf2E4NgA Up9q39iS5xQnw+apfm629oh5UtkhDqTqXpKXixpIWDsH6NsqJAhHqGAchDv8Ebx1pi2M UdMahkqw7T0Dwx2/tGZlSCIit3DzJpcibWQbtxr+5Mrz39FAlvVQ0PqyVRWnQyd94a2F 6CYw== 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=fkgwhY6xbFUCnbRdpgkh+TcwlrSq1wHjRr0ZbsSMqkU=; b=Gbt5+9A2Mgsh/nF63eH7ris8NWpot99Ts4v/Jd3CmJA3rPu/W6P1nU0ULohqkpL2HO 3sHYvfqFl+1QM9+bLphPbeeb9DE5cf5/Rg3ygvcpJwOcIU1m2VW+n98EftMLOWT7xd2w X6cW8KtH+q4EbhjGHRxd8r+QsJuGkcP6n2zs5qp8OWsZalAyRNcMDJsHXLzXYN8Jl77M EMHXc2MTKI3RPyz6EpP4+DVfzsZ2DSaqSWlugHjWtScsIxTjOgDpq8LAESQGNzXE9IPi 3qMa4oEqt8518b1mkR7FWDLUMv28ZpegtUbBffFBk0ixNA1M5bhDWy0yuhYbFJHt7CaH /MlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QXvxoxEg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a50cc90000000b0041cdabdaad6si4729743edi.621.2022.04.05.19.40.57; Tue, 05 Apr 2022 19:41:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QXvxoxEg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1390306AbiDENiF (ORCPT + 99 others); Tue, 5 Apr 2022 09:38:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344186AbiDEJSg (ORCPT ); Tue, 5 Apr 2022 05:18:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D38145AF4; Tue, 5 Apr 2022 02:05:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9D60661003; Tue, 5 Apr 2022 09:05:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A7F1C385A1; Tue, 5 Apr 2022 09:05:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149503; bh=skwGjJleA6WjxDdMKnkBNDhJLVUBgPnr7tJN0zUUfos=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QXvxoxEgpMag4CYBUuKx4v2rGeSrMHfoCyXQhSz03VhkNZ38bF57DguK5NqDOlaGA yFkvGfD8UcxWohut6JkzjgJKWseiD5lT8t6gKoBfzZolBWXgko3tUgrDLsGTRKc20V 7ml9GtvGhU3m0XzYhFc63BDQX5U6a/ZOlGrQ48GY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , kernel test robot , Horatiu Vultur , UNGLinuxDriver@microchip.com, "David S. Miller" , Jakub Kicinski , Paolo Abeni , Steen Hegelund , Bjarni Jonasson , Lars Povlsen , Sasha Levin Subject: [PATCH 5.16 0738/1017] net: sparx5: depends on PTP_1588_CLOCK_OPTIONAL Date: Tue, 5 Apr 2022 09:27:31 +0200 Message-Id: <20220405070416.170738806@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit 08be6b13db23f68146c600dd5adfd92e99d9ec6e ] Fix build errors when PTP_1588_CLOCK=m and SPARX5_SWTICH=y. arc-linux-ld: drivers/net/ethernet/microchip/sparx5/sparx5_ethtool.o: in function `sparx5_get_ts_info': sparx5_ethtool.c:(.text+0x146): undefined reference to `ptp_clock_index' arc-linux-ld: sparx5_ethtool.c:(.text+0x146): undefined reference to `ptp_clock_index' arc-linux-ld: drivers/net/ethernet/microchip/sparx5/sparx5_ptp.o: in function `sparx5_ptp_init': sparx5_ptp.c:(.text+0xd56): undefined reference to `ptp_clock_register' arc-linux-ld: sparx5_ptp.c:(.text+0xd56): undefined reference to `ptp_clock_register' arc-linux-ld: drivers/net/ethernet/microchip/sparx5/sparx5_ptp.o: in function `sparx5_ptp_deinit': sparx5_ptp.c:(.text+0xf30): undefined reference to `ptp_clock_unregister' arc-linux-ld: sparx5_ptp.c:(.text+0xf30): undefined reference to `ptp_clock_unregister' arc-linux-ld: sparx5_ptp.c:(.text+0xf38): undefined reference to `ptp_clock_unregister' arc-linux-ld: sparx5_ptp.c:(.text+0xf46): undefined reference to `ptp_clock_unregister' arc-linux-ld: drivers/net/ethernet/microchip/sparx5/sparx5_ptp.o:sparx5_ptp.c:(.text+0xf46): more undefined references to `ptp_clock_unregister' follow Fixes: 3cfa11bac9bb ("net: sparx5: add the basic sparx5 driver") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Horatiu Vultur Cc: UNGLinuxDriver@microchip.com Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Paolo Abeni Cc: Steen Hegelund Cc: Bjarni Jonasson Cc: Lars Povlsen Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/microchip/sparx5/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/microchip/sparx5/Kconfig b/drivers/net/ethernet/microchip/sparx5/Kconfig index 7bdbb2d09a14..85b24edb65d5 100644 --- a/drivers/net/ethernet/microchip/sparx5/Kconfig +++ b/drivers/net/ethernet/microchip/sparx5/Kconfig @@ -4,6 +4,7 @@ config SPARX5_SWITCH depends on HAS_IOMEM depends on OF depends on ARCH_SPARX5 || COMPILE_TEST + depends on PTP_1588_CLOCK_OPTIONAL select PHYLINK select PHY_SPARX5_SERDES select RESET_CONTROLLER -- 2.34.1