From: Martin Blumenstingl Date: Sat, 29 Feb 2020 21:38:26 +0000 (+0100) Subject: lantiq: ltq-tapi: fix compilation with newer Linux kernels X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0dbe8b9029df1c1b254101bacbc20c3418eb956f;p=oweals%2Fopenwrt.git lantiq: ltq-tapi: fix compilation with newer Linux kernels Compiling the ltq-tapi driver against Linux 5.4 results in a compile error complaining that the size of struct sched_param is not known. Switch the existing "sched/types.h" include to reference include/uapi/linux/sched/types.h to fix compilation against Linux 5.4. Signed-off-by: Martin Blumenstingl --- diff --git a/package/kernel/lantiq/ltq-tapi/patches/010-fix-compile.patch b/package/kernel/lantiq/ltq-tapi/patches/010-fix-compile.patch index 051e25d3ad..0407b38b6f 100644 --- a/package/kernel/lantiq/ltq-tapi/patches/010-fix-compile.patch +++ b/package/kernel/lantiq/ltq-tapi/patches/010-fix-compile.patch @@ -6,7 +6,7 @@ #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)) + #include -+ #include ++ #include +#endif #undef CONFIG_DEVFS_FS #ifndef UTS_RELEASE