diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2017-11-13 22:18:00 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-02-20 19:25:17 +0100 |
commit | 73ba5e11f7582967f5151f5a3cb27932b47f44fa (patch) | |
tree | 0241af7a006b080d82645c31d23115c1ad3b98b4 /package/kernel/lantiq/ltq-adsl-mei | |
parent | f8a6987cd1aae8698062c8ac3907193a5c66004a (diff) | |
download | upstream-73ba5e11f7582967f5151f5a3cb27932b47f44fa.tar.gz upstream-73ba5e11f7582967f5151f5a3cb27932b47f44fa.tar.bz2 upstream-73ba5e11f7582967f5151f5a3cb27932b47f44fa.zip |
lantiq: fix lantiq applications kernel 4.14 compatiblity
This is fixing multiple compile problems with kernel 4.14 and updates the
code to take care of changes introduced between kernel 4.9 and 4.14.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'package/kernel/lantiq/ltq-adsl-mei')
-rw-r--r-- | package/kernel/lantiq/ltq-adsl-mei/src/ifxmips_mei_interface.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-adsl-mei/src/ifxmips_mei_interface.h b/package/kernel/lantiq/ltq-adsl-mei/src/ifxmips_mei_interface.h index 1098b2b793..dc9f1c241b 100644 --- a/package/kernel/lantiq/ltq-adsl-mei/src/ifxmips_mei_interface.h +++ b/package/kernel/lantiq/ltq-adsl-mei/src/ifxmips_mei_interface.h @@ -111,7 +111,11 @@ static inline long ugly_hack_sleep_on_timeout(wait_queue_head_t *q, long timeout) { unsigned long flags; +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0)) + wait_queue_entry_t wait; +#else wait_queue_t wait; +#endif init_waitqueue_entry(&wait, current); |