git: f6459a7aa870 - main - opencrypto/cryptodev.h: Add includes to make more self-contained.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 25 Jan 2022 23:21:59 UTC
The branch main has been updated by jhb:

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

commit f6459a7aa870a3f9a98e361c1fe2905b9438479c
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-01-25 23:20:46 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-01-25 23:20:46 +0000

    opencrypto/cryptodev.h: Add includes to make more self-contained.
    
    Reviewed by:    markj, emaste
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D34021
---
 sys/opencrypto/cryptodev.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/opencrypto/cryptodev.h b/sys/opencrypto/cryptodev.h
index b2eb01566f4f..3eef1aada2a7 100644
--- a/sys/opencrypto/cryptodev.h
+++ b/sys/opencrypto/cryptodev.h
@@ -70,6 +70,8 @@
 #ifdef _KERNEL
 #include <opencrypto/_cryptodev.h>
 #include <sys/_task.h>
+#include <sys/libkern.h>
+#include <sys/time.h>
 #endif
 
 /* Some initial values */
@@ -603,7 +605,9 @@ const struct crypto_session_params *crypto_get_params(
 const struct auth_hash *crypto_auth_hash(const struct crypto_session_params *csp);
 const struct enc_xform *crypto_cipher(const struct crypto_session_params *csp);
 
+#ifdef MALLOC_DECLARE
 MALLOC_DECLARE(M_CRYPTO_DATA);
+#endif
 
 int	crypto_newsession(crypto_session_t *cses,
     const struct crypto_session_params *params, int crid);