Skip to contentSkip to conversation

net/intel: fix link-time undefined reference errors

PATCH In review Alexander Lobakin 6 participants 21 messages Sep 20, 2023 – Oct 13, 2023

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

cover net/intel: fix link-time undefined reference errors

Recently, several link-time issues were spotted in the ethernet/intel/ folder thanks to Kbuild bots and linux-next.
The fixes are pretty straightforward, just some stubs and CONFIG_* guards, so resolve all of them in one shot and unbreak randconfig builds.

Alexander Lobakin (3):
ice: fix undefined references to ice_is_*() when

    !CONFIG_PTP_1588_CLOCK
  ice: fix undefined references from DPLL code when
    !CONFIG_PTP_1588_CLOCK

idpf: fix undefined reference to tcp_gro_complete() when !CONFIG_INET

 drivers/net/ethernet/intel/ice/Makefile     |  5 ++---
 drivers/net/ethernet/intel/ice/ice_main.c   |  8 ++++---
 drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 25 ++++++++++++++++++++-
 drivers/net/ethernet/intel/idpf/idpf_txrx.c |  3 +++
 4 files changed, 34 insertions(+), 7 deletions(-)

---
Directly to netdev/net-next, build bots are not happy and the next linux-next is approaching :s

Signature · 1 line
2.41.0
#1 lore raw

PATCH 1/3 ice: fix undefined references to ice_is_*() when !CONFIG_PTP_1588_CLOCK

