From d6e506eaaaef857c440e120bb6bea97773ce48c2 Mon Sep 17 00:00:00 2001 From: Martin Blumenstingl Date: Mon, 21 Mar 2022 20:05:27 +0100 Subject: [PATCH] kernel: ltq-deu: Fix compilation with Linux 5.15 struct of_device_id is not implicitly included anymore. Include to fix compilation on Linux 5.15. Also upstream commit a24d22b225ce15 ("crypto: sha - split sha.h into sha1.h and sha2.h") from Linux 5.11 moves functionality from sha.h to sha1.h. Signed-off-by: Martin Blumenstingl --- package/kernel/lantiq/ltq-deu/src/ifxmips_deu.c | 1 + package/kernel/lantiq/ltq-deu/src/ifxmips_sha1.c | 5 +++++ package/kernel/lantiq/ltq-deu/src/ifxmips_sha1_hmac.c | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/package/kernel/lantiq/ltq-deu/src/ifxmips_deu.c b/package/kernel/lantiq/ltq-deu/src/ifxmips_deu.c index a102568f97..096b8b5bba 100644 --- a/package/kernel/lantiq/ltq-deu/src/ifxmips_deu.c +++ b/package/kernel/lantiq/ltq-deu/src/ifxmips_deu.c @@ -46,6 +46,7 @@ #include #endif #include +#include #include #include #include diff --git a/package/kernel/lantiq/ltq-deu/src/ifxmips_sha1.c b/package/kernel/lantiq/ltq-deu/src/ifxmips_sha1.c index a20430c448..0e860b9ab5 100644 --- a/package/kernel/lantiq/ltq-deu/src/ifxmips_sha1.c +++ b/package/kernel/lantiq/ltq-deu/src/ifxmips_sha1.c @@ -43,7 +43,12 @@ #include #include #include +#include +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,11,0) #include +#else +#include +#endif #include #include #include diff --git a/package/kernel/lantiq/ltq-deu/src/ifxmips_sha1_hmac.c b/package/kernel/lantiq/ltq-deu/src/ifxmips_sha1_hmac.c index 69504efe93..b58a91a5df 100644 --- a/package/kernel/lantiq/ltq-deu/src/ifxmips_sha1_hmac.c +++ b/package/kernel/lantiq/ltq-deu/src/ifxmips_sha1_hmac.c @@ -44,7 +44,12 @@ #include #include #include +#include +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,11,0) #include +#else +#include +#endif #include #include #include -- 2.30.2