ld.lld: error: undefined symbol: marvell_ts_irq >>> referenced by marvell_ptp.c:297 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:297) >>> vmlinux.o:(marvell_phy_ptp_irq) ld.lld: error: undefined symbol: devm_marvell_tai_probe >>> referenced by marvell_ptp.c:338 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:338) >>> vmlinux.o:(devm_marvell_phy_ptp_probe) ld.lld: error: undefined symbol: marvell_ts_global_config >>> referenced by marvell_ptp.c:345 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:345) >>> vmlinux.o:(devm_marvell_phy_ptp_probe) ld.lld: error: undefined symbol: phy_write_paged >>> referenced by marvell_ptp.c:178 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:178) >>> vmlinux.o:(devm_marvell_phy_ptp_probe) >>> referenced by marvell_ptp.c:178 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:178) >>> vmlinux.o:(marvell_phy_ts_global_write) >>> referenced by marvell_ptp.c:136 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:136) >>> vmlinux.o:(marvell_phy_tai_write) >>> referenced 1 more times ld.lld: error: undefined symbol: devm_marvell_ts_probe >>> referenced by marvell_ptp.c:355 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:355) >>> vmlinux.o:(devm_marvell_phy_ptp_probe) ld.lld: error: undefined symbol: marvell_ts_rxtstamp >>> referenced by marvell_ptp.c:54 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:54) >>> vmlinux.o:(marvell_phy_ptp_rxtstamp) ld.lld: error: undefined symbol: marvell_ts_txtstamp >>> referenced by marvell_ptp.c:63 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:63) >>> vmlinux.o:(marvell_phy_ptp_txtstamp) ld.lld: error: undefined symbol: marvell_ts_hwtstamp_set >>> referenced by marvell_ptp.c:73 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:73) >>> vmlinux.o:(marvell_phy_ptp_hwtstamp) ld.lld: error: undefined symbol: marvell_ts_hwtstamp_get >>> referenced by marvell_ptp.c:81 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:81) >>> vmlinux.o:(marvell_phy_ptp_hwtstamp_get) ld.lld: error: undefined symbol: marvell_ts_info >>> referenced by marvell_ptp.c:89 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:89) >>> vmlinux.o:(marvell_phy_ptp_ts_info) ld.lld: error: undefined symbol: phy_modify_paged >>> referenced by marvell_ptp.c:143 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:143) >>> vmlinux.o:(marvell_phy_tai_modify) >>> referenced by marvell_ptp.c:97 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:97) >>> vmlinux.o:(marvell_phy_tai_hw_enable) >>> referenced by marvell_ptp.c:105 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:105) >>> vmlinux.o:(marvell_phy_tai_hw_disable) >>> referenced 1 more times ld.lld: error: undefined symbol: marvell_ts_aux_work >>> referenced by marvell_ptp.c:154 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:154) >>> vmlinux.o:(marvell_phy_tai_aux_work) ld.lld: error: undefined symbol: phy_select_page >>> referenced by marvell_ptp.c:115 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:115) >>> vmlinux.o:(marvell_phy_tai_clock_read) >>> referenced by marvell_ptp.c:216 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:216) >>> vmlinux.o:(marvell_phy_ts_port_read_ts) ld.lld: error: undefined symbol: __mdiobus_write >>> referenced by phy.h:1445 (../include/linux/phy.h:1445) >>> vmlinux.o:(marvell_phy_tai_clock_read) >>> referenced by phy.h:1445 (../include/linux/phy.h:1445) >>> vmlinux.o:(marvell_phy_tai_clock_read) >>> referenced by phy.h:1445 (../include/linux/phy.h:1445) >>> vmlinux.o:(marvell_phy_ts_port_read_ts) ld.lld: error: undefined symbol: __mdiobus_read >>> referenced by phy.h:1417 (../include/linux/phy.h:1417) >>> vmlinux.o:(marvell_phy_tai_clock_read) >>> referenced by phy.h:1417 (../include/linux/phy.h:1417) >>> vmlinux.o:(marvell_phy_tai_clock_read) >>> referenced by phy.h:1417 (../include/linux/phy.h:1417) >>> vmlinux.o:(marvell_phy_ts_port_read_ts) >>> referenced 3 more times ld.lld: error: undefined symbol: phy_restore_page >>> referenced by marvell_ptp.c:124 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:124) >>> vmlinux.o:(marvell_phy_tai_clock_read) >>> referenced by marvell_ptp.c:255 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:255) >>> vmlinux.o:(marvell_phy_ts_port_read_ts) make[3]: *** [../scripts/Makefile.vmlinux:91: vmlinux.unstripped] Error 1 make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1244: vmlinux] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/home/nipa/net-next/wt-1/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2 ../drivers/net/dsa/mv88e6xxx/ptp.c:353:6: warning: unused variable 'func' [-Wunused-variable] 353 | int func; | ^~~~ 1 warning generated. ld.lld: error: undefined symbol: marvell_ts_irq >>> referenced by marvell_ptp.c:297 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:297) >>> vmlinux.o:(marvell_phy_ptp_irq) ld.lld: error: undefined symbol: devm_marvell_tai_probe >>> referenced by marvell_ptp.c:338 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:338) >>> vmlinux.o:(devm_marvell_phy_ptp_probe) ld.lld: error: undefined symbol: marvell_ts_global_config >>> referenced by marvell_ptp.c:345 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:345) >>> vmlinux.o:(devm_marvell_phy_ptp_probe) ld.lld: error: undefined symbol: phy_write_paged >>> referenced by marvell_ptp.c:178 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:178) >>> vmlinux.o:(devm_marvell_phy_ptp_probe) >>> referenced by marvell_ptp.c:178 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:178) >>> vmlinux.o:(marvell_phy_ts_global_write) >>> referenced by marvell_ptp.c:136 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:136) >>> vmlinux.o:(marvell_phy_tai_write) >>> referenced 1 more times ld.lld: error: undefined symbol: devm_marvell_ts_probe >>> referenced by marvell_ptp.c:355 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:355) >>> vmlinux.o:(devm_marvell_phy_ptp_probe) ld.lld: error: undefined symbol: marvell_ts_rxtstamp >>> referenced by marvell_ptp.c:54 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:54) >>> vmlinux.o:(marvell_phy_ptp_rxtstamp) ld.lld: error: undefined symbol: marvell_ts_txtstamp >>> referenced by marvell_ptp.c:63 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:63) >>> vmlinux.o:(marvell_phy_ptp_txtstamp) ld.lld: error: undefined symbol: marvell_ts_hwtstamp_set >>> referenced by marvell_ptp.c:73 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:73) >>> vmlinux.o:(marvell_phy_ptp_hwtstamp) ld.lld: error: undefined symbol: marvell_ts_hwtstamp_get >>> referenced by marvell_ptp.c:81 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:81) >>> vmlinux.o:(marvell_phy_ptp_hwtstamp_get) ld.lld: error: undefined symbol: marvell_ts_info >>> referenced by marvell_ptp.c:89 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:89) >>> vmlinux.o:(marvell_phy_ptp_ts_info) ld.lld: error: undefined symbol: phy_modify_paged >>> referenced by marvell_ptp.c:143 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:143) >>> vmlinux.o:(marvell_phy_tai_modify) >>> referenced by marvell_ptp.c:97 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:97) >>> vmlinux.o:(marvell_phy_tai_hw_enable) >>> referenced by marvell_ptp.c:105 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:105) >>> vmlinux.o:(marvell_phy_tai_hw_disable) >>> referenced 1 more times ld.lld: error: undefined symbol: marvell_ts_aux_work >>> referenced by marvell_ptp.c:154 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:154) >>> vmlinux.o:(marvell_phy_tai_aux_work) ld.lld: error: undefined symbol: phy_select_page >>> referenced by marvell_ptp.c:115 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:115) >>> vmlinux.o:(marvell_phy_tai_clock_read) >>> referenced by marvell_ptp.c:216 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:216) >>> vmlinux.o:(marvell_phy_ts_port_read_ts) ld.lld: error: undefined symbol: __mdiobus_write >>> referenced by phy.h:1445 (../include/linux/phy.h:1445) >>> vmlinux.o:(marvell_phy_tai_clock_read) >>> referenced by phy.h:1445 (../include/linux/phy.h:1445) >>> vmlinux.o:(marvell_phy_tai_clock_read) >>> referenced by phy.h:1445 (../include/linux/phy.h:1445) >>> vmlinux.o:(marvell_phy_ts_port_read_ts) ld.lld: error: undefined symbol: __mdiobus_read >>> referenced by phy.h:1417 (../include/linux/phy.h:1417) >>> vmlinux.o:(marvell_phy_tai_clock_read) >>> referenced by phy.h:1417 (../include/linux/phy.h:1417) >>> vmlinux.o:(marvell_phy_tai_clock_read) >>> referenced by phy.h:1417 (../include/linux/phy.h:1417) >>> vmlinux.o:(marvell_phy_ts_port_read_ts) >>> referenced 3 more times ld.lld: error: undefined symbol: phy_restore_page >>> referenced by marvell_ptp.c:124 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:124) >>> vmlinux.o:(marvell_phy_tai_clock_read) >>> referenced by marvell_ptp.c:255 (/home/nipa/net-next/wt-1/build_clang/../drivers/net/phy/marvell_ptp.c:255) >>> vmlinux.o:(marvell_phy_ts_port_read_ts) make[3]: *** [../scripts/Makefile.vmlinux:91: vmlinux.unstripped] Error 1 make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1244: vmlinux] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/home/nipa/net-next/wt-1/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2 New errors added --- /tmp/tmp.ikXD2DcLU7 2025-09-18 15:56:04.609105972 -0700 +++ /tmp/tmp.l8x45qliiq 2025-09-18 15:57:18.330662537 -0700 @@ -0,0 +1,4 @@ +../drivers/net/dsa/mv88e6xxx/ptp.c:353:6: warning: unused variable 'func' [-Wunused-variable] + 353 | int func; + | ^~~~ +1 warning generated. Per-file breakdown --- /tmp/tmp.n6NdlcFW59 2025-09-18 15:57:18.337662495 -0700 +++ /tmp/tmp.qc21Cn3JqM 2025-09-18 15:57:18.340662476 -0700 @@ -0,0 +1 @@ + 1 ../drivers/net/dsa/mv88e6xxx/ptp.c