Starting the cited commit, ice_lib.c unconditionally refers to three functions compiled only when CONFIG_PTP_1588_CLOCK is set (as they're located in ice_ptp_hw.c):

ERROR: modpost: "ice_is_clock_mux_present_e810t" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_is_phy_rclk_present" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_is_cgu_present" [drivers/net/ethernet/intel/ice/ice.ko] undefined!

These three are HW feature tests and it is safe to stub them as return false when PTP support is disabled.

Fixes 8a3a565ff210 ("ice: add admin commands to access cgu configuration")
---
 drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 25 ++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_ptp_hw.h +24 -1
index 6f277e7b06b9..405a72864dc7 100644
@@ -271,10 +271,33 @@ int ice_read_sma_ctrl_e810t(struct ice_hw *hw, u8 *data);
 int ice_write_sma_ctrl_e810t(struct ice_hw *hw, u8 data);
 int ice_read_pca9575_reg_e810t(struct ice_hw *hw, u8 offset, u8 *data);
 bool ice_is_pca9575_present(struct ice_hw *hw);
+
+#if IS_ENABLED(CONFIG_PTP_1588_CLOCK)
+
 bool ice_is_phy_rclk_present(struct ice_hw *hw);
 bool ice_is_clock_mux_present_e810t(struct ice_hw *hw);
-int ice_get_pf_c827_idx(struct ice_hw *hw, u8 *idx);
 bool ice_is_cgu_present(struct ice_hw *hw);
+
+#else /* !CONFIG_PTP_1588_CLOCK */
+
+static inline bool ice_is_phy_rclk_present(const struct ice_hw *hw)
+{
+	return false;
+}
+
+static inline bool ice_is_clock_mux_present_e810t(const struct ice_hw *hw)
+{
+	return false;
+}
+
+static inline bool ice_is_cgu_present(const struct ice_hw *hw)
+{
+	return false;
+}
+
+#endif /* !CONFIG_PTP_1588_CLOCK */
+
+int ice_get_pf_c827_idx(struct ice_hw *hw, u8 *idx);
 enum dpll_pin_type ice_cgu_get_pin_type(struct ice_hw *hw, u8 pin, bool input);
 struct dpll_pin_frequency *
 ice_cgu_get_pin_freq_supp(struct ice_hw *hw, u8 pin, bool input, u8 *num);
Signature · 1 line
2.41.0
#2 lore raw

Re: [Intel-wired-lan] [PATCH net-next 1/3] ice: fix undefined references to ice_is_*() when !CONFIG_PTP_1588_CLOCK

Quoted 11 lines · Alexander Lobakin

Starting the cited commit, ice_lib.c unconditionally refers to three functions compiled only when CONFIG_PTP_1588_CLOCK is set (as they're located in ice_ptp_hw.c):

ERROR: modpost: "ice_is_clock_mux_present_e810t" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_is_phy_rclk_present" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_is_cgu_present" [drivers/net/ethernet/intel/ice/ice.ko] undefined!

Quoted 8 lines

These three are HW feature tests and it is safe to stub them as return false when PTP support is disabled.

Fixes 8a3a565ff210 ("ice: add admin commands to access cgu configuration")

---

I posted a version of these functions in ice_common.c quite some time ago at which was sent as a series at:

https://lore.kernel.org/netdev/[email protected]/

This version places the functions in ice_common.c and avoids the need for stubs (plus lets us make another function static).

I posted the fix up to bring us to that method here:

https://lore.kernel.org/intel-wired-lan/[email protected]/

I would prefer to take my version, as I think its better at the end of the day than the stubs.

Quoted 32 lines
 drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 25 ++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_ptp_hw.h +17 -1
index 6f277e7b06b9..405a72864dc7 100644
@@ -271,10 +271,33 @@ int ice_read_sma_ctrl_e810t(struct ice_hw *hw, u8 *data);
 int ice_write_sma_ctrl_e810t(struct ice_hw *hw, u8 data);
 int ice_read_pca9575_reg_e810t(struct ice_hw *hw, u8 offset, u8 *data);
 bool ice_is_pca9575_present(struct ice_hw *hw);
+
+#if IS_ENABLED(CONFIG_PTP_1588_CLOCK)
+
 bool ice_is_phy_rclk_present(struct ice_hw *hw);
 bool ice_is_clock_mux_present_e810t(struct ice_hw *hw);
-int ice_get_pf_c827_idx(struct ice_hw *hw, u8 *idx);
 bool ice_is_cgu_present(struct ice_hw *hw);
+
+#else /* !CONFIG_PTP_1588_CLOCK */
+
+static inline bool ice_is_phy_rclk_present(const struct ice_hw *hw)
+{
+	return false;
+}
+
+static inline bool ice_is_clock_mux_present_e810t(const struct ice_hw *hw)
+{
+	return false;
+}
+
+static inline bool ice_is_cgu_present(const struct ice_hw *hw)

drivers/net/ethernet/intel/ice/ice_ptp_hw.h int ice_read_sma_ctrl_e810t(struct ice_hw *hw, u8 *data); · line 303

Quoted 10 lines
drivers/net/ethernet/intel/ice/ice_ptp_hw.h +7 -0
+{
+	return false;
+}
+
+#endif /* !CONFIG_PTP_1588_CLOCK */
+
+int ice_get_pf_c827_idx(struct ice_hw *hw, u8 *idx);
 enum dpll_pin_type ice_cgu_get_pin_type(struct ice_hw *hw, u8 pin, bool input);
 struct dpll_pin_frequency *
 ice_cgu_get_pin_freq_supp(struct ice_hw *hw, u8 pin, bool input, u8 *num);

_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

#3 lore raw

PATCH 2/3 ice: fix undefined references from DPLL code when !CONFIG_PTP_1588_CLOCK

In reply to Alexander Lobakin

DPLL code in ice unconditionally calls several PTP functions which are only built when CONFIG_PTP_1588_CLOCK is set. This throws a good bunch of link errors:

ERROR: modpost: "ice_cgu_get_pin_name" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_get_cgu_state" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
OR: modpost: "ice_is_cgu_present" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_get_cgu_rclk_pin_info" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_cgu_get_pin_type" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_cgu_get_pin_freq_supp" [drivers/net/ethernet/intel/ice/ice.ko] undefined!

ice_dpll_{,de}init() can be only called at runtime when the corresponding feature flags are set, which is not the case when PTP support is not compiled. However, the linker has no clue about this. Compile DPLL code only when CONFIG_PTP_1588_CLOCK is enabled and guard the mentioned init/deinit function calls, so that ice_dpll.o is only referred when it gets compiled.

Note that ideally ice_is_feature_supported() needs to check for compile-time flags first to be able to handle this without any additional call guards, and we may want to do that in the future.

Fixes d7999f5ea64b ("ice: implement dpll interface to control cgu")
---
 drivers/net/ethernet/intel/ice/Makefile   | 5 ++---
 drivers/net/ethernet/intel/ice/ice_main.c | 8 +++++---
 2 files changed, 7 insertions(+), 6 deletions(-)
drivers/net/ethernet/intel/ice/Makefile +2 -3
index 00806ddf5bf0..16f96d5210d8 100644
@@ -34,8 +34,7 @@ ice-y := ice_main.o	\
 	 ice_lag.o	\
 	 ice_ethtool.o  \
 	 ice_repr.o	\
-	 ice_tc_lib.o	\
-	 ice_dpll.o
+	 ice_tc_lib.o
 ice-$(CONFIG_PCI_IOV) +=	\
 	ice_sriov.o		\
 	ice_virtchnl.o		\
@@ -44,7 +43,7 @@ ice-$(CONFIG_PCI_IOV) +=	\
 	ice_vf_mbx.o		\
 	ice_vf_vsi_vlan_ops.o	\
 	ice_vf_lib.o
-ice-$(CONFIG_PTP_1588_CLOCK) += ice_ptp.o ice_ptp_hw.o
+ice-$(CONFIG_PTP_1588_CLOCK) += ice_dpll.o ice_ptp.o ice_ptp_hw.o
 ice-$(CONFIG_DCB) += ice_dcb.o ice_dcb_nl.o ice_dcb_lib.o
 ice-$(CONFIG_RFS_ACCEL) += ice_arfs.o
 ice-$(CONFIG_XDP_SOCKETS) += ice_xsk.o
drivers/net/ethernet/intel/ice/ice_main.c +5 -3
index e22f41fea8db..9b48918dcdb7 100644
@@ -4665,8 +4665,9 @@ static void ice_init_features(struct ice_pf *pf)
 	if (ice_is_feature_supported(pf, ICE_F_GNSS))
 		ice_gnss_init(pf);
 
-	if (ice_is_feature_supported(pf, ICE_F_CGU) ||
-	    ice_is_feature_supported(pf, ICE_F_PHY_RCLK))
+	if (IS_ENABLED(CONFIG_PTP_1588_CLOCK) &&
+	    (ice_is_feature_supported(pf, ICE_F_CGU) ||
+	     ice_is_feature_supported(pf, ICE_F_PHY_RCLK)))
 		ice_dpll_init(pf);
 
 	/* Note: Flow director init failure is non-fatal to load */
@@ -4695,7 +4696,8 @@ static void ice_deinit_features(struct ice_pf *pf)
 		ice_gnss_exit(pf);
 	if (test_bit(ICE_FLAG_PTP_SUPPORTED, pf->flags))
 		ice_ptp_release(pf);
-	if (test_bit(ICE_FLAG_DPLL, pf->flags))
+	if (IS_ENABLED(CONFIG_PTP_1588_CLOCK) &&
+	    test_bit(ICE_FLAG_DPLL, pf->flags))
 		ice_dpll_deinit(pf);
 }
 
Signature · 1 line
2.41.0
#4 lore raw

Re: [Intel-wired-lan] [PATCH net-next 2/3] ice: fix undefined references from DPLL code when !CONFIG_PTP_1588_CLOCK

Quoted 64 lines · Alexander Lobakin

DPLL code in ice unconditionally calls several PTP functions which are only built when CONFIG_PTP_1588_CLOCK is set. This throws a good bunch of link errors:

ERROR: modpost: "ice_cgu_get_pin_name" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_get_cgu_state" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
OR: modpost: "ice_is_cgu_present" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_get_cgu_rclk_pin_info" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_cgu_get_pin_type" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_cgu_get_pin_freq_supp" [drivers/net/ethernet/intel/ice/ice.ko] undefined!

ice_dpll_{,de}init() can be only called at runtime when the corresponding feature flags are set, which is not the case when PTP support is not compiled. However, the linker has no clue about this. Compile DPLL code only when CONFIG_PTP_1588_CLOCK is enabled and guard the mentioned init/deinit function calls, so that ice_dpll.o is only referred when it gets compiled>
Note that ideally ice_is_feature_supported() needs to check for compile-time flags first to be able to handle this without any additional call guards, and we may want to do that in the future.

Fixes d7999f5ea64b ("ice: implement dpll interface to control cgu")
---
 drivers/net/ethernet/intel/ice/Makefile   | 5 ++---
 drivers/net/ethernet/intel/ice/ice_main.c | 8 +++++---
 2 files changed, 7 insertions(+), 6 deletions(-)
drivers/net/ethernet/intel/ice/Makefile +2 -3
index 00806ddf5bf0..16f96d5210d8 100644
@@ -34,8 +34,7 @@ ice-y := ice_main.o	\
 	 ice_lag.o	\
 	 ice_ethtool.o  \
 	 ice_repr.o	\
-	 ice_tc_lib.o	\
-	 ice_dpll.o
+	 ice_tc_lib.o
 ice-$(CONFIG_PCI_IOV) +=	\
 	ice_sriov.o		\
 	ice_virtchnl.o		\
@@ -44,7 +43,7 @@ ice-$(CONFIG_PCI_IOV) +=	\
 	ice_vf_mbx.o		\
 	ice_vf_vsi_vlan_ops.o	\
 	ice_vf_lib.o
-ice-$(CONFIG_PTP_1588_CLOCK) += ice_ptp.o ice_ptp_hw.o
+ice-$(CONFIG_PTP_1588_CLOCK) += ice_dpll.o ice_ptp.o ice_ptp_hw.o
 ice-$(CONFIG_DCB) += ice_dcb.o ice_dcb_nl.o ice_dcb_lib.o
 ice-$(CONFIG_RFS_ACCEL) += ice_arfs.o
 ice-$(CONFIG_XDP_SOCKETS) += ice_xsk.o
drivers/net/ethernet/intel/ice/ice_main.c +0 -0
index e22f41fea8db..9b48918dcdb7 100644

drivers/net/ethernet/intel/ice/ice_main.c static void ice_init_features(struct ice_pf *pf) · line 4671

Quoted 9 lines
drivers/net/ethernet/intel/ice/ice_main.c +3 -2
@@ -4665,8 +4665,9 @@ static void ice_init_features(struct ice_pf *pf)
 	if (ice_is_feature_supported(pf, ICE_F_GNSS))
 		ice_gnss_init(pf);
 
-	if (ice_is_feature_supported(pf, ICE_F_CGU) ||
-	    ice_is_feature_supported(pf, ICE_F_PHY_RCLK))
+	if (IS_ENABLED(CONFIG_PTP_1588_CLOCK) &&
+	    (ice_is_feature_supported(pf, ICE_F_CGU) ||
+	     ice_is_feature_supported(pf, ICE_F_PHY_RCLK)))
 		ice_dpll_init(pf);

We can stub ice_dpll_init and dpll_deinit in the ice_dpll.h header so that we don't have to check IS_ENABLED here.

I posted that fix at
https://lore.kernel.org/intel-wired-lan/[email protected]/
though I guess I sent it to intel-wired-lan first instead of sending directly to netdev.

I would prefer the resolutions in my series, as I think they're ultimately cleaner.

Of course: priority is getting this fixed so I won't begrudge pulling this now.

Thanks,
Jake

drivers/net/ethernet/intel/ice/ice_main.c static void ice_deinit_features(struct ice_pf *pf) · line 4703

Quoted 12 lines
drivers/net/ethernet/intel/ice/ice_main.c +2 -1
 	/* Note: Flow director init failure is non-fatal to load */
@@ -4695,7 +4696,8 @@ static void ice_deinit_features(struct ice_pf *pf)
 		ice_gnss_exit(pf);
 	if (test_bit(ICE_FLAG_PTP_SUPPORTED, pf->flags))
 		ice_ptp_release(pf);
-	if (test_bit(ICE_FLAG_DPLL, pf->flags))
+	if (IS_ENABLED(CONFIG_PTP_1588_CLOCK) &&
+	    test_bit(ICE_FLAG_DPLL, pf->flags))
 		ice_dpll_deinit(pf);
 }
 

