../drivers/net/ethernet/wangxun/libwx/wx_ptp.c: In function ‘wx_ptp_feature_enable’: ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:387:47: error: ‘struct wx’ has no member named ‘ptp_setup_sdp’ 387 | if (rq->type != PTP_CLK_REQ_PPS || !wx->ptp_setup_sdp) | ^~ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:391:25: error: ‘WX_FLAG_PTP_PPS_ENABLED’ undeclared (first use in this function) 391 | set_bit(WX_FLAG_PTP_PPS_ENABLED, wx->flags); | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:391:25: note: each undeclared identifier is reported only once for each function it appears in ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:395:11: error: ‘struct wx’ has no member named ‘ptp_setup_sdp’ 395 | wx->ptp_setup_sdp(wx); | ^~ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c: At top level: ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:407:6: warning: no previous prototype for ‘wx_ptp_check_pps_event’ [-Wmissing-prototypes] 407 | void wx_ptp_check_pps_event(struct wx *wx) | ^~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c: In function ‘wx_ptp_check_pps_event’: ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:423:34: error: ‘WX_TSC_1588_INT_ST’ undeclared (first use in this function); did you mean ‘WX_TSC_1588_INC’? 423 | int_status = rd32ptp(wx, WX_TSC_1588_INT_ST); | ^~~~~~~~~~~~~~~~~~ | WX_TSC_1588_INC ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:424:26: error: ‘WX_TSC_1588_INT_ST_TT1’ undeclared (first use in this function); did you mean ‘WX_TSC_1588_INC’? 424 | if (int_status & WX_TSC_1588_INT_ST_TT1) { | ^~~~~~~~~~~~~~~~~~~~~~ | WX_TSC_1588_INC ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:426:29: error: ‘WX_TSC_1588_AUX_CTL’ undeclared (first use in this function); did you mean ‘WX_TSC_1588_CTL’? 426 | wr32ptp(wx, WX_TSC_1588_AUX_CTL, 0); | ^~~~~~~~~~~~~~~~~~~ | WX_TSC_1588_CTL ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:429:26: error: ‘WX_TSC_1588_AUX_CTL_PLSG’ undeclared (first use in this function); did you mean ‘WX_TSC_1588_CTL_VALID’? 429 | tsauxc = WX_TSC_1588_AUX_CTL_PLSG | WX_TSC_1588_AUX_CTL_EN_TT0 | | ^~~~~~~~~~~~~~~~~~~~~~~~ | WX_TSC_1588_CTL_VALID ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:429:53: error: ‘WX_TSC_1588_AUX_CTL_EN_TT0’ undeclared (first use in this function); did you mean ‘WX_TSC_1588_CTL_ENABLED’? 429 | tsauxc = WX_TSC_1588_AUX_CTL_PLSG | WX_TSC_1588_AUX_CTL_EN_TT0 | | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | WX_TSC_1588_CTL_ENABLED ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:430:26: error: ‘WX_TSC_1588_AUX_CTL_EN_TT1’ undeclared (first use in this function); did you mean ‘WX_TSC_1588_CTL_ENABLED’? 430 | WX_TSC_1588_AUX_CTL_EN_TT1 | WX_TSC_1588_AUX_CTL_EN_TS0; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | WX_TSC_1588_CTL_ENABLED ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:430:55: error: ‘WX_TSC_1588_AUX_CTL_EN_TS0’ undeclared (first use in this function); did you mean ‘WX_TSC_1588_CTL_ENABLED’? 430 | WX_TSC_1588_AUX_CTL_EN_TT1 | WX_TSC_1588_AUX_CTL_EN_TS0; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | WX_TSC_1588_CTL_ENABLED ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:435:19: error: ‘struct wx’ has no member named ‘pps_edge_start’ 435 | wx->pps_edge_start = wx->hw_tc.cycle_last; | ^~ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:437:19: error: ‘struct wx’ has no member named ‘pps_edge_end’ 437 | wx->pps_edge_end = wx->pps_edge_start; | ^~ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:437:38: error: ‘struct wx’ has no member named ‘pps_edge_start’ 437 | wx->pps_edge_end = wx->pps_edge_start; | ^~ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:448:19: error: ‘struct wx’ has no member named ‘pps_edge_start’ 448 | wx->pps_edge_start += div_u64(((u64)rem << cc->shift), cc->mult); | ^~ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:449:36: error: ‘struct wx’ has no member named ‘pps_edge_start’ 449 | trgttiml0 = (u32)wx->pps_edge_start; | ^~ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:450:37: error: ‘struct wx’ has no member named ‘pps_edge_start’ 450 | trgttimh0 = (u32)(wx->pps_edge_start >> 32); | ^~ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:453:19: error: ‘struct wx’ has no member named ‘pps_edge_end’ 453 | wx->pps_edge_end += div_u64(((u64)rem << cc->shift), cc->mult); | ^~ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:454:36: error: ‘struct wx’ has no member named ‘pps_edge_end’ 454 | trgttiml1 = (u32)wx->pps_edge_end; | ^~ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:455:37: error: ‘struct wx’ has no member named ‘pps_edge_end’ 455 | trgttimh1 = (u32)(wx->pps_edge_end >> 32); | ^~ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:457:29: error: implicit declaration of function ‘WX_TSC_1588_TRGT_L’; did you mean ‘WX_TSC_1588_CTL’? [-Wimplicit-function-declaration] 457 | wr32ptp(wx, WX_TSC_1588_TRGT_L(0), trgttiml0); | ^~~~~~~~~~~~~~~~~~ | WX_TSC_1588_CTL ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:458:29: error: implicit declaration of function ‘WX_TSC_1588_TRGT_H’; did you mean ‘WX_TSC_1588_STMPH’? [-Wimplicit-function-declaration] 458 | wr32ptp(wx, WX_TSC_1588_TRGT_H(0), trgttimh0); | ^~~~~~~~~~~~~~~~~~ | WX_TSC_1588_STMPH ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c: At top level: ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:376:12: warning: ‘wx_ptp_feature_enable’ defined but not used [-Wunused-function] 376 | static int wx_ptp_feature_enable(struct ptp_clock_info *ptp, | ^~~~~~~~~~~~~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:194: drivers/net/ethernet/wangxun/libwx/wx_ptp.o] Error 1 make[7]: *** [../scripts/Makefile.build:440: drivers/net/ethernet/wangxun/libwx] Error 2 make[6]: *** [../scripts/Makefile.build:440: drivers/net/ethernet/wangxun] Error 2 make[5]: *** [../scripts/Makefile.build:440: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:440: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:440: drivers] Error 2 make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1993: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/staging/gpib/fmh_gpib/fmh_gpib.o