ice: fix linking with CONFIG_PTP_1588_CLOCK=n
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | ice: don't compile ice_dpll.c if CONFIG_PTP_1588_CLOCK is disableddrivers/ drivers/ | +6 | 0 replies | |
| 2/4 | ice: move netlist check functions to ice_common.cdrivers/ drivers/ drivers/ +2 more | +69 | 2 replies | |
| 3/4 | ice: make ice_get_pf_c827_idx staticdrivers/ drivers/ | +1 | 1 reply | |
| 4/4 | ice: cleanup ice_find_netlist_nodedrivers/ | +15 | 2 replies |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Pucha Himasekhar Reddy | Paul Menzel |
|---|---|---|
| 1/4 | ||
| 2/4 | ||
| 3/4 | T-b | |
| 4/4 | T-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Intel-wired-lan] [PATCH iwl-next 0/4] ice: fix linking with CONFIG_PTP_1588_CLOCK=n
The recent changes to support DPLL in the ice driver accidentally broke linking the module if CONFIG_PTP_1588_CLOCK is disabled:
00:02:33 ld: vmlinux.o: in function `ice_init_feature_support': 00:02:33 (.text+0x8702b8): undefined reference to `ice_is_phy_rclk_present' 00:02:33 ld: (.text+0x8702cd): undefined reference to `ice_is_cgu_present' 00:02:33 ld: (.text+0x8702d9): undefined reference to `ice_is_clock_mux_present_e810t' 00:02:33 ld: vmlinux.o: in function `ice_dpll_init_info_direct_pins': 00:02:33 ice_dpll.c:(.text+0x894167): undefined reference to `ice_cgu_get_pin_freq_supp' 00:02:33 ld: ice_dpll.c:(.text+0x894197): undefined reference to `ice_cgu_get_pin_name' 00:02:33 ld: ice_dpll.c:(.text+0x8941a8): undefined reference to `ice_cgu_get_pin_type' 00:02:33 ld: vmlinux.o: in function `ice_dpll_update_state': 00:02:33 ice_dpll.c:(.text+0x894494): undefined reference to `ice_get_cgu_state' 00:02:33 ld: vmlinux.o: in function `ice_dpll_init': 00:02:33 (.text+0x8953d5): undefined reference to `ice_get_cgu_rclk_pin_info' 00:02:34 make[2]: *** [scripts/Makefile.vmlinux:36: vmlinux] Error 1 00:02:34 make[1]: *** [/home/jenkins/agent/workspace/ndlinuxc/reference-repos/update-kernel-repos/kernel/Makefile:1165: vmlinux] Error 2 00:02:34 make: *** [Makefile:234: __sub-make] Error 2
This occurs because of functions added to ice_ptp_hw.c which are only compiled when CONFIG_PTP_1588_CLOCK is enabled.
In addition, that series included similar code to logic I published at [1] which got feedback to make some suggested improvements:
This series fixes the compilation issues and aligns ice_find_netlist_node with the version that I posted at [1] and [2]:
[1]: https://lore.kernel.org/intel-wired-lan/[email protected]/
[2]: https://lore.kernel.org/netdev/[email protected]/
Jacob Keller (4):
ice: don't compile ice_dpll.c if CONFIG_PTP_1588_CLOCK is disabled
ice: move netlist check functions to ice_common.c
ice: make ice_get_pf_c827_idx static
ice: cleanup ice_find_netlist_node
drivers/net/ethernet/intel/ice/Makefile | 3 +- drivers/net/ethernet/intel/ice/ice_common.c | 96 +++++++++++++++++---- drivers/net/ethernet/intel/ice/ice_common.h | 6 +- drivers/net/ethernet/intel/ice/ice_dpll.h | 6 +- drivers/net/ethernet/intel/ice/ice_lib.c | 6 +- drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 68 +-------------- drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 4 - 7 files changed, 91 insertions(+), 98 deletions(-)
base-commit: 2fcb79a1962e88ff10552384fb8164fde815ccd3
Signature · 6 lines
2.41.0.1.g9857a21e0017.dirty _______________________________________________ Intel-wired-lan mailing list [email protected] https://lists.osuosl.org/mailman/listinfo/intel-wired-lan