From 0dbe8b9029df1c1b254101bacbc20c3418eb956f Mon Sep 17 00:00:00 2001 From: Martin Blumenstingl Date: Sat, 29 Feb 2020 22:38:26 +0100 Subject: [PATCH] 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 --- package/kernel/lantiq/ltq-tapi/patches/010-fix-compile.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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