llm@llm-primas:~/Ziggo-Device-main/Ziggo-Device-main/Software/build$ make
Scanning dependencies of target pkt_gen_app
[ 3%] Building C object CMakeFiles/pkt_gen_app.dir/dma_proxy/buffer_queue.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/dma_proxy/buffer_queue.c: In function 'init_queue':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/dma_proxy/buffer_queue.c:16:1: warning: control reaches end of non-void function [-Wreturn-type]
16 | }
| ^
[ 7%] Building C object CMakeFiles/pkt_gen_app.dir/dma_proxy/dma-proxy.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/dma_proxy/dma-proxy.c: In function 'DMA_rx_thread':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/dma_proxy/dma-proxy.c:168:55: warning: passing argument 1 of 'process_packet' from incompatible pointer type [-Wincompatible-pointer-types]
168 | process_packet(channel_ptr->buf_ptr[buffer_id].buffer, queue);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
| |
| unsigned int *
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/dma_proxy/dma-proxy.c:108:30: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'unsigned int *'
108 | void process_packet(uint8_t *buf, buffer_queue *queue) {
| ~~~~~~~~~^~~
[ 11%] Building C object CMakeFiles/pkt_gen_app.dir/pkt_gen_control/pkt_gen.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c: In function 'process_critical_frame':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c:140:36: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=]
140 | fprintf (fp_pkt, "%04X, %u, %lld, %lld, %lld\r\n",
| ~~~^
| |
| long long int
| %ld
141 | seq_id, pkt_id, tx_ts, rx_ts, (int64_t)rx_ts - (int64_t)tx_ts);
| ~~~~~
| |
| uint64_t {aka long unsigned int}
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c:140:42: warning: format '%lld' expects argument of type 'long long int', but argument 6 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=]
140 | fprintf (fp_pkt, "%04X, %u, %lld, %lld, %lld\r\n",
| ~~~^
| |
| long long int
| %ld
141 | seq_id, pkt_id, tx_ts, rx_ts, (int64_t)rx_ts - (int64_t)tx_ts);
| ~~~~~
| |
| uint64_t {aka long unsigned int}
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c:140:48: warning: format '%lld' expects argument of type 'long long int', but argument 7 has type 'long int' [-Wformat=]
140 | fprintf (fp_pkt, "%04X, %u, %lld, %lld, %lld\r\n",
| ~~~^
| |
| long long int
| %ld
141 | seq_id, pkt_id, tx_ts, rx_ts, (int64_t)rx_ts - (int64_t)tx_ts);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long int
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c:177:54: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int64_t' {aka 'long int'} [-Wformat=]
177 | printf ("Average transmission latency : %lld ns\n", mean);
| ~~~^ ~~~~
| | |
| | int64_t {aka long int}
| long long int
| %ld
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c:178:54: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int64_t' {aka 'long int'} [-Wformat=]
178 | printf ("Variance of latency : %lld\n", var);
| ~~~^ ~~~
| | |
| | int64_t {aka long int}
| long long int
| %ld
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c:182:54: warning: format '%lld' expects argument of type 'long long int', but argument 8 has type 'int64_t' {aka 'long int'} [-Wformat=]
182 | fprintf (fp, "%04X, %u, %u, %u, %lf, %lld, %lld\r\n",
| ~~~^
| |
| long long int
| %ld
183 | seq_id, critical_log[seq_id].num_pkt_recvd, critical_log[seq_id].min_pkt_id,
184 | critical_log[seq_id].max_pkt_id, drop_rate, mean, var);
| ~~~~
| |
| int64_t {aka long int}
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c:182:60: warning: format '%lld' expects argument of type 'long long int', but argument 9 has type 'int64_t' {aka 'long int'} [-Wformat=]
182 | fprintf (fp, "%04X, %u, %u, %u, %lf, %lld, %lld\r\n",
| ~~~^
| |
| long long int
| %ld
183 | seq_id, critical_log[seq_id].num_pkt_recvd, critical_log[seq_id].min_pkt_id,
184 | critical_log[seq_id].max_pkt_id, drop_rate, mean, var);
| ~~~
| |
| int64_t {aka long int}
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c: In function 'print_critical_frame':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c:199:41: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=]
199 | printf ("transmission timestamp: %llu\n", swapByteOrder64(packet->tx_timestamp));
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | uint64_t {aka long unsigned int}
| long long unsigned int
| %lu
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c:200:41: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=]
200 | printf ("receiving timestamp: %llu\n", swapByteOrder64(packet->rx_timestamp));
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | uint64_t {aka long unsigned int}
| long long unsigned int
| %lu
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c: In function 'start_pkt_gen_config':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c:252:1: warning: control reaches end of non-void function [-Wreturn-type]
252 | }
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c: In function 'finish_pkt_gen_config':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c:260:1: warning: control reaches end of non-void function [-Wreturn-type]
260 | }
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c: In function 'set_pkt_gen_slot':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c:283:1: warning: control reaches end of non-void function [-Wreturn-type]
283 | }
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c: In function 'pkt_gen_test':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/pkt_gen_control/pkt_gen.c:309:1: warning: control reaches end of non-void function [-Wreturn-type]
309 | }
| ^
[ 14%] Building C object CMakeFiles/pkt_gen_app.dir/time_sync/clock_master_sync_receive_sm.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_receive_sm.c: In function 'lookup_state_name':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_receive_sm.c:9:5: warning: enumeration value 'CMSR_BEFORE_INIT' not handled in switch [-Wswitch]
9 | switch (state) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_receive_sm.c: In function 'print_state_change':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_receive_sm.c:23:17: warning: unused variable 'current_state_name' [-Wunused-variable]
23 | const char* current_state_name = lookup_state_name(current_state);
| ^~~~~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_receive_sm.c:22:17: warning: unused variable 'last_state_name' [-Wunused-variable]
22 | const char* last_state_name = lookup_state_name(last_state);
| ^~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_receive_sm.c: In function 'computeGmRateRatio':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_receive_sm.c:33:1: warning: no return statement in function returning non-void [-Wreturn-type]
33 | }
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_receive_sm.c: In function 'clock_master_sync_receive_sm_run':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_receive_sm.c:101:9: warning: enumeration value 'CMSR_REACTION' not handled in switch [-Wswitch]
101 | switch (sm->state) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_receive_sm.c:101:9: warning: enumeration value 'CMSR_BEFORE_INIT' not handled in switch [-Wswitch]
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_receive_sm.c: In function 'lookup_state_name':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_receive_sm.c:19:1: warning: control reaches end of non-void function [-Wreturn-type]
19 | }
| ^
[ 18%] Building C object CMakeFiles/pkt_gen_app.dir/time_sync/clock_master_sync_send_sm.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_send_sm.c: In function 'print_state_change':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_send_sm.c:25:17: warning: unused variable 'current_state_name' [-Wunused-variable]
25 | const char* current_state_name = lookup_state_name(current_state);
| ^~~~~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_send_sm.c:24:17: warning: unused variable 'last_state_name' [-Wunused-variable]
24 | const char* last_state_name = lookup_state_name(last_state);
| ^~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_send_sm.c: In function 'clock_master_sync_send_sm_run':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_send_sm.c:113:9: warning: enumeration value 'CMSS_REACTION' not handled in switch [-Wswitch]
113 | switch (sm->state) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_send_sm.c:113:9: warning: enumeration value 'CMSS_BEFORE_INIT' not handled in switch [-Wswitch]
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_send_sm.c: In function 'lookup_state_name':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_master_sync_send_sm.c:21:1: warning: control reaches end of non-void function [-Wreturn-type]
21 | }
| ^
[ 22%] Building C object CMakeFiles/pkt_gen_app.dir/time_sync/clock_slave_sync_sm.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_slave_sync_sm.c: In function 'lookup_state_name':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_slave_sync_sm.c:14:5: warning: enumeration value 'CSS_BEFORE_INIT' not handled in switch [-Wswitch]
14 | switch (state) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_slave_sync_sm.c: In function 'print_state_change':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_slave_sync_sm.c:29:17: warning: unused variable 'current_state_name' [-Wunused-variable]
29 | const char *current_state_name = lookup_state_name(current_state);
| ^~~~~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_slave_sync_sm.c:28:17: warning: unused variable 'last_state_name' [-Wunused-variable]
28 | const char *last_state_name = lookup_state_name(last_state);
| ^~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_slave_sync_sm.c: In function 'clock_slave_sync_sm_run':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_slave_sync_sm.c:240:9: warning: enumeration value 'CSS_REACTION' not handled in switch [-Wswitch]
240 | switch (sm->state) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_slave_sync_sm.c:240:9: warning: enumeration value 'CSS_BEFORE_INIT' not handled in switch [-Wswitch]
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_slave_sync_sm.c: In function 'lookup_state_name':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/clock_slave_sync_sm.c:24:1: warning: control reaches end of non-void function [-Wreturn-type]
24 | }
| ^
[ 25%] Building C object CMakeFiles/pkt_gen_app.dir/time_sync/eth_frame.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.c: In function 'recv_ptp_frame':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.c:173:40: warning: passing argument 1 of 'get_ptp_msg_header' from incompatible pointer type [-Wincompatible-pointer-types]
173 | get_ptp_msg_header(RxBufferPtr + PAY_LOAD_OFFSET, &header);
| ^
| |
| uint8_t * {aka unsigned char *}
In file included from /home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.c:21:
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.h:94:41: note: expected 'PTPFrameHeader *' {aka 'struct PTPFrameHeader *'} but argument is of type 'uint8_t *' {aka 'unsigned char *'}
94 | void get_ptp_msg_header(PTPFrameHeader *frame_header, PTPMsgHeader *header);
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.c:193:56: warning: initialization of 'PTPFramePdelayReq *' {aka 'struct PTPFramePdelayReq *'} from incompatible pointer type 'uint8_t *' {aka 'unsigned char *'} [-Wincompatible-pointer-types]
193 | PTPFramePdelayReq *pdelayReqFramePtr = RxBufferPtr + PAY_LOAD_OFFSET;
| ^~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.c:194:33: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'PTPMsgPdelayReq *' {aka 'struct PTPMsgPdelayReq *'} [-Wincompatible-pointer-types]
194 | *buffer_ptr_ptr = pdelayReqPtr;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.c:214:58: warning: initialization of 'PTPFramePdelayResp *' {aka 'struct PTPFramePdelayResp *'} from incompatible pointer type 'uint8_t *' {aka 'unsigned char *'} [-Wincompatible-pointer-types]
214 | PTPFramePdelayResp* pdelayRespFramePtr = RxBufferPtr + PAY_LOAD_OFFSET;
| ^~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.c:221:33: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'PTPMsgPdelayResp *' {aka 'struct PTPMsgPdelayResp *'} [-Wincompatible-pointer-types]
221 | *buffer_ptr_ptr = pdelayRespPtr;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.c:238:74: warning: initialization of 'PTPFramePdelayRespFollowUp *' {aka 'struct PTPFramePdelayRespFollowUp *'} from incompatible pointer type 'uint8_t *' {aka 'unsigned char *'} [-Wincompatible-pointer-types]
238 | PTPFramePdelayRespFollowUp* pdelayRespFollowupFramePtr = RxBufferPtr + PAY_LOAD_OFFSET;
| ^~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.c:248:22: warning: assignment to 'uint32_t *' {aka 'unsigned int *'} from incompatible pointer type 'uint64_t *' {aka 'long unsigned int *'} [-Wincompatible-pointer-types]
248 | ns_l = &tx_ts.nsec;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.c:251:33: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'PTPMsgPdelayRespFollowUp *' {aka 'struct PTPMsgPdelayRespFollowUp *'} [-Wincompatible-pointer-types]
251 | *buffer_ptr_ptr = pdelayRespFollowupPtr;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.c:260:33: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'PTPMsgSync *' {aka 'struct PTPMsgSync *'} [-Wincompatible-pointer-types]
260 | *buffer_ptr_ptr = syncPtr;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.c:278:54: warning: initialization of 'PTPFrameFollowUp *' {aka 'struct PTPFrameFollowUp *'} from incompatible pointer type 'uint8_t *' {aka 'unsigned char *'} [-Wincompatible-pointer-types]
278 | PTPFrameFollowUp *followUpFramePtr = RxBufferPtr + PAY_LOAD_OFFSET;
| ^~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.c:292:33: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'PTPMsgFollowUp *' {aka 'struct PTPMsgFollowUp *'} [-Wincompatible-pointer-types]
292 | *buffer_ptr_ptr = followUpPtr;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.c:193:36: warning: unused variable 'pdelayReqFramePtr' [-Wunused-variable]
193 | PTPFramePdelayReq *pdelayReqFramePtr = RxBufferPtr + PAY_LOAD_OFFSET;
| ^~~~~~~~~~~~~~~~~
[ 29%] Building C object CMakeFiles/pkt_gen_app.dir/time_sync/md_pdelay_req_sm.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_req_sm.c: In function 'print_state_change':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_req_sm.c:39:17: warning: unused variable 'current_state_name' [-Wunused-variable]
39 | const char *current_state_name = lookup_state_name(current_state);
| ^~~~~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_req_sm.c:38:17: warning: unused variable 'last_state_name' [-Wunused-variable]
38 | const char *last_state_name = lookup_state_name(last_state);
| ^~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_req_sm.c: In function 'txPdelayReq':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_req_sm.c:65:20: warning: passing argument 1 of 'send_ptp_frame' from incompatible pointer type [-Wincompatible-pointer-types]
65 | send_ptp_frame(&ptpFramePdelayReq, sizeof(PTPFramePdelayReq),
| ^~~~~~~~~~~~~~~~~~
| |
| PTPFramePdelayReq * {aka struct PTPFramePdelayReq *}
In file included from /home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_req_sm.c:9:
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.h:10:30: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'PTPFramePdelayReq *' {aka 'struct PTPFramePdelayReq *'}
10 | void send_ptp_frame(uint8_t *buffer, int length, uint16_t portNumber, char* msg_type, uint16_t seq_id);
| ~~~~~~~~~^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_req_sm.c: In function 'computePdelayRateRatio':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_req_sm.c:97:9: warning: implicit declaration of function 'fabs' [-Wimplicit-function-declaration]
97 | if (fabs(r - 1) > 1e-3) {
| ^~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_req_sm.c:97:9: warning: incompatible implicit declaration of built-in function 'fabs'
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_req_sm.c:12:1: note: include '<math.h>' or provide a declaration of 'fabs'
11 | #include "../log/log.h"
+++ |+#include <math.h>
12 |
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_req_sm.c: In function 'md_pdelay_req_sm_run':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_req_sm.c:366:9: warning: enumeration value 'PD_REQ_BEFORE_INIT' not handled in switch [-Wswitch]
366 | switch (sm->state) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_req_sm.c: In function 'lookup_state_name':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_req_sm.c:34:1: warning: control reaches end of non-void function [-Wreturn-type]
34 | }
| ^
[ 33%] Building C object CMakeFiles/pkt_gen_app.dir/time_sync/md_pdelay_resp_sm.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_resp_sm.c: In function 'print_state_change':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_resp_sm.c:26:17: warning: unused variable 'current_state_name' [-Wunused-variable]
26 | const char* current_state_name = lookup_state_name(current_state);
| ^~~~~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_resp_sm.c:25:17: warning: unused variable 'last_state_name' [-Wunused-variable]
25 | const char* last_state_name = lookup_state_name(last_state);
| ^~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_resp_sm.c: In function 'txPdelayResp':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_resp_sm.c:60:5: warning: implicit declaration of function 'send_ptp_frame' [-Wimplicit-function-declaration]
60 | send_ptp_frame(&ptpFramePdelayResp, sizeof(PTPFramePdelayResp), sm->perPortGlobal->thisPort, "PDELAY_RESP", sm->txPdelayRespPtr->head.sequenceId);
| ^~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_resp_sm.c: In function 'md_pdelay_resp_sm_run':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_resp_sm.c:172:9: warning: enumeration value 'PD_RESP_BEFORE_INIT' not handled in switch [-Wswitch]
172 | switch (sm->state) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_resp_sm.c: In function 'lookup_state_name':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_resp_sm.c:22:1: warning: control reaches end of non-void function [-Wreturn-type]
22 | }
| ^
[ 37%] Building C object CMakeFiles/pkt_gen_app.dir/time_sync/md_sync_receive_sm.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_receive_sm.c: In function 'print_state_change':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_receive_sm.c:24:17: warning: unused variable 'current_state_name' [-Wunused-variable]
24 | const char* current_state_name = lookup_state_name(current_state);
| ^~~~~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_receive_sm.c:23:17: warning: unused variable 'last_state_name' [-Wunused-variable]
23 | const char* last_state_name = lookup_state_name(last_state);
| ^~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_receive_sm.c: In function 'md_sync_receive_sm_run':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_receive_sm.c:124:9: warning: enumeration value 'MDSR_REACTION' not handled in switch [-Wswitch]
124 | switch (sm->state) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_receive_sm.c:124:9: warning: enumeration value 'MDSR_BEFORE_INIT' not handled in switch [-Wswitch]
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_receive_sm.c: In function 'lookup_state_name':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_receive_sm.c:20:1: warning: control reaches end of non-void function [-Wreturn-type]
20 | }
| ^
[ 40%] Building C object CMakeFiles/pkt_gen_app.dir/time_sync/md_sync_send_sm.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c: In function 'lookup_state_name':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c:9:5: warning: enumeration value 'MDSS_REACTION' not handled in switch [-Wswitch]
9 | switch (state) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c:9:5: warning: enumeration value 'MDSS_BEFORE_INIT' not handled in switch [-Wswitch]
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c: In function 'print_state_change':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c:23:17: warning: unused variable 'current_state_name' [-Wunused-variable]
23 | const char* current_state_name = lookup_state_name(current_state);
| ^~~~~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c:22:17: warning: unused variable 'last_state_name' [-Wunused-variable]
22 | const char* last_state_name = lookup_state_name(last_state);
| ^~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c: In function 'txSync':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c:41:20: warning: passing argument 1 of 'send_ptp_frame' from incompatible pointer type [-Wincompatible-pointer-types]
41 | send_ptp_frame(&ptpFrameSync, sizeof(PTPFrameSync), sm->perPortGlobal->thisPort, "SYNC", sm->txSyncPtr->head.sequenceId);
| ^~~~~~~~~~~~~
| |
| PTPFrameSync * {aka struct PTPFrameSync *}
In file included from /home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c:5:
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.h:10:30: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'PTPFrameSync *' {aka 'struct PTPFrameSync *'}
10 | void send_ptp_frame(uint8_t *buffer, int length, uint16_t portNumber, char* msg_type, uint16_t seq_id);
| ~~~~~~~~~^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c: In function 'txFollowUp':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c:98:20: warning: passing argument 1 of 'send_ptp_frame' from incompatible pointer type [-Wincompatible-pointer-types]
98 | send_ptp_frame(&ptpFrameFollowUp, sizeof(PTPFrameFollowUp), sm->perPortGlobal->thisPort, "FOLLOW_UP", sm->txFollowUpPtr->head.sequenceId);
| ^~~~~~~~~~~~~~~~~
| |
| PTPFrameFollowUp * {aka struct PTPFrameFollowUp *}
In file included from /home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c:5:
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/eth_frame.h:10:30: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'PTPFrameFollowUp *' {aka 'struct PTPFrameFollowUp *'}
10 | void send_ptp_frame(uint8_t *buffer, int length, uint16_t portNumber, char* msg_type, uint16_t seq_id);
| ~~~~~~~~~^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c: In function 'md_sync_send_sm_run':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c:171:9: warning: enumeration value 'MDSS_REACTION' not handled in switch [-Wswitch]
171 | switch (sm->state) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c:171:9: warning: enumeration value 'MDSS_BEFORE_INIT' not handled in switch [-Wswitch]
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c: In function 'lookup_state_name':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_send_sm.c:19:1: warning: control reaches end of non-void function [-Wreturn-type]
19 | }
| ^
[ 44%] Building C object CMakeFiles/pkt_gen_app.dir/time_sync/msg_frame.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c: In function 'htons':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:7:11: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'uint16_t *' {aka 'short unsigned int *'} [-Wincompatible-pointer-types]
7 | h_ptr = &h;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:8:11: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'uint16_t *' {aka 'short unsigned int *'} [-Wincompatible-pointer-types]
8 | n_ptr = &n;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c: In function 'ntohs':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:17:11: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'uint16_t *' {aka 'short unsigned int *'} [-Wincompatible-pointer-types]
17 | h_ptr = &h;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:18:11: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'uint16_t *' {aka 'short unsigned int *'} [-Wincompatible-pointer-types]
18 | n_ptr = &n;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c: In function 'htonl':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:27:11: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'uint32_t *' {aka 'unsigned int *'} [-Wincompatible-pointer-types]
27 | h_ptr = &h;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:28:11: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'uint32_t *' {aka 'unsigned int *'} [-Wincompatible-pointer-types]
28 | n_ptr = &n;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c: In function 'ntohl':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:39:11: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'uint32_t *' {aka 'unsigned int *'} [-Wincompatible-pointer-types]
39 | h_ptr = &h;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:40:11: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'uint32_t *' {aka 'unsigned int *'} [-Wincompatible-pointer-types]
40 | n_ptr = &n;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c: In function 'htonll':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:51:11: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'uint64_t *' {aka 'long unsigned int *'} [-Wincompatible-pointer-types]
51 | h_ptr = &h;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:52:11: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'uint64_t *' {aka 'long unsigned int *'} [-Wincompatible-pointer-types]
52 | n_ptr = &n;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c: In function 'ntohll':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:67:11: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'uint64_t *' {aka 'long unsigned int *'} [-Wincompatible-pointer-types]
67 | h_ptr = &h;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:68:11: warning: assignment to 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'uint64_t *' {aka 'long unsigned int *'} [-Wincompatible-pointer-types]
68 | n_ptr = &n;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c: In function 'set_ptp_frame_header':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:96:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
96 | memcpy(frame_header->flags, header->flags, 2);
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:96:2: warning: incompatible implicit declaration of built-in function 'memcpy'
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:3:1: note: include '<string.h>' or provide a declaration of 'memcpy'
2 | #include "msg_frame.h"
+++ |+#include <string.h>
3 |
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c: In function 'get_ptp_msg_header':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:114:5: warning: incompatible implicit declaration of built-in function 'memcpy'
114 | memcpy(header->flags, frame_header->flags, 2);
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/msg_frame.c:114:5: note: include '<string.h>' or provide a declaration of 'memcpy'
[ 48%] Building C object CMakeFiles/pkt_gen_app.dir/time_sync/port_sync_sync_receive_sm.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_receive_sm.c: In function 'lookup_state_name':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_receive_sm.c:8:5: warning: enumeration value 'PSSR_BEFORE_INIT' not handled in switch [-Wswitch]
8 | switch (state) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_receive_sm.c: In function 'print_state_change':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_receive_sm.c:22:17: warning: unused variable 'current_state_name' [-Wunused-variable]
22 | const char* current_state_name = lookup_state_name(current_state);
| ^~~~~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_receive_sm.c:21:17: warning: unused variable 'last_state_name' [-Wunused-variable]
21 | const char* last_state_name = lookup_state_name(last_state);
| ^~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_receive_sm.c: In function 'port_sync_sync_receive_sm_run':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_receive_sm.c:94:9: warning: enumeration value 'PSSR_REACTION' not handled in switch [-Wswitch]
94 | switch (sm->state) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_receive_sm.c:94:9: warning: enumeration value 'PSSR_BEFORE_INIT' not handled in switch [-Wswitch]
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_receive_sm.c: In function 'lookup_state_name':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_receive_sm.c:18:1: warning: control reaches end of non-void function [-Wreturn-type]
18 | }
| ^
[ 51%] Building C object CMakeFiles/pkt_gen_app.dir/time_sync/port_sync_sync_send_sm.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_send_sm.c: In function 'lookup_state_name':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_send_sm.c:7:5: warning: enumeration value 'PSSS_BEFORE_INIT' not handled in switch [-Wswitch]
7 | switch (state) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_send_sm.c: In function 'print_state_change':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_send_sm.c:23:17: warning: unused variable 'current_state_name' [-Wunused-variable]
23 | const char* current_state_name = lookup_state_name(current_state);
| ^~~~~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_send_sm.c:22:17: warning: unused variable 'last_state_name' [-Wunused-variable]
22 | const char* last_state_name = lookup_state_name(last_state);
| ^~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_send_sm.c: In function 'port_sync_sync_send_sm_run':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_send_sm.c:160:9: warning: enumeration value 'PSSS_REACTION' not handled in switch [-Wswitch]
160 | switch (sm->state) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_send_sm.c:160:9: warning: enumeration value 'PSSS_BEFORE_INIT' not handled in switch [-Wswitch]
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_send_sm.c: In function 'lookup_state_name':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/port_sync_sync_send_sm.c:19:1: warning: control reaches end of non-void function [-Wreturn-type]
19 | }
| ^
[ 55%] Building C object CMakeFiles/pkt_gen_app.dir/time_sync/site_sync_sync_sm.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/site_sync_sync_sm.c: In function 'lookup_state_name':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/site_sync_sync_sm.c:6:5: warning: enumeration value 'SSS_BEFORE_INIT' not handled in switch [-Wswitch]
6 | switch (state) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/site_sync_sync_sm.c: In function 'print_state_change':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/site_sync_sync_sm.c:20:17: warning: unused variable 'current_state_name' [-Wunused-variable]
20 | const char* current_state_name = lookup_state_name(current_state);
| ^~~~~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/site_sync_sync_sm.c:19:17: warning: unused variable 'last_state_name' [-Wunused-variable]
19 | const char* last_state_name = lookup_state_name(last_state);
| ^~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/site_sync_sync_sm.c: In function 'site_sync_sync_sm_run':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/site_sync_sync_sm.c:82:9: warning: enumeration value 'SSS_BEFORE_INIT' not handled in switch [-Wswitch]
82 | switch (sm->state) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/site_sync_sync_sm.c:82:9: warning: enumeration value 'SSS_REACTION' not handled in switch [-Wswitch]
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/site_sync_sync_sm.c: In function 'lookup_state_name':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/site_sync_sync_sm.c:16:1: warning: control reaches end of non-void function [-Wreturn-type]
16 | }
| ^
[ 59%] Building C object CMakeFiles/pkt_gen_app.dir/tsn_drivers/tsu.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c: In function 'tsu_tx_get_timestamp':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:68:19: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
68 | QUE_STATUS_ADDR = base_ptr_tsu + PORT_0_TSU_TXQUE_STATUS;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:69:13: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
69 | CTRL_ADDR = base_ptr_tsu + PORT_0_TSU_TXCTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:70:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
70 | TSU_DATA_HH_ADDR = base_ptr_tsu + PORT_0_TSU_TXQUE_DATA_HH;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:71:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
71 | TSU_DATA_HL_ADDR = base_ptr_tsu + PORT_0_TSU_TXQUE_DATA_HL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:72:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
72 | TSU_DATA_LH_ADDR = base_ptr_tsu + PORT_0_TSU_TXQUE_DATA_LH;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:73:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
73 | TSU_DATA_LL_ADDR = base_ptr_tsu + PORT_0_TSU_TXQUE_DATA_LL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:76:19: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
76 | QUE_STATUS_ADDR = base_ptr_tsu + PORT_1_TSU_TXQUE_STATUS;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:77:13: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
77 | CTRL_ADDR = base_ptr_tsu + PORT_1_TSU_TXCTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:78:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
78 | TSU_DATA_HH_ADDR = base_ptr_tsu + PORT_1_TSU_TXQUE_DATA_HH;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:79:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
79 | TSU_DATA_HL_ADDR = base_ptr_tsu + PORT_1_TSU_TXQUE_DATA_HL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:80:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
80 | TSU_DATA_LH_ADDR = base_ptr_tsu + PORT_1_TSU_TXQUE_DATA_LH;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:81:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
81 | TSU_DATA_LL_ADDR = base_ptr_tsu + PORT_1_TSU_TXQUE_DATA_LL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:84:19: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
84 | QUE_STATUS_ADDR = base_ptr_tsu + PORT_2_TSU_TXQUE_STATUS;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:85:13: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
85 | CTRL_ADDR = base_ptr_tsu + PORT_2_TSU_TXCTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:86:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
86 | TSU_DATA_HH_ADDR = base_ptr_tsu + PORT_2_TSU_TXQUE_DATA_HH;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:87:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
87 | TSU_DATA_HL_ADDR = base_ptr_tsu + PORT_2_TSU_TXQUE_DATA_HL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:88:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
88 | TSU_DATA_LH_ADDR = base_ptr_tsu + PORT_2_TSU_TXQUE_DATA_LH;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:89:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
89 | TSU_DATA_LL_ADDR = base_ptr_tsu + PORT_2_TSU_TXQUE_DATA_LL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:92:19: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
92 | QUE_STATUS_ADDR = base_ptr_tsu + PORT_3_TSU_TXQUE_STATUS;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:93:13: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
93 | CTRL_ADDR = base_ptr_tsu + PORT_3_TSU_TXCTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:94:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
94 | TSU_DATA_HH_ADDR = base_ptr_tsu + PORT_3_TSU_TXQUE_DATA_HH;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:95:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
95 | TSU_DATA_HL_ADDR = base_ptr_tsu + PORT_3_TSU_TXQUE_DATA_HL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:96:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
96 | TSU_DATA_LH_ADDR = base_ptr_tsu + PORT_3_TSU_TXQUE_DATA_LH;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:97:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
97 | TSU_DATA_LL_ADDR = base_ptr_tsu + PORT_3_TSU_TXQUE_DATA_LL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:133:6: warning: unused variable 'checksum_ptp_infor' [-Wunused-variable]
133 | int checksum_ptp_infor = (ptp_infor & 0x0FFF0000) >> 16;
| ^~~~~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:123:15: warning: variable 'ts_sec_h' set but not used [-Wunused-but-set-variable]
123 | unsigned int ts_sec_h, ts_sec_l, ts_nsc, ptp_infor;
| ^~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c: In function 'tsu_rx_get_timestamp':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:157:19: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
157 | QUE_STATUS_ADDR = base_ptr_tsu + PORT_0_TSU_RXQUE_STATUS;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:158:13: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
158 | CTRL_ADDR = base_ptr_tsu + PORT_0_TSU_RXCTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:159:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
159 | TSU_DATA_HH_ADDR = base_ptr_tsu + PORT_0_TSU_RXQUE_DATA_HH;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:160:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
160 | TSU_DATA_HL_ADDR = base_ptr_tsu + PORT_0_TSU_RXQUE_DATA_HL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:161:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
161 | TSU_DATA_LH_ADDR = base_ptr_tsu + PORT_0_TSU_RXQUE_DATA_LH;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:162:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
162 | TSU_DATA_LL_ADDR = base_ptr_tsu + PORT_0_TSU_RXQUE_DATA_LL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:166:19: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
166 | QUE_STATUS_ADDR = base_ptr_tsu + PORT_1_TSU_RXQUE_STATUS;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:167:13: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
167 | CTRL_ADDR = base_ptr_tsu + PORT_1_TSU_RXCTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:168:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
168 | TSU_DATA_HH_ADDR = base_ptr_tsu + PORT_1_TSU_RXQUE_DATA_HH;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:169:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
169 | TSU_DATA_HL_ADDR = base_ptr_tsu + PORT_1_TSU_RXQUE_DATA_HL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:170:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
170 | TSU_DATA_LH_ADDR = base_ptr_tsu + PORT_1_TSU_RXQUE_DATA_LH;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:171:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
171 | TSU_DATA_LL_ADDR = base_ptr_tsu + PORT_1_TSU_RXQUE_DATA_LL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:175:19: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
175 | QUE_STATUS_ADDR = base_ptr_tsu + PORT_2_TSU_RXQUE_STATUS;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:176:13: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
176 | CTRL_ADDR = base_ptr_tsu + PORT_2_TSU_RXCTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:177:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
177 | TSU_DATA_HH_ADDR = base_ptr_tsu + PORT_2_TSU_RXQUE_DATA_HH;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:178:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
178 | TSU_DATA_HL_ADDR = base_ptr_tsu + PORT_2_TSU_RXQUE_DATA_HL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:179:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
179 | TSU_DATA_LH_ADDR = base_ptr_tsu + PORT_2_TSU_RXQUE_DATA_LH;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:180:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
180 | TSU_DATA_LL_ADDR = base_ptr_tsu + PORT_2_TSU_RXQUE_DATA_LL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:184:19: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
184 | QUE_STATUS_ADDR = base_ptr_tsu + PORT_3_TSU_RXQUE_STATUS;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:185:13: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
185 | CTRL_ADDR = base_ptr_tsu + PORT_3_TSU_RXCTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:186:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
186 | TSU_DATA_HH_ADDR = base_ptr_tsu + PORT_3_TSU_RXQUE_DATA_HH;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:187:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
187 | TSU_DATA_HL_ADDR = base_ptr_tsu + PORT_3_TSU_RXQUE_DATA_HL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:188:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
188 | TSU_DATA_LH_ADDR = base_ptr_tsu + PORT_3_TSU_RXQUE_DATA_LH;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:189:20: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
189 | TSU_DATA_LL_ADDR = base_ptr_tsu + PORT_3_TSU_RXQUE_DATA_LL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:228:6: warning: unused variable 'checksum_ptp_infor' [-Wunused-variable]
228 | int checksum_ptp_infor = (ptp_infor & 0x0FFF0000) >> 16;
| ^~~~~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:227:6: warning: unused variable 'msg_id_ptp_infor' [-Wunused-variable]
227 | int msg_id_ptp_infor = (ptp_infor >> 28) & 0xF;
| ^~~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/tsu.c:218:15: warning: variable 'ts_sec_h' set but not used [-Wunused-but-set-variable]
218 | unsigned int ts_sec_h, ts_sec_l, ts_nsc, ptp_infor;
| ^~~~~~~~
[ 62%] Building C object CMakeFiles/pkt_gen_app.dir/tsn_drivers/uio.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/uio.c: In function 'uio_init':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/uio.c:23:13: warning: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
23 | return -1;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/uio.c:32:16: warning: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
32 | return 1;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/uio.c: In function 'switch_rule_uio_init':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/uio.c:48:13: warning: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
48 | return -1;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/uio.c:57:16: warning: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
57 | return 1;
| ^
[ 66%] Building C object CMakeFiles/pkt_gen_app.dir/tsn_drivers/rtc.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/rtc.c: In function 'set_rtc_sync_offset':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/rtc.c:108:1: warning: control reaches end of non-void function [-Wreturn-type]
108 | }
| ^
[ 70%] Building C object CMakeFiles/pkt_gen_app.dir/tsn_drivers/gcl.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c: In function 'get_gcl':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:212:14: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
212 | CTRL_ADDR = base_ptr_gcl + PORT_0_GCL_CTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:216:14: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
216 | CTRL_ADDR = base_ptr_gcl + PORT_1_GCL_CTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:220:14: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
220 | CTRL_ADDR = base_ptr_gcl + PORT_2_GCL_CTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:224:14: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
224 | CTRL_ADDR = base_ptr_gcl + PORT_3_GCL_CTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:207:13: warning: variable 'CTRL_ADDR' set but not used [-Wunused-but-set-variable]
207 | UINTPTR CTRL_ADDR;
| ^~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c: In function 'set_gcl':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:252:14: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
252 | CTRL_ADDR = base_ptr_gcl + PORT_0_GCL_CTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:256:14: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
256 | CTRL_ADDR = base_ptr_gcl + PORT_1_GCL_CTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:260:14: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
260 | CTRL_ADDR = base_ptr_gcl + PORT_2_GCL_CTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:264:14: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
264 | CTRL_ADDR = base_ptr_gcl + PORT_3_GCL_CTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c: In function 'get_gcl_time_interval':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:291:14: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
291 | CTRL_ADDR = base_ptr_gcl + PORT_0_GCL_CTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:295:14: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
295 | CTRL_ADDR = base_ptr_gcl + PORT_1_GCL_CTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:299:14: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
299 | CTRL_ADDR = base_ptr_gcl + PORT_2_GCL_CTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:303:14: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
303 | CTRL_ADDR = base_ptr_gcl + PORT_3_GCL_CTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:286:10: warning: variable 'CTRL_ADDR' set but not used [-Wunused-but-set-variable]
286 | UINTPTR CTRL_ADDR;
| ^~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c: In function 'set_gcl_time_interval':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:333:14: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
333 | CTRL_ADDR = base_ptr_gcl + PORT_0_GCL_CTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:337:14: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
337 | CTRL_ADDR = base_ptr_gcl + PORT_1_GCL_CTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:341:14: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
341 | CTRL_ADDR = base_ptr_gcl + PORT_2_GCL_CTRL;
| ^
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/gcl.c:345:14: warning: assignment to 'UINTPTR' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
345 | CTRL_ADDR = base_ptr_gcl + PORT_3_GCL_CTRL;
| ^
[ 74%] Building C object CMakeFiles/pkt_gen_app.dir/tsn_drivers/gpio_reset.c.o
[ 77%] Building C object CMakeFiles/pkt_gen_app.dir/tsn_drivers/ptp_types.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/ptp_types.c: In function 'print_uscaledns':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/tsn_drivers/ptp_types.c:269:10: warning: assignment to 'uint32_t *' {aka 'unsigned int *'} from incompatible pointer type 'uint64_t *' {aka 'long unsigned int *'} [-Wincompatible-pointer-types]
269 | ns_l = &t.nsec;
| ^
[ 81%] Building C object CMakeFiles/pkt_gen_app.dir/log/log.c.o
[ 85%] Linking C shared library libpkt_gen_app.so
[ 85%] Built target pkt_gen_app
Scanning dependencies of target pkt_gen
[ 88%] Building CXX object CMakeFiles/pkt_gen.dir/pkt_gen_main.cpp.o
[ 92%] Linking CXX executable pkt_gen
[ 92%] Built target pkt_gen
Scanning dependencies of target time_sync
[ 96%] Building C object CMakeFiles/time_sync.dir/time_sync_main.c.o
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync_main.c: In function 'TimeSyncMainLoop':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync_main.c:383:44: warning: passing argument 4 of 'md_pdelay_resp_sm_recv_req' from incompatible pointer type [-Wincompatible-pointer-types]
383 | recv_msg_ptr);
| ^~~~~~~~~~~~
| |
| uint8_t * {aka unsigned char *}
In file included from /home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/state_machines.h:5,
from /home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync_main.c:29:
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_resp_sm.h:41:112: note: expected 'PTPMsgPdelayReq *' {aka 'struct PTPMsgPdelayReq *'} but argument is of type 'uint8_t *' {aka 'unsigned char *'}
41 | void md_pdelay_resp_sm_recv_req(MDPdelayRespSM *sm, UScaledNs ts, TSUTimestamp *tsuTimestamp, PTPMsgPdelayReq *pdelayReqPtr);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync_main.c:389:44: warning: passing argument 4 of 'md_pdelay_req_sm_recv_resp' from incompatible pointer type [-Wincompatible-pointer-types]
389 | recv_msg_ptr);
| ^~~~~~~~~~~~
| |
| uint8_t * {aka unsigned char *}
In file included from /home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/state_machines.h:4,
from /home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync_main.c:29:
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_req_sm.h:65:51: note: expected 'PTPMsgPdelayResp *' {aka 'struct PTPMsgPdelayResp *'} but argument is of type 'uint8_t *' {aka 'unsigned char *'}
65 | PTPMsgPdelayResp *pdelayRespPtr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync_main.c:397:21: warning: passing argument 3 of 'md_pdelay_req_sm_recv_resp_follow_up' from incompatible pointer type [-Wincompatible-pointer-types]
397 | recv_msg_ptr);
| ^~~~~~~~~~~~
| |
| uint8_t * {aka unsigned char *}
In file included from /home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/state_machines.h:4,
from /home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync_main.c:29:
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_pdelay_req_sm.h:68:31: note: expected 'PTPMsgPdelayRespFollowUp *' {aka 'struct PTPMsgPdelayRespFollowUp *'} but argument is of type 'uint8_t *' {aka 'unsigned char *'}
68 | PTPMsgPdelayRespFollowUp *pdelayRespFollowupPtr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync_main.c:403:33: warning: passing argument 4 of 'md_sync_receive_sm_recv_sync' from incompatible pointer type [-Wincompatible-pointer-types]
403 | tsu_ts_ptr, recv_msg_ptr);
| ^~~~~~~~~~~~
| |
| uint8_t * {aka unsigned char *}
In file included from /home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/state_machines.h:13,
from /home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync_main.c:29:
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_receive_sm.h:38:110: note: expected 'PTPMsgSync *' {aka 'struct PTPMsgSync *'} but argument is of type 'uint8_t *' {aka 'unsigned char *'}
38 | void md_sync_receive_sm_recv_sync(MDSyncReceiveSM *sm, UScaledNs ts, TSUTimestamp *tsuTimestamp, PTPMsgSync *sync_msg);
| ~~~~~~~~~~~~^~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync_main.c:408:21: warning: passing argument 3 of 'md_sync_receive_sm_recv_follow_up' from incompatible pointer type [-Wincompatible-pointer-types]
408 | recv_msg_ptr);
| ^~~~~~~~~~~~
| |
| uint8_t * {aka unsigned char *}
In file included from /home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/state_machines.h:13,
from /home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync_main.c:29:
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync/md_sync_receive_sm.h:37:91: note: expected 'PTPMsgFollowUp *' {aka 'struct PTPMsgFollowUp *'} but argument is of type 'uint8_t *' {aka 'unsigned char *'}
37 | void md_sync_receive_sm_recv_follow_up(MDSyncReceiveSM *sm, UScaledNs ts, PTPMsgFollowUp *follow_up_msg);
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync_main.c:377:9: warning: enumeration value 'ANNOUNCE' not handled in switch [-Wswitch]
377 | switch (recv_status) {
| ^~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync_main.c: In function 'main':
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync_main.c:491:5: warning: implicit declaration of function 'reset_PL_by_GPIO' [-Wimplicit-function-declaration]
491 | reset_PL_by_GPIO("960");
| ^~~~~~~~~~~~~~~~
/home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync_main.c:511:32: warning: passing argument 3 of 'pthread_create' from incompatible pointer type [-Wincompatible-pointer-types]
511 | pthread_create(&tid, NULL, DMA_rx_thread, (void *)queue);
| ^~~~~~~~~~~~~
| |
| void * (*)(buffer_queue *) {aka void * (*)(struct <anonymous> *)}
In file included from /home/llm/Ziggo-Device-main/Ziggo-Device-main/Software/time_sync_main.c:16:
/usr/include/pthread.h:200:15: note: expected 'void * (*)(void *)' but argument is of type 'void * (*)(buffer_queue *)' {aka 'void * (*)(struct <anonymous> *)'}
200 | void *(*__start_routine) (void *),
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
[100%] Linking C executable time_sync
/usr/bin/ld: CMakeFiles/time_sync.dir/time_sync_main.c.o: in function `main':
time_sync_main.c:(.text+0x115d): undefined reference to `pthread_create'
/usr/bin/ld: time_sync_main.c:(.text+0x11c4): undefined reference to `pthread_join'
/usr/bin/ld: libpkt_gen_app.so: undefined reference to `pow'
/usr/bin/ld: libpkt_gen_app.so: undefined reference to `floor'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/time_sync.dir/build.make:85: time_sync] Error 1
make[1]: *** [CMakeFiles/Makefile2:107: CMakeFiles/time_sync.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

日志里真正导致构建失败的 3 个问题:
-
pthread_create / pthread_join 未链接
-
pow / floor 未链接
-
reset_PL_by_GPIO 缺少头文件声明,DMA_rx_thread 的函数签名也不符合 pthread_create 标准接口
修改如下:
-
/xxx/Ziggo-Device-main/Ziggo-Device-main/Software-copy/CMakeLists.txt
-
增加 find_package(Threads REQUIRED)
-
去掉把 -lpthread -lm 硬塞进编译 flags 的写法
-
把 DMA_rx_thread 声明改成 void *DMA_rx_thread(void *arg)
-
/xxx/Ziggo-Device-main/Ziggo-Device-main/Software-copy/dma_proxy/dma-proxy.c
-
把线程函数定义改成标准 pthread 入口
-
在函数内部把 arg 转回 buffer_queue *
-
/xxx/Ziggo-Device-main/Ziggo-Device-main/Software-copy/time_sync_main.c
-
补上 #include "tsn_drivers/gpio_reset.h"
这次错误的根因其实主要是构建脚本,不是协议实现本身。日志末尾那几个 undefined reference 都是链接阶段错误,不是源码逻辑错误。