git: fb259f62bbf7 - main - sctp: unbreak congestion control dtrace support
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Aug 2023 13:05:41 UTC
The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=fb259f62bbf75e9aa64eab13e20e075ec25465ed commit fb259f62bbf75e9aa64eab13e20e075ec25465ed Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2023-08-18 13:01:35 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2023-08-18 13:01:35 +0000 sctp: unbreak congestion control dtrace support Fix a typo and improve consistency of handling variables only used when compiling with dtrace support. MFC after: 1 week --- sys/netinet/sctp_cc_functions.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/netinet/sctp_cc_functions.c b/sys/netinet/sctp_cc_functions.c index 1e515a9d69e3..adcce72060f2 100644 --- a/sys/netinet/sctp_cc_functions.c +++ b/sys/netinet/sctp_cc_functions.c @@ -52,7 +52,7 @@ #define SHIFT_MPTCP_MULTI_Z 16 #define SHIFT_MPTCP_MULTI 8 -#ifdef KDTRACE_HOOOKS +#ifdef KDTRACE_HOOKS #define __dtrace #else #define __dtrace __unused @@ -1403,11 +1403,7 @@ static void sctp_set_rtcc_initial_cc_param(struct sctp_tcb *stcb, struct sctp_nets *net) { -#ifdef KDTRACE_HOOOKS - uint64_t vtag, probepoint; -#else - uint64_t vtag __unused, probepoint __unused; -#endif + uint64_t vtag __dtrace, probepoint __dtrace; sctp_set_initial_cc_param(stcb, net); stcb->asoc.use_precise_time = 1;