git: 6eb2dbfa63e8 - main - tcp: add missing static keywords
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 14 Jun 2023 21:22:34 UTC
The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=6eb2dbfa63e87a1cf624a44d97ebab9c9b63a474 commit 6eb2dbfa63e87a1cf624a44d97ebab9c9b63a474 Author: Gleb Smirnoff <glebius@FreeBSD.org> AuthorDate: 2023-06-14 21:21:28 +0000 Commit: Gleb Smirnoff <glebius@FreeBSD.org> CommitDate: 2023-06-14 21:21:28 +0000 tcp: add missing static keywords Without them compilation with -O0 would produce kernel modules that depend on symbol that doesn't exist. --- sys/netinet/tcp_hpts.h | 2 +- sys/netinet/tcp_stacks/tcp_rack.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/netinet/tcp_hpts.h b/sys/netinet/tcp_hpts.h index 086669342bb8..6f4d40897563 100644 --- a/sys/netinet/tcp_hpts.h +++ b/sys/netinet/tcp_hpts.h @@ -192,7 +192,7 @@ tcp_tv_to_lusectick(const struct timeval *sv) extern int32_t tcp_min_hptsi_time; -__inline int32_t +static inline int32_t get_hpts_min_sleep_time(void) { return (tcp_min_hptsi_time + HPTS_TICKS_PER_SLOT); diff --git a/sys/netinet/tcp_stacks/tcp_rack.h b/sys/netinet/tcp_stacks/tcp_rack.h index ac9d759d0628..00906363437d 100644 --- a/sys/netinet/tcp_stacks/tcp_rack.h +++ b/sys/netinet/tcp_stacks/tcp_rack.h @@ -109,13 +109,13 @@ struct deferred_opt_list { * as well. */ -inline uint64_t +static inline uint64_t rack_to_usec_ts(struct timeval *tv) { return ((tv->tv_sec * HPTS_USEC_IN_SEC) + tv->tv_usec); } -inline uint32_t +static inline uint32_t rack_ts_to_msec(uint64_t ts) { return((uint32_t)(ts / HPTS_MSEC_IN_SEC));