_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

#5 lore raw

Re: [PATCH net-next 2/3] ice: fix undefined references from DPLL code when !CONFIG_PTP_1588_CLOCK

In reply to Alexander Lobakin
Quoted 24 lines · Alexander Lobakin

DPLL code in ice unconditionally calls several PTP functions which are only built when CONFIG_PTP_1588_CLOCK is set. This throws a good bunch of link errors:

ERROR: modpost: "ice_cgu_get_pin_name" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_get_cgu_state" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
OR: modpost: "ice_is_cgu_present" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_get_cgu_rclk_pin_info" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_cgu_get_pin_type" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_cgu_get_pin_freq_supp" [drivers/net/ethernet/intel/ice/ice.ko] undefined!

ice_dpll_{,de}init() can be only called at runtime when the corresponding feature flags are set, which is not the case when PTP support is not compiled. However, the linker has no clue about this. Compile DPLL code only when CONFIG_PTP_1588_CLOCK is enabled and guard the mentioned init/deinit function calls, so that ice_dpll.o is only referred when it gets compiled.

Quoted 4 lines

Note that ideally ice_is_feature_supported() needs to check for compile-time flags first to be able to handle this without any additional call guards, and we may want to do that in the future.

There is another fix under review [1], which came from Jacob. It converts the code a bit more, and will create conflicts. I would suggest to drop this patch until another series is fully reviewed.

