Przeglądaj źródła

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 <[email protected]>
Martin Blumenstingl 6 lat temu
rodzic
commit
0dbe8b9029

+ 1 - 1
package/kernel/lantiq/ltq-tapi/patches/010-fix-compile.patch

@@ -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