Skip to content

Commit b3c28b4

Browse files
committed
tracing: fix build error because of conflicting types
1013 | void sys_trace_socket_accept_exit(int sock, const struct sockaddr *addr, const size_t *addrlen, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /__w/zephyr/zephyr/include/zephyr/tracing/tracing.h:22, from /__w/zephyr/zephyr/include/zephyr/kernel.h:6679, from /__w/zephyr/zephyr/subsys/tracing/ctf/ctf_top.c:7: /__w/zephyr/zephyr/subsys/tracing/ctf/./tracing_ctf.h:707:6: note: previous declaration of 'sys_trace_socket_accept_exit' with type 'void(int, const struct sockaddr *, const uint32_t *, int)' {aka 'void(int, const struct sockaddr *, const unsigned int *, int)'} 707 | void sys_trace_socket_accept_exit(int sock, const struct sockaddr *addr, const uint32_t *addrlen, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ninja: build stopped: subcommand failed. Signed-off-by: Jony Zhang <jony.zhang@nxp.com>
1 parent 0047a59 commit b3c28b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/tracing/ctf/ctf_top.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ void sys_trace_socket_accept_enter(int sock)
10101010
ctf_top_socket_accept_enter(sock);
10111011
}
10121012

1013-
void sys_trace_socket_accept_exit(int sock, const struct sockaddr *addr, const size_t *addrlen,
1013+
void sys_trace_socket_accept_exit(int sock, const struct sockaddr *addr, const uint32_t *addrlen,
10141014
int ret)
10151015
{
10161016
ctf_net_bounded_string_t addr_str = {"unknown"};

0 commit comments

Comments
 (0)