[1] https://lore.kernel.org/netdev/[email protected]/

#6 lore raw

Re: [PATCH net-next 2/3] ice: fix undefined references from DPLL code when !CONFIG_PTP_1588_CLOCK

From: Vadim Fedorenko <[email protected]>
Date: Fri, 22 Sep 2023 00:58:04 +0100

Quoted 30 lines · Alexander Lobakin
Quoted 24 lines

DPLL code in ice unconditionally calls several PTP functions which are only built when CONFIG_PTP_1588_CLOCK is set. This throws a good bunch of link errors:

ERROR: modpost: "ice_cgu_get_pin_name" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_get_cgu_state" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
OR: modpost: "ice_is_cgu_present" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_get_cgu_rclk_pin_info" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_cgu_get_pin_type" [drivers/net/ethernet/intel/ice/ice.ko] undefined!
ERROR: modpost: "ice_cgu_get_pin_freq_supp" [drivers/net/ethernet/intel/ice/ice.ko] undefined!

ice_dpll_{,de}init() can be only called at runtime when the corresponding feature flags are set, which is not the case when PTP support is not compiled. However, the linker has no clue about this. Compile DPLL code only when CONFIG_PTP_1588_CLOCK is enabled and guard the mentioned init/deinit function calls, so that ice_dpll.o is only referred when it gets compiled.

Quoted 4 lines

Note that ideally ice_is_feature_supported() needs to check for compile-time flags first to be able to handle this without any additional call guards, and we may want to do that in the future.

Quoted 4 lines

There is another fix under review [1], which came from Jacob. It converts the code a bit more, and will create conflicts. I would suggest to drop this patch until another series is fully reviewed.

I know, I already explained earlier in this topic that I sent the IDPF fix separately and that series can be dropped.

Quoted 3 lines

[1]
https://lore.kernel.org/netdev/[email protected]/

Thanks,
Olek

#7 lore raw

PATCH 3/3 idpf: fix undefined reference to tcp_gro_complete() when !CONFIG_INET

In reply to Alexander Lobakin

When CONFIG_INET is not set, tcp_gro_complete is not compiled, although the drivers using it may still be compiled (spotted by Randy):

aarch64-linux-ld: drivers/net/ethernet/intel/idpf/idpf_txrx.o:
in function `idpf_rx_rsc.isra.0':
drivers/net/ethernet/intel/idpf/idpf_txrx.c:2909:(.text+0x40cc):
undefined reference to `tcp_gro_complete'

The drivers need to guard the calls to it manually.
Return early from the RSC completion function if !CONFIG_INET, it won't work properly either way. This effectively makes it be compiled-out almost entirely on such builds.

Fixes 3a8845af66ed ("idpf: add RX splitq napi poll support")
---
 drivers/net/ethernet/intel/idpf/idpf_txrx.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/intel/idpf/idpf_txrx.c +3 -0
