In file included from /usr/src/sys/kern/compat_stub.c:48:0: /usr/src/sys/netinet/sctp_asconf.h:39:59: error: 'struct sctp_nets' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] extern void sctp_asconf_cleanup(struct sctp_tcb *, struct sctp_nets *); ^~~~~~~~~ /usr/src/sys/netinet/sctp_asconf.h:39:40: error: 'struct sctp_tcb' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] extern void sctp_asconf_cleanup(struct sctp_tcb *, struct sctp_nets *); ^~~~~~~~ /usr/src/sys/netinet/sctp_asconf.h:41:48: error: 'struct sctp_tcb' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] extern struct mbuf *sctp_compose_asconf(struct sctp_tcb *); ^~~~~~~~ /usr/src/sys/netinet/sctp_asconf.h:44:28: error: 'struct sctp_nets' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] struct sctp_tcb *, struct sctp_nets *); ^~~~~~~~~ /usr/src/sys/netinet/sctp_asconf.h:44:9: error: 'struct sctp_tcb' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] struct sctp_tcb *, struct sctp_nets *); ^~~~~~~~ /usr/src/sys/netinet/sctp_asconf.h:43:68: error: 'struct sctp_asconf_chunk' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] extern void sctp_handle_asconf(struct mbuf *, unsigned int, struct sctp_asconf_chunk *, ^~~~~~~~~~~~~~~~~ /usr/src/sys/netinet/sctp_asconf.h:47:60: error: 'struct sctp_nets' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] struct sctp_asconf_ack_chunk *, struct sctp_tcb *, struct sctp_nets *); ^~~~~~~~~ /usr/src/sys/netinet/sctp_asconf.h:47:41: error: 'struct sctp_tcb' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] struct sctp_asconf_ack_chunk *, struct sctp_tcb *, struct sctp_nets *); ^~~~~~~~ /usr/src/sys/netinet/sctp_asconf.h:47:9: error: 'struct sctp_asconf_ack_chunk' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] struct sctp_asconf_ack_chunk *, struct sctp_tcb *, struct sctp_nets *); ^~~~~~~~~~~~~~~~~~~~~ /usr/src/sys/netinet/sctp_asconf.h:49:66: error: 'struct sockaddr' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] extern uint32_t sctp_addr_mgmt_ep_sa(struct sctp_inpcb *, struct sockaddr *, ^~~~~~~~ /usr/src/sys/netinet/sctp_asconf.h:49:45: error: 'struct sctp_inpcb' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] extern uint32_t sctp_addr_mgmt_ep_sa(struct sctp_inpcb *, struct sockaddr *, ^~~~~~~~~~ /usr/src/sys/netinet/sctp_asconf.h:57:9: error: 'struct sockaddr' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] struct sockaddr *); ^~~~~~~~ /usr/src/sys/netinet/sctp_asconf.h:56:54: error: 'struct sctp_tcb' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] extern int32_t sctp_set_primary_ip_address_sa(struct sctp_tcb *, ^~~~~~~~ /usr/src/sys/netinet/sctp_asconf.h:62:9: error: 'struct sockaddr' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] struct sockaddr *, uint16_t, uint16_t, uint16_t, uint16_t); ^~~~~~~~ /usr/src/sys/netinet/sctp_asconf.h:61:44: error: 'struct sctp_tcb' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] extern void sctp_check_address_list(struct sctp_tcb *, struct mbuf *, int, int, ^~~~~~~~ cc1: all warnings being treated as errors Index: sys/netinet/sctp_asconf.h =================================================================== RCS file: /cvsroot/src/sys/netinet/sctp_asconf.h,v retrieving revision 1.1 diff -u -r1.1 sctp_asconf.h --- sys/netinet/sctp_asconf.h 13 Oct 2015 21:28:35 -0000 1.1 +++ sys/netinet/sctp_asconf.h 23 Feb 2019 11:30:40 -0000 @@ -36,6 +36,13 @@ #if defined(_KERNEL) +struct sctp_tcb; +struct sctp_nets; +struct sctp_asconf_chunk; +struct sockaddr; +struct sctp_inpcb; +struct sctp_asconf_ack_chunk; + extern void sctp_asconf_cleanup(struct sctp_tcb *, struct sctp_nets *); extern struct mbuf *sctp_compose_asconf(struct sctp_tcb *);