Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3284718pxb; Sun, 3 Oct 2021 21:26:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRnPfKZqLygHcabSWtHRkAqwiC66K+zAYwQaGZu877hJkSiKIcWECY1Nh3OujPBgNELlU+ X-Received: by 2002:aa7:9735:0:b0:44c:619f:29fc with SMTP id k21-20020aa79735000000b0044c619f29fcmr3180341pfg.79.1633321603234; Sun, 03 Oct 2021 21:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633321603; cv=none; d=google.com; s=arc-20160816; b=aMdd0Fst7DBJk4HfobCGDKl+YzpfEveibZH6n5fzx/MGsogjfj7xJEWtngpgkYjRO7 QW010z8gAcMbsqdkX+WMerFPhaGfPApDltRNmTqID2RzyySlj8EcQEBPY6jLa5zoezc7 n7k1HgNeiLDvjInjYNk5sEV3SbTZuo0ww/7u/Zp6VPjCA0qVHLm4oPVuUoN2JHt+CUDL yCtIe7hqa9PPb4auqWBCx3+HbZH9/RPY/uLMu/rNmm9AHih0hbcqbtCg4dVnN4oKhAVa x53quTcKPlQOr3Cij/tdQ1npG4+Tdt4cdA/9pDZXGGm/U8+Z4xMifPKTCiXJIM61iNOo fayw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=iLHOXz0Wn0eWjf5ViWgIBPwiUOS/exWspdBmzwNJN+U=; b=pRHsbnEdR0wWnQieGfAtAbtR0rsdjhT7oZ0E4tNW8rhJzjBLmjzkwnxnvtghDFpmYe L9WzlBdu44cYeHwTLMo7Ec3gPXc8Dx/6WXLvgBn/fqxX4SIzzRZYrNmCuKeJoUgOM8C+ gqxvfRB60rZiRPHa566R8dDgbnFVrqRzTxA5vM0CkKbfo1/1RCNFHEvW5bxCmOP6yyhP lCKgz6KxUhfkxdPJiG8BNO+YhzHVcAnwJJZoumk39ap5KDSh3U8qJE8XaCcw6FuLSTKa XHaABDVMAjFF1epUwASKImaYgYm7JW2VpG4fmV799KdRDEIX07U0n4+1CqZfVfvaQAnN mWUg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u15si16508054plm.30.2021.10.03.21.26.30; Sun, 03 Oct 2021 21:26:43 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232433AbhJDE0b (ORCPT + 99 others); Mon, 4 Oct 2021 00:26:31 -0400 Received: from mail1.ugh.no ([178.79.162.34]:58782 "EHLO mail1.ugh.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230193AbhJDE0a (ORCPT ); Mon, 4 Oct 2021 00:26:30 -0400 X-Greylist: delayed 522 seconds by postgrey-1.27 at vger.kernel.org; Mon, 04 Oct 2021 00:26:30 EDT Received: from localhost (localhost [127.0.0.1]) by mail1.ugh.no (Postfix) with ESMTP id 56DC02554CA; Mon, 4 Oct 2021 06:15:59 +0200 (CEST) Received: from mail1.ugh.no ([127.0.0.1]) by localhost (catastrophix.ugh.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LwONpQ8GEa86; Mon, 4 Oct 2021 06:15:58 +0200 (CEST) Received: from [IPV6:2a0a:2780:4e89:40:96fb:1f70:94af:2f39] (unknown [IPv6:2a0a:2780:4e89:40:96fb:1f70:94af:2f39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: andre@tomt.net) by mail.ugh.no (Postfix) with ESMTPSA id DE8C02554C4; Mon, 4 Oct 2021 06:15:57 +0200 (CEST) Message-ID: <0599f364-c9cc-31af-e500-89778f0b566c@tomt.net> Date: Mon, 4 Oct 2021 06:15:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.1 Subject: Re: [PATCH 5.14 058/162] igc: fix build errors for PTP Content-Language: en-US To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, Randy Dunlap , Ederson de Souza , Tony Nguyen , Vinicius Costa Gomes , Jeff Kirsher , "David S. Miller" , Jakub Kicinski , Jesse Brandeburg , intel-wired-lan@lists.osuosl.org, Sasha Levin References: <20210927170233.453060397@linuxfoundation.org> <20210927170235.491648102@linuxfoundation.org> From: Andre Tomt In-Reply-To: <20210927170235.491648102@linuxfoundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27.09.2021 19:01, Greg Kroah-Hartman wrote: > From: Randy Dunlap > > [ Upstream commit 87758511075ec961486fe78d7548dd709b524433 ] > > When IGC=y and PTP_1588_CLOCK=m, the ptp_*() interface family is > not available to the igc driver. Make this driver depend on > PTP_1588_CLOCK_OPTIONAL so that it will build without errors. > > Various igc commits have used ptp_*() functions without checking > that PTP_1588_CLOCK is enabled. Fix all of these here. > > Fixes these build errors: > > ld: drivers/net/ethernet/intel/igc/igc_main.o: in function `igc_msix_other': > igc_main.c:(.text+0x6494): undefined reference to `ptp_clock_event' > ld: igc_main.c:(.text+0x64ef): undefined reference to `ptp_clock_event' > ld: igc_main.c:(.text+0x6559): undefined reference to `ptp_clock_event' > ld: drivers/net/ethernet/intel/igc/igc_ethtool.o: in function `igc_ethtool_get_ts_info': > igc_ethtool.c:(.text+0xc7a): undefined reference to `ptp_clock_index' > ld: drivers/net/ethernet/intel/igc/igc_ptp.o: in function `igc_ptp_feature_enable_i225': > igc_ptp.c:(.text+0x330): undefined reference to `ptp_find_pin' > ld: igc_ptp.c:(.text+0x36f): undefined reference to `ptp_find_pin' > ld: drivers/net/ethernet/intel/igc/igc_ptp.o: in function `igc_ptp_init': > igc_ptp.c:(.text+0x11cd): undefined reference to `ptp_clock_register' > ld: drivers/net/ethernet/intel/igc/igc_ptp.o: in function `igc_ptp_stop': > igc_ptp.c:(.text+0x12dd): undefined reference to `ptp_clock_unregister' > ld: drivers/platform/x86/dell/dell-wmi-privacy.o: in function `dell_privacy_wmi_probe': > > Fixes: 64433e5bf40ab ("igc: Enable internal i225 PPS") > Fixes: 60dbede0c4f3d ("igc: Add support for ethtool GET_TS_INFO command") > Fixes: 87938851b6efb ("igc: enable auxiliary PHC functions for the i225") > Fixes: 5f2958052c582 ("igc: Add basic skeleton for PTP") > Signed-off-by: Randy Dunlap > Cc: Ederson de Souza > Cc: Tony Nguyen > Cc: Vinicius Costa Gomes > Cc: Jeff Kirsher > Cc: "David S. Miller" > Cc: Jakub Kicinski > Cc: Jesse Brandeburg > Cc: intel-wired-lan@lists.osuosl.org > Acked-by: Vinicius Costa Gomes > Signed-off-by: David S. Miller > Signed-off-by: Sasha Levin > --- > drivers/net/ethernet/intel/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ethernet/intel/Kconfig b/drivers/net/ethernet/intel/Kconfig > index 82744a7501c7..c11d974a62d8 100644 > --- a/drivers/net/ethernet/intel/Kconfig > +++ b/drivers/net/ethernet/intel/Kconfig > @@ -335,6 +335,7 @@ config IGC > tristate "Intel(R) Ethernet Controller I225-LM/I225-V support" > default n > depends on PCI > + depends on PTP_1588_CLOCK_OPTIONAL > help > This driver supports Intel(R) Ethernet Controller I225-LM/I225-V > family of adapters. > PTP_1588_CLOCK_OPTIONAL does not exist in 5.14, so this effectively disables the igc driver completely when applied to stable as-is.