--- a/crypto/mtk-eip93/eip93-aead.c +++ b/crypto/mtk-eip93/eip93-aead.c @@ -13,8 +13,6 @@ #include #include #include -#include -#include #if IS_ENABLED(CONFIG_CRYPTO_DEV_EIP93_DES) #include @@ -22,6 +20,14 @@ #include #include +#include + +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0) +#include +#else +#include +#include +#endif #include "eip93-aead.h" #include "eip93-cipher.h" --- a/crypto/mtk-eip93/eip93-common.c +++ b/crypto/mtk-eip93/eip93-common.c @@ -8,11 +8,17 @@ #include #include #include -#include -#include #include #include #include +#include + +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0) +#include +#else +#include +#include +#endif #include "eip93-cipher.h" #include "eip93-common.h"