Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3518398pxb; Mon, 4 Oct 2021 04:11:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHnNxMJv+rbmau05YojotFIwYicWwoLNfcyFD2OP7tJEW3vBINnFDIgZ6PCAWvyxTTT2fT X-Received: by 2002:a17:90b:17ca:: with SMTP id me10mr36280157pjb.171.1633345909731; Mon, 04 Oct 2021 04:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633345909; cv=none; d=google.com; s=arc-20160816; b=c7zWJbWJXvynK4rUctuhGPgqAe62ADXHl0ZvKQfONV4okpI6BYADMwCCr1zD2WqoP0 EAYTG7uHaYG9GDpv131d/WS4Gx5fLFjRVidj4XCE4mJi2mIGgC3Krgm0KPyWfO9y+4Vo 5aoERMzODBiAv2H1aOFT8anesv6LQ/kdP8XqK7F8rsXk1lCpOjxuBhGfBBVd87I0B6yX n1HLYpUMzoEqyC16XEgo30ZLrmAKTecnDfBT5XiWfmUJHcg5zeR+XGiDFYG0tkFReCwi VtA4AAQ1bpK/8vyxpJITakUEazCy48QIP7inC00AF4pcueWjU2O0lX+fzsgeyU2UiL8C apJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xkz+yjU6qeJW0ihWTyxAprM6y4UW8zC6B1bKjt9RdLE=; b=UVRMpO9OoUpeXUZvq3vt1TahiZ8PnG2A+b5QR7P0iXYh5Gh4f4vBRSD+5It0VwUQq6 3fzlV3/APdFWsQcTfOc6soVbokpdef6D5TC7eEmuSFe4CPclkbN3KCEjCIoX7pR91lsj BIVbGnF6M1UIIHbJYo1FDhzuEq0f8cYWP6mDQT7W0SgAaIjce7e02wma6uo6pdBig4yd WBAURkIY+Ok1ql6Vg4VBPfK55c1YLvzyWbrOFJ3j1/soxwbLnE0u9GQ69Jx8zX1VRkhp qsOj4yC/oKc5wB4/7S9nrqNar8UyK6CEk/pHHSgiCiV+O90Y8YSUH/KaNtDXkUHHeeIN 8QOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wrt2hvnd; 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 y129si17183827pfb.64.2021.10.04.04.11.35; Mon, 04 Oct 2021 04:11:49 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wrt2hvnd; 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 S232343AbhJDKuC (ORCPT + 99 others); Mon, 4 Oct 2021 06:50:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:51098 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbhJDKuB (ORCPT ); Mon, 4 Oct 2021 06:50:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0385A61222; Mon, 4 Oct 2021 10:48:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633344492; bh=LwPkg6HgEFttm4+gkwWZjXErILpWGuuCAZcf1MpIwS4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wrt2hvndxzmT8HkKcIbY/DQR9urzzLn7YZZmHdgWj2q7F7GRk1W8Psov4DWPbj1Il gCs0yz6OgC+9VApnsFf0gT5P93jn26AV07UIiLKnjAvpj5qh16ht0iFyy2GVuvpNMh u6AEyPCj7DwImwzuU2yEpTyYHbqk5JDWWbvDF+SU= Date: Mon, 4 Oct 2021 12:48:10 +0200 From: Greg Kroah-Hartman To: Andre Tomt Cc: linux-kernel@vger.kernel.org, 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 Subject: Re: [PATCH 5.14 058/162] igc: fix build errors for PTP Message-ID: References: <20210927170233.453060397@linuxfoundation.org> <20210927170235.491648102@linuxfoundation.org> <0599f364-c9cc-31af-e500-89778f0b566c@tomt.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0599f364-c9cc-31af-e500-89778f0b566c@tomt.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 04, 2021 at 06:15:56AM +0200, Andre Tomt wrote: > 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. Now dropped from the queue, again :) thanks, greg k-h