• Shaun Ruffell's avatar
    DAHDI in kernel 4.15: Switch to new timer_setup interface. · 6667f1c8
    Shaun Ruffell authored
    Upstream kernel 4.14, in commit (686fef928bba6b "timer: Prepare to change timer
    callback argument type") [1], introduced the timer_setup interface to replace
    the init_timer/setup_timer interfaces. The primary change is that the timer
    callback functions now follow the standard kernel pattern where the structure
    the callback sits in is passed to the callback instead of storing a pointer to
    an unassociated data type.
    The setup_timer functions were removed in upstream kernel v4.15, and therefore
    this change is needed in order to compile DAHDI for kernels >= 4.15.
    This change follows the same strategy that was done in the kernel to while the
    existing users of setup_timer were migrated to the new interface.
    [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=686fef928bba6b
base.c 84.5 KB