DesktopVideo/Linux : build fail with kernel 4.15
Posted: Fri Dec 29, 2017 10:10 pm
Hello everyone,
The linux kernel 4.15 provides moficiations on the timer.
This results in the failure of desktopvideo compilation in the bm_util.c file.
The init_timer function has been removed and the timer_list structure has also been changed.
Does anyone have a solution?
Result of the make:
./usr/src/blackmagic-io-10.9.9a4/bm_util.c:420:2: error: implicit declaration of function 'init_timer'; did you mean 'init_timers'? [= -Werror implicit-function-declaration]
init_timer (timer);
^ ~~~~~~~~~
init_timers
./usr/src/blackmagic-io-10.9.9a4/bm_util.c:421:18: error: assignment from incompatible pointer type [-Werror = incompatible-pointer-types]
timer-> function = (void (*) (unsigned long)) callback;
^
./usr/src/blackmagic-io-10.9.9a4/bm_util.c:422:7: error: 'bm_timer_t {aka struct timer_list}' has no member named 'data'
timer-> data = (long) data;
^ ~
The linux kernel 4.15 provides moficiations on the timer.
This results in the failure of desktopvideo compilation in the bm_util.c file.
The init_timer function has been removed and the timer_list structure has also been changed.
Does anyone have a solution?
Result of the make:
./usr/src/blackmagic-io-10.9.9a4/bm_util.c:420:2: error: implicit declaration of function 'init_timer'; did you mean 'init_timers'? [= -Werror implicit-function-declaration]
init_timer (timer);
^ ~~~~~~~~~
init_timers
./usr/src/blackmagic-io-10.9.9a4/bm_util.c:421:18: error: assignment from incompatible pointer type [-Werror = incompatible-pointer-types]
timer-> function = (void (*) (unsigned long)) callback;
^
./usr/src/blackmagic-io-10.9.9a4/bm_util.c:422:7: error: 'bm_timer_t {aka struct timer_list}' has no member named 'data'
timer-> data = (long) data;
^ ~