Skip to contentSkip to conversation

igc: fix PTP dependency

PATCH In review Arnd Bergmann 3 participants 4 messages Sep 27, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 igc: fix PTP dependency

From: Arnd Bergmann <[email protected]>

The igc driver was accidentally left out of the Kconfig rework for PTP, it needs the same dependency as the others:

arm-linux-gnueabi-ld: drivers/net/ethernet/intel/igc/igc_main.o: in function `igc_tsync_interrupt':
igc_main.c:(.text+0x1b288): undefined reference to `ptp_clock_event'
arm-linux-gnueabi-ld: igc_main.c:(.text+0x1b308): undefined reference to `ptp_clock_event'
arm-linux-gnueabi-ld: igc_main.c:(.text+0x1b8cc): undefined reference to `ptp_clock_event'
arm-linux-gnueabi-ld: drivers/net/ethernet/intel/igc/igc_ethtool.o: in function `igc_ethtool_get_ts_info':

Fixes e5f31552674e ("ethernet: fix PTP_1588_CLOCK dependencies")
---
 drivers/net/ethernet/intel/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/Kconfig +1 -0
index b0b6f90deb7d..ed8ea63bb172 100644
@@ -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.
Signature · 1 line
2.29.2
#1 lore raw
Quoted 5 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The igc driver was accidentally left out of the Kconfig rework for PTP, it needs the same dependency as the others:

Quoted 8 lines

arm-linux-gnueabi-ld: drivers/net/ethernet/intel/igc/igc_main.o: in function `igc_tsync_interrupt':
igc_main.c:(.text+0x1b288): undefined reference to `ptp_clock_event'
arm-linux-gnueabi-ld: igc_main.c:(.text+0x1b308): undefined reference to `ptp_clock_event'
arm-linux-gnueabi-ld: igc_main.c:(.text+0x1b8cc): undefined reference to `ptp_clock_event'
arm-linux-gnueabi-ld: drivers/net/ethernet/intel/igc/igc_ethtool.o: in function `igc_ethtool_get_ts_info':

Fixes e5f31552674e ("ethernet: fix PTP_1588_CLOCK dependencies")

Same patch is already merged in linux-next (via net tree). Thanks.

Quoted 17 lines
---
  drivers/net/ethernet/intel/Kconfig | 1 +
  1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/Kconfig +1 -0
index b0b6f90deb7d..ed8ea63bb172 100644
@@ -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.
Signature · 1 line
~Randy
#2 lore raw
In reply to Arnd Bergmann
Quoted 5 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The igc driver was accidentally left out of the Kconfig rework for PTP, it needs the same dependency as the others:

Quoted 8 lines

arm-linux-gnueabi-ld: drivers/net/ethernet/intel/igc/igc_main.o: in function `igc_tsync_interrupt':
igc_main.c:(.text+0x1b288): undefined reference to `ptp_clock_event'
arm-linux-gnueabi-ld: igc_main.c:(.text+0x1b308): undefined reference to `ptp_clock_event'
arm-linux-gnueabi-ld: igc_main.c:(.text+0x1b8cc): undefined reference to `ptp_clock_event'
arm-linux-gnueabi-ld: drivers/net/ethernet/intel/igc/igc_ethtool.o: in function `igc_ethtool_get_ts_info':

Fixes e5f31552674e ("ethernet: fix PTP_1588_CLOCK dependencies")

Same patch is already merged in mainline.
Thanks.

(Sorry if someone receives my reply 2x. I had an email glitch.)

Quoted 17 lines
---
  drivers/net/ethernet/intel/Kconfig | 1 +
  1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/Kconfig +1 -0
index b0b6f90deb7d..ed8ea63bb172 100644
@@ -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.
Signature · 1 line
~Randy
#3 lore raw
In reply to Arnd Bergmann
Quoted 32 lines

-----Original Message-----
From: Arnd Bergmann <[email protected]>
Sent: Monday, September 27, 2021 6:17 AM
To: Brandeburg, Jesse <[email protected]>; Nguyen, Anthony L <[email protected]>; David S. Miller <[email protected]>; Jakub Kicinski <[email protected]>
Cc: Arnd Bergmann <[email protected]>; Keller, Jacob E <[email protected]>; Saleem, Shiraz <[email protected]>; Kurt Kanzenbach <[email protected]>; Ertman, David M <[email protected]>; Shannon Nelson <[email protected]>; Richard Cochran <[email protected]>; Vladimir Oltean <[email protected]>; intel-wired-lan at lists.osuosl.org; netdev at vger.kernel.org; linux-kernel at vger.kernel.org
Subject: [PATCH] igc: fix PTP dependency

From: Arnd Bergmann <[email protected]>

The igc driver was accidentally left out of the Kconfig rework for PTP, it needs the same dependency as the others:

arm-linux-gnueabi-ld: drivers/net/ethernet/intel/igc/igc_main.o: in function `igc_tsync_interrupt':
igc_main.c:(.text+0x1b288): undefined reference to `ptp_clock_event'
arm-linux-gnueabi-ld: igc_main.c:(.text+0x1b308): undefined reference to `ptp_clock_event'
arm-linux-gnueabi-ld: igc_main.c:(.text+0x1b8cc): undefined reference to `ptp_clock_event'
arm-linux-gnueabi-ld: drivers/net/ethernet/intel/igc/igc_ethtool.o: in function `igc_ethtool_get_ts_info':

Quoted 2 lines
Fixes e5f31552674e ("ethernet: fix PTP_1588_CLOCK dependencies")

Thanks!

-Jake

Quoted 19 lines
---
 drivers/net/ethernet/intel/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/Kconfig +1 -1
index b0b6f90deb7d..ed8ea63bb172 100644
@@ -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.29.2