git: 8bb9cd271eb4 - main - stand: Fix KASSERT use

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 11 Jan 2022 23:47:26 UTC
The branch main has been updated by imp:

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

commit 8bb9cd271eb4bed19ff8e332efaa127bfad2c42c
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-01-11 23:43:18 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-01-11 23:43:18 +0000

    stand: Fix KASSERT use
    
    Explicitly include sys/systm.h to pull in KASSERT.
    
    Sponsored by:           Netflix
    Reviewed by:            jhb
    Differential Revision:  https://reviews.freebsd.org/D33855
---
 sys/opencrypto/xform_aes_xts.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/opencrypto/xform_aes_xts.c b/sys/opencrypto/xform_aes_xts.c
index cc3f1127d1b8..eda17780db98 100644
--- a/sys/opencrypto/xform_aes_xts.c
+++ b/sys/opencrypto/xform_aes_xts.c
@@ -51,6 +51,7 @@
 __FBSDID("$FreeBSD$");
 
 #include <sys/types.h>
+#include <sys/systm.h>
 #include <opencrypto/xform_enc.h>
 
 static	int aes_xts_setkey(void *, const uint8_t *, int);
@@ -87,10 +88,8 @@ aes_xts_reinit(void *key, const uint8_t *iv, size_t ivlen)
 	uint64_t blocknum;
 	u_int i;
 
-#ifndef _STANDALONE
 	KASSERT(ivlen == sizeof(blocknum),
 	    ("%s: invalid IV length", __func__));
-#endif
 
 	/*
 	 * Prepare tweak as E_k2(IV). IV is specified as LE representation