0 Replies Latest reply on Apr 22, 2018 1:38 AM by lugeha

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

    lugeha

      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);