Driver 390.77 not compiling in kernel 4.18-rc5 xubuntu 18.04

Running xubuntu 18.04

FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol ‘__put_devmap_managed_page’
scripts/Makefile.modpost:92: recipe for target ‘__modpost’ failed
make[2]: *** [__modpost] Error 1
Makefile:1503: recipe for target ‘modules’ failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-4.18.0-041800rc5-generic’
Makefile:79: recipe for target ‘modules’ failed
make: *** [modules] Error 2

After doing some searching this is an issue with the 4.18 kernel with a patch here

https://patchwork.kernel.org/patch/10473337/