I saw the same problem. Similar discussion can be found: https://devtalk.nvidia.com/default/topic/1026876/patch-for-387-34-and- linux-4-15-0-rc1/ .
I tested a similar fix and was able to get the kernel module built and running. My fix attached. ** Attachment added: "fix-for-4.15-timer-change" https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/1751147/+attachment/5060872/+files/fix-for-4.15-timer-change -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to nvidia-graphics-drivers-304 in Ubuntu. https://bugs.launchpad.net/bugs/1751147 Title: nvidia-304 kernel module failed to build with new bionic kernel [error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’?] To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/1751147/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp