aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2021-07-07 19:05:49 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2021-07-07 19:08:13 +0000
commit0756bdf19c5c97fabf4090e844f8df9505fbd566 (patch)
treed0b019eeecdb4d9a1888685124fc21c1b291732d /sys
parent0add3c9945c85c7f766f9225866e99e2a805819b (diff)
downloadsrc-0756bdf19c5c97fabf4090e844f8df9505fbd566.tar.gz
src-0756bdf19c5c97fabf4090e844f8df9505fbd566.zip
ktls: make ktls_disable_ifnet() shim static
A user reported that when compiling without KERN_TLS, and with -O0, the kernel failed to link due to ktls_disable_ifnet() being undefined. Making the shim static works around this issue. Reported by: Gary Jennejohn Sponsored by: Netflix
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/ktls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/ktls.h b/sys/sys/ktls.h
index 7fd8831878b4..a4156eb10395 100644
--- a/sys/sys/ktls.h
+++ b/sys/sys/ktls.h
@@ -238,7 +238,7 @@ extern unsigned int ktls_ifnet_max_rexmit_pct;
void ktls_disable_ifnet(void *arg);
#else
#define ktls_ifnet_max_rexmit_pct 1
-inline void
+static inline void
ktls_disable_ifnet(void *arg __unused)
{
}