NVIDIA-Linux-x86_64-390.48 build failed: nvidia.ko uses GPL-only symbol 'mutex_destroy'

On fedora 25 26, after updating today, NVIDIA-Linux-x86_64-384.98 did not rebuild. So I downloaded NVIDIA-Linux-x86_64-390.48 and that did not build either. I have another machine running fedora 26 which was able to install 390. So it appears that the current update of fedora 26 is not compatible with nvidia distributions.

The failing install of 390 is on a machine running f26 with a GTX 960. That install fails with or without DKMS support. Whereas the machine that successfully installed 390 is a laptop running f26 with a Quadro M1200 Mobile.

Build info as follows:

DKMS make.log for nvidia-390.48 for kernel 4.15.17-200.fc26.x86_64+debug (x86_64)
ld -r -o /var/lib/dkms/nvidia/390.48/build/nvidia-modeset/nv-modeset-interface.o /var/lib/dkms/nvidia/390.48/build/nvidia-modeset/nvidia-modeset-linux.o
  LD [M]  /var/lib/dkms/nvidia/390.48/build/nvidia.o
  LD [M]  /var/lib/dkms/nvidia/390.48/build/nvidia-uvm.o
  LD [M]  /var/lib/dkms/nvidia/390.48/build/nvidia-modeset.o
  LD [M]  /var/lib/dkms/nvidia/390.48/build/nvidia-drm.o
  Building modules, stage 2.
  MODPOST 4 modules
FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'mutex_destroy'
make[3]: *** [/usr/src/kernels/4.15.17-200.fc26.x86_64+debug/scripts/Makefile.modpost:92: __modpost] Error 1

I have seen patches for earlier nvidia versions such as https://pastebin.com/cw1tncgm, but they appear to be for earlier kernels.

Please help.

It’s a debug kernel you’re using, that doesn’t work due to gpl symbols. Use a non-debug kernel.

That’s just too simple. But you are correct. I don’t recall when or why I installed a debug kernel, but that was the default one to boot.

Fixed. Thanks.