index 6fa79898c42c..aa45afeb6496 100644
@@ -2876,6 +2876,9 @@ static int idpf_rx_rsc(struct idpf_queue *rxq, struct sk_buff *skb,
 	if (unlikely(!(ipv4 ^ ipv6)))
 		return -EINVAL;
 
+	if (!IS_ENABLED(CONFIG_INET))
+		return 0;
+
 	rsc_segments = DIV_ROUND_UP(skb->data_len, rsc_seg_len);
 	if (unlikely(rsc_segments == 1))
 		return 0;
Signature · 1 line
2.41.0
Tested-by on v1 3/3
#8 lore raw

Re: [PATCH net-next 3/3] idpf: fix undefined reference to tcp_gro_complete() when !CONFIG_INET

Quoted 13 lines · Alexander Lobakin

When CONFIG_INET is not set, tcp_gro_complete is not compiled, although the drivers using it may still be compiled (spotted by Randy):

aarch64-linux-ld: drivers/net/ethernet/intel/idpf/idpf_txrx.o:
in function `idpf_rx_rsc.isra.0':
drivers/net/ethernet/intel/idpf/idpf_txrx.c:2909:(.text+0x40cc):
undefined reference to `tcp_gro_complete'

The drivers need to guard the calls to it manually.
Return early from the RSC completion function if !CONFIG_INET, it won't work properly either way. This effectively makes it be compiled-out almost entirely on such builds.

Quoted 4 lines
Fixes 3a8845af66ed ("idpf: add RX splitq napi poll support")

That builds for me. Thanks.

I hope that these patches can be merged into the v6.6 instead of v6.7 kernel at some point (i.e., [PATCH net] instead of net-next).

Quoted 18 lines
---
 drivers/net/ethernet/intel/idpf/idpf_txrx.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/intel/idpf/idpf_txrx.c +3 -0
index 6fa79898c42c..aa45afeb6496 100644
@@ -2876,6 +2876,9 @@ static int idpf_rx_rsc(struct idpf_queue *rxq, struct sk_buff *skb,
 	if (unlikely(!(ipv4 ^ ipv6)))
 		return -EINVAL;
 
+	if (!IS_ENABLED(CONFIG_INET))
+		return 0;
+
 	rsc_segments = DIV_ROUND_UP(skb->data_len, rsc_seg_len);
 	if (unlikely(rsc_segments == 1))
 		return 0;
Signature · 1 line
~Randy
#9 lore raw

Re: [Intel-wired-lan] [PATCH net-next 3/3] idpf: fix undefined reference to tcp_gro_complete() when !CONFIG_INET

Quoted 21 lines · Randy Dunlap
Quoted 13 lines · Alexander Lobakin

When CONFIG_INET is not set, tcp_gro_complete is not compiled, although the drivers using it may still be compiled (spotted by Randy):

aarch64-linux-ld: drivers/net/ethernet/intel/idpf/idpf_txrx.o:
in function `idpf_rx_rsc.isra.0':
drivers/net/ethernet/intel/idpf/idpf_txrx.c:2909:(.text+0x40cc):
undefined reference to `tcp_gro_complete'

The drivers need to guard the calls to it manually.
Return early from the RSC completion function if !CONFIG_INET, it won't work properly either way. This effectively makes it be compiled-out almost entirely on such builds.

Quoted 4 lines
Fixes 3a8845af66ed ("idpf: add RX splitq napi poll support")
Quoted 7 lines

That builds for me. Thanks.

I hope that these patches can be merged into the v6.6 instead of v6.7 kernel at some point (i.e., [PATCH net] instead of net-next).

Did any of the offending code make it into 6.6? I thought all of this was from recent merges after 6.6 closed.

Thanks,
Jake

Quoted 20 lines
Quoted 19 lines
---
 drivers/net/ethernet/intel/idpf/idpf_txrx.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/intel/idpf/idpf_txrx.c +3 -0
index 6fa79898c42c..aa45afeb6496 100644
@@ -2876,6 +2876,9 @@ static int idpf_rx_rsc(struct idpf_queue *rxq, struct sk_buff *skb,
 	if (unlikely(!(ipv4 ^ ipv6)))
 		return -EINVAL;
 
+	if (!IS_ENABLED(CONFIG_INET))
+		return 0;
+
 	rsc_segments = DIV_ROUND_UP(skb->data_len, rsc_seg_len);
 	if (unlikely(rsc_segments == 1))
 		return 0;
#10 lore raw

Re: [Intel-wired-lan] [PATCH net-next 3/3] idpf: fix undefined reference to tcp_gro_complete() when !CONFIG_INET

Quoted 32 lines · Jacob Keller
Quoted 21 lines · Randy Dunlap
Quoted 13 lines · Alexander Lobakin

When CONFIG_INET is not set, tcp_gro_complete is not compiled, although the drivers using it may still be compiled (spotted by Randy):

aarch64-linux-ld: drivers/net/ethernet/intel/idpf/idpf_txrx.o:
in function `idpf_rx_rsc.isra.0':
drivers/net/ethernet/intel/idpf/idpf_txrx.c:2909:(.text+0x40cc):
undefined reference to `tcp_gro_complete'

The drivers need to guard the calls to it manually.
Return early from the RSC completion function if !CONFIG_INET, it won't work properly either way. This effectively makes it be compiled-out almost entirely on such builds.

Quoted 4 lines
Fixes 3a8845af66ed ("idpf: add RX splitq napi poll support")
Quoted 7 lines

That builds for me. Thanks.

I hope that these patches can be merged into the v6.6 instead of v6.7 kernel at some point (i.e., [PATCH net] instead of net-next).

Quoted 5 lines

Did any of the offending code make it into 6.6? I thought all of this was from recent merges after 6.6 closed.

Thanks,
Jake

Oh, I think that you are correct. Sorry about my comment. Thanks.

Quoted 21 lines
Quoted 21 lines
Quoted 20 lines

---
 drivers/net/ethernet/intel/idpf/idpf_txrx.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/intel/idpf/idpf_txrx.c +3 -0
index 6fa79898c42c..aa45afeb6496 100644
@@ -2876,6 +2876,9 @@ static int idpf_rx_rsc(struct idpf_queue *rxq, struct sk_buff *skb,
 	if (unlikely(!(ipv4 ^ ipv6)))
 		return -EINVAL;
 
+	if (!IS_ENABLED(CONFIG_INET))
+		return 0;
+
 	rsc_segments = DIV_ROUND_UP(skb->data_len, rsc_seg_len);
 	if (unlikely(rsc_segments == 1))
 		return 0;
Signature · 1 line
~Randy
#11 lore raw

Re: [Intel-wired-lan] [PATCH net-next 3/3] idpf: fix undefined reference to tcp_gro_complete() when !CONFIG_INET

Hi,

Quoted 35 lines · Randy Dunlap
Quoted 32 lines · Jacob Keller
Quoted 28 lines · Randy Dunlap
Quoted 13 lines · Alexander Lobakin

When CONFIG_INET is not set, tcp_gro_complete is not compiled, although the drivers using it may still be compiled (spotted by Randy):

aarch64-linux-ld: drivers/net/ethernet/intel/idpf/idpf_txrx.o:
in function `idpf_rx_rsc.isra.0':
drivers/net/ethernet/intel/idpf/idpf_txrx.c:2909:(.text+0x40cc):
undefined reference to `tcp_gro_complete'

The drivers need to guard the calls to it manually.
Return early from the RSC completion function if !CONFIG_INET, it won't work properly either way. This effectively makes it be compiled-out almost entirely on such builds.

Quoted 4 lines
Fixes 3a8845af66ed ("idpf: add RX splitq napi poll support")

That builds for me. Thanks.

I hope that these patches can be merged into the v6.6 instead of v6.7 kernel at some point (i.e., [PATCH net] instead of net-next).

Quoted 9 lines
Quoted 5 lines

Did any of the offending code make it into 6.6? I thought all of this was from recent merges after 6.6 closed.

Thanks,
Jake

Oh, I think that you are correct. Sorry about my comment. Thanks.

Even if this is just > v6.6 kernels (i.e., linux-next), it would be very good to get a fix merged for these build errors. I keep getting build errors in linux-next....

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines

---
 drivers/net/ethernet/intel/idpf/idpf_txrx.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/intel/idpf/idpf_txrx.c +0 -0
index 6fa79898c42c..aa45afeb6496 100644
@@ -2876,6 +2876,9 @@ static int idpf_rx_rsc(struct idpf_queue *rxq, struct sk_buff *skb,
 	if (unlikely(!(ipv4 ^ ipv6)))
 		return -EINVAL;
 
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines

drivers/net/ethernet/intel/idpf/idpf_txrx.c static int idpf_rx_rsc(struct idpf_queue *rxq, struct sk_buff *skb, · line 2884

Quoted 6 lines
drivers/net/ethernet/intel/idpf/idpf_txrx.c +3 -0
+	if (!IS_ENABLED(CONFIG_INET))
+		return 0;
+
 	rsc_segments = DIV_ROUND_UP(skb->data_len, rsc_seg_len);
 	if (unlikely(rsc_segments == 1))
 		return 0;

Thanks.

Signature · 1 line
~Randy
#12 lore raw

Re: [Intel-wired-lan] [PATCH net-next 3/3] idpf: fix undefined reference to tcp_gro_complete() when !CONFIG_INET

From: Randy Dunlap <[email protected]>
Date: Thu, 12 Oct 2023 08:47:12 -0700

Quoted 44 lines

Hi,

Quoted 41 lines · Randy Dunlap
Quoted 37 lines · Jacob Keller
Quoted 21 lines · Randy Dunlap
Quoted 13 lines · Alexander Lobakin

When CONFIG_INET is not set, tcp_gro_complete is not compiled, although the drivers using it may still be compiled (spotted by Randy):

aarch64-linux-ld: drivers/net/ethernet/intel/idpf/idpf_txrx.o:
in function `idpf_rx_rsc.isra.0':
drivers/net/ethernet/intel/idpf/idpf_txrx.c:2909:(.text+0x40cc):
undefined reference to `tcp_gro_complete'

The drivers need to guard the calls to it manually.
Return early from the RSC completion function if !CONFIG_INET, it won't work properly either way. This effectively makes it be compiled-out almost entirely on such builds.

Quoted 4 lines
Fixes 3a8845af66ed ("idpf: add RX splitq napi poll support")
Quoted 7 lines

That builds for me. Thanks.

I hope that these patches can be merged into the v6.6 instead of v6.7 kernel at some point (i.e., [PATCH net] instead of net-next).

Did any of the offending code make it into 6.6? I thought all of this was from recent merges after 6.6 closed.

Thanks,
Jake

Quoted 7 lines
Quoted 3 lines

Oh, I think that you are correct. Sorry about my comment. Thanks.

Even if this is just > v6.6 kernels (i.e., linux-next), it would be very good to get a fix merged for these build errors. I keep getting build errors in linux-next....

I don't know what happened, Tony dropped this commit from his tree due to that we agreed yours (which optimizes out IPv6 code if it's not enabled) is better, then Tony asked the netdev maintainers whether it can be taken directly, but no updates since then.
I also asked Tony why he took my patch into his tree while I wrote under the commit message that it should've been taken directly, also no replies :D And all that for the bug that breaks linux-next build, meh.

Quoted 24 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines


---
 drivers/net/ethernet/intel/idpf/idpf_txrx.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/intel/idpf/idpf_txrx.c +0 -0
index 6fa79898c42c..aa45afeb6496 100644
@@ -2876,6 +2876,9 @@ static int idpf_rx_rsc(struct idpf_queue *rxq, struct sk_buff *skb,
 	if (unlikely(!(ipv4 ^ ipv6)))
 		return -EINVAL;
 
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines

drivers/net/ethernet/intel/idpf/idpf_txrx.c static int idpf_rx_rsc(struct idpf_queue *rxq, struct sk_buff *skb, · line 2884

Quoted 6 lines
drivers/net/ethernet/intel/idpf/idpf_txrx.c +3 -0
+	if (!IS_ENABLED(CONFIG_INET))
+		return 0;
+
 	rsc_segments = DIV_ROUND_UP(skb->data_len, rsc_seg_len);
 	if (unlikely(rsc_segments == 1))
 		return 0;
Quoted 1 line

Thanks.

Thanks,
Olek

#13 lore raw

RE: [Intel-wired-lan] [PATCH net-next 3/3] idpf: fix undefined reference to tcp_gro_complete() when !CONFIG_INET

In reply to Randy Dunlap
Quoted 62 lines

-----Original Message-----
From: Randy Dunlap <[email protected]>
Sent: Thursday, October 12, 2023 8:47 AM
To: Keller, Jacob E <[email protected]>; Lobakin, Aleksander <[email protected]>; David S. Miller <[email protected]>; Eric Dumazet <[email protected]>; Jakub Kicinski <[email protected]>; Paolo Abeni <[email protected]>
Cc: Michalik, Michal <[email protected]>; [email protected]; Richard Cochran <[email protected]>; [email protected]; Kubalewski, Arkadiusz <[email protected]>; intel-wired- [email protected]; Nguyen, Anthony L <[email protected]>; Olech, Milena <[email protected]>
Subject: Re: [Intel-wired-lan] [PATCH net-next 3/3] idpf: fix undefined reference to tcp_gro_complete() when !CONFIG_INET

Hi,

Quoted 17 lines · Randy Dunlap
Quoted 14 lines · Jacob Keller
Quoted 11 lines · Randy Dunlap
Quoted 8 lines · Alexander Lobakin

When CONFIG_INET is not set, tcp_gro_complete is not compiled, although the drivers using it may still be compiled (spotted by Randy):

aarch64-linux-ld: drivers/net/ethernet/intel/idpf/idpf_txrx.o:
in function `idpf_rx_rsc.isra.0':
drivers/net/ethernet/intel/idpf/idpf_txrx.c:2909:(.text+0x40cc):
undefined reference to `tcp_gro_complete'

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

The drivers need to guard the calls to it manually.
Return early from the RSC completion function if !CONFIG_INET, it won't work properly either way. This effectively makes it be compiled-out almost entirely on such builds.

Fixes 3a8845af66ed ("idpf: add RX splitq napi poll support")

[email protected]

Quoted 16 lines
Quoted 15 lines
Quoted 9 lines
Quoted 1 line

That builds for me. Thanks.

I hope that these patches can be merged into the v6.6 instead of v6.7 kernel at some point (i.e., [PATCH net] instead of net-next).

Did any of the offending code make it into 6.6? I thought all of this was from recent merges after 6.6 closed.

Thanks,
Jake

Quoted 8 lines
Quoted 3 lines

Oh, I think that you are correct. Sorry about my comment. Thanks.

Even if this is just > v6.6 kernels (i.e., linux-next), it would be very good to get a fix merged for these build errors. I keep getting build errors in linux-next....

A standalone version for the idpf driver fix was posted at [1], and another alternative fix was posted at [2]

Fixes for the ice driver have already merged.

[1]: https://lore.kernel.org/netdev/[email protected]/
[2]: https://lore.kernel.org/netdev/[email protected]/

The fix from Arnd got approval from Olek, but it seems like it stalled out after asking about stubs. I'm fine with either approach but would also like to see a fix merge soon.

Thanks,
Jake

maintainer
#14 lore raw

Re: [Intel-wired-lan] [PATCH net-next 3/3] idpf: fix undefined reference to tcp_gro_complete() when !CONFIG_INET

Quoted 9 lines · Jacob E
Quoted 3 lines

Even if this is just > v6.6 kernels (i.e., linux-next), it would be very good to get a fix merged for these build errors. I keep getting build errors in linux-next....

A standalone version for the idpf driver fix was posted at [1], and another alternative fix was posted at [2]

Fixes for the ice driver have already merged.

Quoted 8 lines

[1]:
https://lore.kernel.org/netdev/[email protected]/
[2]:
https://lore.kernel.org/netdev/[email protected]/

The fix from Arnd got approval from Olek, but it seems like it stalled out after asking about stubs. I'm fine with either approach but would also like to see a fix merge soon.

The suggestion of making NET == INET is quite tempting but requires extra consideration. Since nobody seems to have the cycles, let's go with the stubs?

#15 lore raw

Re: [Intel-wired-lan] [PATCH net-next 3/3] idpf: fix undefined reference to tcp_gro_complete() when !CONFIG_INET

Quoted 15 lines · Jakub Kicinski
Quoted 14 lines · Jacob E
Quoted 3 lines

Even if this is just > v6.6 kernels (i.e., linux-next), it would be very good to get a fix merged for these build errors. I keep getting build errors in linux-next....

A standalone version for the idpf driver fix was posted at [1], and another alternative fix was posted at [2]

Fixes for the ice driver have already merged.

[1]:
https://lore.kernel.org/netdev/[email protected]/
[2]:
https://lore.kernel.org/netdev/[email protected]/

Quoted 8 lines
Quoted 3 lines

The fix from Arnd got approval from Olek, but it seems like it stalled out after asking about stubs. I'm fine with either approach but would also like to see a fix merge soon.

The suggestion of making NET == INET is quite tempting but requires extra consideration. Since nobody seems to have the cycles, let's go with the stubs?

Yea. I think NET == INET would cause a bit more challenge in the immediate term. Its possibly worth exploring but it would be nice to get the build bots happy first.

I can take the time this morning to work on a version that implements the stub, and post it.

Thanks,
Jake

Reviewed-by on v1 3/3
#16 lore raw

Re: [Intel-wired-lan] [PATCH net-next 3/3] idpf: fix undefined reference to tcp_gro_complete() when !CONFIG_INET

In reply to Alexander Lobakin
Quoted 13 lines · Alexander Lobakin

When CONFIG_INET is not set, tcp_gro_complete is not compiled, although the drivers using it may still be compiled (spotted by Randy):

aarch64-linux-ld: drivers/net/ethernet/intel/idpf/idpf_txrx.o:
in function `idpf_rx_rsc.isra.0':
drivers/net/ethernet/intel/idpf/idpf_txrx.c:2909:(.text+0x40cc):
undefined reference to `tcp_gro_complete'

The drivers need to guard the calls to it manually.
Return early from the RSC completion function if !CONFIG_INET, it won't work properly either way. This effectively makes it be compiled-out almost entirely on such builds.

Quoted 5 lines
Fixes 3a8845af66ed ("idpf: add RX splitq napi poll support")

---

Quoted 8 lines
 drivers/net/ethernet/intel/idpf/idpf_txrx.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/intel/idpf/idpf_txrx.c +0 -0
index 6fa79898c42c..aa45afeb6496 100644

drivers/net/ethernet/intel/idpf/idpf_txrx.c static int idpf_rx_rsc(struct idpf_queue *rxq, struct sk_buff *skb, · line 2884

Quoted 9 lines
drivers/net/ethernet/intel/idpf/idpf_txrx.c +3 -0
@@ -2876,6 +2876,9 @@ static int idpf_rx_rsc(struct idpf_queue *rxq, struct sk_buff *skb,
 	if (unlikely(!(ipv4 ^ ipv6)))
 		return -EINVAL;
 
+	if (!IS_ENABLED(CONFIG_INET))
+		return 0;
+
 	rsc_segments = DIV_ROUND_UP(skb->data_len, rsc_seg_len);
 	if (unlikely(rsc_segments == 1))
 		return 0;

_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

#17 lore raw
In reply to Alexander Lobakin
Quoted 19 lines · Alexander Lobakin

Recently, several link-time issues were spotted in the ethernet/intel/ folder thanks to Kbuild bots and linux-next.
The fixes are pretty straightforward, just some stubs and CONFIG_* guards, so resolve all of them in one shot and unbreak randconfig builds.

Alexander Lobakin (3):
ice: fix undefined references to ice_is_*() when

    !CONFIG_PTP_1588_CLOCK
  ice: fix undefined references from DPLL code when
    !CONFIG_PTP_1588_CLOCK

idpf: fix undefined reference to tcp_gro_complete() when !CONFIG_INET

 drivers/net/ethernet/intel/ice/Makefile     |  5 ++---
 drivers/net/ethernet/intel/ice/ice_main.c   |  8 ++++---
 drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 25 ++++++++++++++++++++-
 drivers/net/ethernet/intel/idpf/idpf_txrx.c |  3 +++
 4 files changed, 34 insertions(+), 7 deletions(-)
Quoted 3 lines

---
Directly to netdev/net-next, build bots are not happy and the next linux-next is approaching :s

I had alternative fixes for ice at:

https://lore.kernel.org/intel-wired-lan/[email protected]/

that are slightly more invasive but bring things in line with changes I had proposed earlier before the DPLL code got merged. See:

https://lore.kernel.org/intel-wired-lan/[email protected]/

I'd obviously prefer my version of the ice changes, but I understand if we prefer a simple more 'obvious' fix be merged now. I can spin my changes again to cleanup/refactor in a follow up if necessary.

Thanks,
Jake
_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

#18 lore raw

From: Jacob Keller <[email protected]>
Date: Wed, 20 Sep 2023 16:31:27 -0700

Quoted 30 lines · Alexander Lobakin
Quoted 19 lines

Recently, several link-time issues were spotted in the ethernet/intel/ folder thanks to Kbuild bots and linux-next.
The fixes are pretty straightforward, just some stubs and CONFIG_* guards, so resolve all of them in one shot and unbreak randconfig builds.

Alexander Lobakin (3):
ice: fix undefined references to ice_is_*() when

    !CONFIG_PTP_1588_CLOCK
  ice: fix undefined references from DPLL code when
    !CONFIG_PTP_1588_CLOCK

idpf: fix undefined reference to tcp_gro_complete() when !CONFIG_INET

 drivers/net/ethernet/intel/ice/Makefile     |  5 ++---
 drivers/net/ethernet/intel/ice/ice_main.c   |  8 ++++---
 drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 25 ++++++++++++++++++++-
 drivers/net/ethernet/intel/idpf/idpf_txrx.c |  3 +++
 4 files changed, 34 insertions(+), 7 deletions(-)
Quoted 3 lines

---
Directly to netdev/net-next, build bots are not happy and the next linux-next is approaching :s

I had alternative fixes for ice at:

https://lore.kernel.org/intel-wired-lan/[email protected]/

Quoted 8 lines

that are slightly more invasive but bring things in line with changes I had proposed earlier before the DPLL code got merged. See:

https://lore.kernel.org/intel-wired-lan/[email protected]/

I'd obviously prefer my version of the ice changes, but I understand if we prefer a simple more 'obvious' fix be merged now. I can spin my changes again to cleanup/refactor in a follow up if necessary.

Go forth with yours. You can take some of my pieces if you like them more if you want. I just spotted both idpf and ice reports at the same time and was ignorant enough to not look at our MLs (internal and IWL) first.
I'm respinning IDPF solely.

Quoted 3 lines

Thanks,
Jake

Thanks,
Olek
_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

#19 lore raw
In reply to Jacob Keller

From: Jacob Keller <[email protected]>
Date: Wed, 20 Sep 2023 16:31:27 -0700

Quoted 30 lines · Alexander Lobakin
Quoted 19 lines

Recently, several link-time issues were spotted in the ethernet/intel/ folder thanks to Kbuild bots and linux-next.
The fixes are pretty straightforward, just some stubs and CONFIG_* guards, so resolve all of them in one shot and unbreak randconfig builds.

Alexander Lobakin (3):
ice: fix undefined references to ice_is_*() when

    !CONFIG_PTP_1588_CLOCK
  ice: fix undefined references from DPLL code when
    !CONFIG_PTP_1588_CLOCK

idpf: fix undefined reference to tcp_gro_complete() when !CONFIG_INET

 drivers/net/ethernet/intel/ice/Makefile     |  5 ++---
 drivers/net/ethernet/intel/ice/ice_main.c   |  8 ++++---
 drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 25 ++++++++++++++++++++-
 drivers/net/ethernet/intel/idpf/idpf_txrx.c |  3 +++
 4 files changed, 34 insertions(+), 7 deletions(-)
Quoted 3 lines

---
Directly to netdev/net-next, build bots are not happy and the next linux-next is approaching :s

I had alternative fixes for ice at:

https://lore.kernel.org/intel-wired-lan/[email protected]/

Quoted 8 lines

that are slightly more invasive but bring things in line with changes I had proposed earlier before the DPLL code got merged. See:

https://lore.kernel.org/intel-wired-lan/[email protected]/

I'd obviously prefer my version of the ice changes, but I understand if we prefer a simple more 'obvious' fix be merged now. I can spin my changes again to cleanup/refactor in a follow up if necessary.

Go forth with yours. You can take some of my pieces if you like them more if you want. I just spotted both idpf and ice reports at the same time and was ignorant enough to not look at our MLs (internal and IWL) first.
I'm respinning IDPF solely.

Quoted 3 lines

Thanks,
Jake

Thanks,
Olek
_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

maintainer Reviewed-by on the v1 series
#20 lore raw
In reply to Alexander Lobakin
Quoted 19 lines · Alexander Lobakin

Recently, several link-time issues were spotted in the ethernet/intel/ folder thanks to Kbuild bots and linux-next.
The fixes are pretty straightforward, just some stubs and CONFIG_* guards, so resolve all of them in one shot and unbreak randconfig builds.

Alexander Lobakin (3):
ice: fix undefined references to ice_is_*() when

     !CONFIG_PTP_1588_CLOCK
   ice: fix undefined references from DPLL code when
     !CONFIG_PTP_1588_CLOCK

idpf: fix undefined reference to tcp_gro_complete() when !CONFIG_INET

  drivers/net/ethernet/intel/ice/Makefile     |  5 ++---
  drivers/net/ethernet/intel/ice/ice_main.c   |  8 ++++---
  drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 25 ++++++++++++++++++++-
  drivers/net/ethernet/intel/idpf/idpf_txrx.c |  3 +++
  4 files changed, 34 insertions(+), 7 deletions(-)
Quoted 3 lines

---
Directly to netdev/net-next, build bots are not happy and the next linux-next is approaching :s

I like the if (IS_ENABLED(xxx)) approach more than stubs :)
_______________________________________________
Intel-wired-lan mailing list [email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan