ktls: fix NOINET build

Reported by: mjguzik
Sponsored by: Netflix
This commit is contained in:
Andrew Gallatin 2021-07-07 10:38:57 -04:00
parent d7955cc0ff
commit 4150a5a87e

View File

@ -2202,6 +2202,7 @@ ktls_work_thread(void *ctx)
} }
} }
#if defined(INET) || defined(INET6)
static void static void
ktls_disable_ifnet_help(void *context, int pending __unused) ktls_disable_ifnet_help(void *context, int pending __unused)
{ {
@ -2294,3 +2295,4 @@ ktls_disable_ifnet(void *arg)
TASK_INIT(&tls->disable_ifnet_task, 0, ktls_disable_ifnet_help, tls); TASK_INIT(&tls->disable_ifnet_task, 0, ktls_disable_ifnet_help, tls);
(void)taskqueue_enqueue(taskqueue_thread, &tls->disable_ifnet_task); (void)taskqueue_enqueue(taskqueue_thread, &tls->disable_ifnet_task);
} }
#endif