Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4150987pxb; Mon, 27 Sep 2021 10:25:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkvZgkPfgA44zPS4pNCMw/B9TZ1E4mYC6KDHI3W/5K8uOsvyi8GQs1KJ6nZSwrNCRBi+ac X-Received: by 2002:a17:90a:8c81:: with SMTP id b1mr242446pjo.61.1632763530839; Mon, 27 Sep 2021 10:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632763530; cv=none; d=google.com; s=arc-20160816; b=J9gVcfIqfGTayArL90WZCA6xwK7Rl1YeXszKBQZB0SvJmo7WRkIkoEVQE8YOlKYI/r E6atGPd9usUAQpVC0tFpbI/tcYZBqHzOkJ72kkjxxeSBQsxIuTfnJ3BysCYlKpyHgyY1 KJaP7WqI2Q6ZItK4s9fYcsepvtW62f1AUcHoIqYo11K1fK9R9kmNgBJZCYPQgqJ89Jv1 pwivhJ62SmsFYZP5DaIOufvxrn1Dp2dEE5FVA56DIfNQif4nnXjW/BJF1ZOSaPM7DMfO TSdW/6RxCG4B9jbw/M85EzhIdOuW1YSq7m26Wj1zFnlRT8FhbSwL9gtHCUsnWcbjk4hA qd8g== 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=qp96o3T29f+9SHvvoFzq57W3lIyY21fJjwxKaVQ/Vxg=; b=jZbzC0yCcyqnYxAnvEQ7ydR8UAzWdpGYNkW+ph5Fti9RdbuXz5rM09X6K1m8VtidvU 0HhwAORFSfavH7hb2+Q78nsrzExUD4V8tWgoYGaDJS3I5KlJ1+j+HJgSY2REJP9BS2NM uHlYIw5osvkyzhu2m0RCJNjUdjZfW8ySGWO0yOcgJp5E7A15J2b5QLSw3ziiwyO0BcDR n8F8OQRllwu3IVsw0CIhwwWwV6UUKfH+9VPRs2X/HNw6a9i881RhfJf6lYK8WpRmgOkX tGMuEqam7rfJx5l0lly/mi0nFCJmYuUtzROOVDeG1Ym1ZOPOHFurbH0SSW1AsaF5RGq4 oo1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CydkNwMJ; 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 y6si7842159pfr.110.2021.09.27.10.25.18; Mon, 27 Sep 2021 10:25:30 -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=CydkNwMJ; 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 S238062AbhI0R0H (ORCPT + 99 others); Mon, 27 Sep 2021 13:26:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:37176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237546AbhI0RXV (ORCPT ); Mon, 27 Sep 2021 13:23:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CB5CB613B5; Mon, 27 Sep 2021 17:14:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632762892; bh=hynGQikisgJ7MtRjGpKUx4LEZ/MlwhPK1EYInONPbf0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CydkNwMJ/pL8V+KvOjosOkHihilHUeRDlaSuR7zGgyA1N5wPJdnNmrxyqc/W5KnDR KN0i++EUS3szvVGclYoMqaJJxJt4h9AFwCQ69bHneWWTlVvqoVKoZidDl2Trs8+s91 FldCWwQoU65VJ7tCKmbtDO75JnIrX6YxlNaEn+4k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , 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: [PATCH 5.14 058/162] igc: fix build errors for PTP Date: Mon, 27 Sep 2021 19:01:44 +0200 Message-Id: <20210927170235.491648102@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210927170233.453060397@linuxfoundation.org> References: <20210927170233.453060397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- 2.33.0