ramips: mtk-eip93: fix build with kernel <= 5.10

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2022-03-10 16:54:19 +08:00
parent 906aeaead2
commit 992ebc8aba
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -5,11 +5,18 @@
* Richard van Schagen <vschagen@icloud.com>
*/
#include <linux/version.h>
#include <linux/iversion.h>
#include <crypto/aes.h>
#include <crypto/ctr.h>
#include <crypto/hmac.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)
#include <crypto/sha1.h>
#include <crypto/sha2.h>
#else
#include <crypto/sha.h>
#endif
#include <linux/delay.h>
#include <linux/dma-mapping.h>
#include <linux/scatterlist.h>