git: 0756bdf19c5c - main - ktls: make ktls_disable_ifnet() shim static

Andrew Gallatin gallatin at FreeBSD.org
Wed Jul 7 19:08:44 UTC 2021


The branch main has been updated by gallatin:

URL: https://cgit.FreeBSD.org/src/commit/?id=0756bdf19c5c97fabf4090e844f8df9505fbd566

commit 0756bdf19c5c97fabf4090e844f8df9505fbd566
Author:     Andrew Gallatin <gallatin at FreeBSD.org>
AuthorDate: 2021-07-07 19:05:49 +0000
Commit:     Andrew Gallatin <gallatin at FreeBSD.org>
CommitDate: 2021-07-07 19:08:13 +0000

    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
---
 sys/sys/ktls.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
 {
 }


More information about the dev-commits-src-main mailing list