diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2020-02-29 22:38:26 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2020-03-16 22:28:16 +0100 |
commit | 0dbe8b9029df1c1b254101bacbc20c3418eb956f (patch) | |
tree | d55e4f4acb04553617e0ffc9b6895e4904cefc13 /package | |
parent | 588d574eb9ce7198873439d8f6cffd2e336b0417 (diff) | |
download | upstream-0dbe8b9029df1c1b254101bacbc20c3418eb956f.tar.gz upstream-0dbe8b9029df1c1b254101bacbc20c3418eb956f.tar.bz2 upstream-0dbe8b9029df1c1b254101bacbc20c3418eb956f.zip |
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 <martin.blumenstingl@googlemail.com>
Diffstat (limited to 'package')
-rw-r--r-- | package/kernel/lantiq/ltq-tapi/patches/010-fix-compile.patch | 2 |
1 files changed, 1 insertions, 1 deletions
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 <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 |