Date: Wed, 7 Jul 2021 19:08:44 GMT From: Andrew Gallatin <gallatin@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 0756bdf19c5c - main - ktls: make ktls_disable_ifnet() shim static Message-ID: <202107071908.167J8iXL073953@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by gallatin: URL: https://cgit.FreeBSD.org/src/commit/?id=0756bdf19c5c97fabf4090e844f8df9505fbd566 commit 0756bdf19c5c97fabf4090e844f8df9505fbd566 Author: Andrew Gallatin <gallatin@FreeBSD.org> AuthorDate: 2021-07-07 19:05:49 +0000 Commit: Andrew Gallatin <gallatin@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) { }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107071908.167J8iXL073953>