AnsweredAssumed Answered

RAID drivers fail to compile for Ubuntu 18.04 (kernel 4.15)

Question asked by lugeha on Apr 22, 2018
Latest reply on Aug 5, 2019 by w35l3y

init_timer has been deprecated (referenced in rc_init.c and rc_msg.c) and the driver no longer compiles.

 

-----------------------------------------------------------

- building for kernel 4.15.0-15-generic

------------------------------------------------------------

make -C /lib/modules/4.15.0-15-generic/build SUBDIRS=/home/lucas/src/driver_sdk/src modules

make[1]: Entering directory '/usr/src/linux-headers-4.15.0-15-generic'

  CC [M]  /home/lucas/src/driver_sdk/src/rc_init.o

/home/lucas/src/driver_sdk/src/rc_init.c: In function ‘rc_timeout_done’:

/home/lucas/src/driver_sdk/src/rc_init.c:2391:2: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]

  init_timer(&state->rc_timeout);

Outcomes