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
This commit is contained in:
Warner Losh 2022-01-11 16:43:18 -07:00
parent 5022c68732
commit 8bb9cd271e

View File

@ -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