lantiq: ltq-tapi: fix compilation with newer Linux kernels
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sat, 29 Feb 2020 21:38:26 +0000 (22:38 +0100)
committerMathias Kresin <dev@kresin.me>
Mon, 16 Mar 2020 21:28:16 +0000 (22:28 +0100)
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 <martin.blumenstingl@googlemail.com>
package/kernel/lantiq/ltq-tapi/patches/010-fix-compile.patch

index 051e25d3add8a5bf90b35f89a468f7c4ca50c18c..0407b38b6fdfd9154418137380c112d3d40070b2 100644 (file)
@@ -6,7 +6,7 @@
     #include <linux/sched.h>
 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0))
 +   #include <linux/sched/signal.h>
-+   #include <linux/sched/types.h>
++   #include <uapi/linux/sched/types.h>
 +#endif
     #undef   CONFIG_DEVFS_FS
     #ifndef UTS_RELEASE