From 8bb9cd271eb4bed19ff8e332efaa127bfad2c42c Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 11 Jan 2022 16:43:18 -0700 Subject: [PATCH] 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 cc3f1127d1b..eda17780db9 100644 --- a/sys/opencrypto/xform_aes_xts.c +++ b/sys/opencrypto/xform_aes_xts.c @@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$"); #include +#include #include 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