FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol ‘__cachemode2pte_tbl’
Found this commit kernel/git/torvalds/linux.git - Linux kernel source tree, sure enough ‘__cachemode2pte_tbl’ is exported GPL only. Easily circumvented with a kernel patch but since driver is proprietary I don’t think there’s much we can do except wait for nvidia to fix.
I managed to make 346.22 work on 3.19-rc1 kernel. I changed f_dentry to f_path.dentry in nv.c and nv-frontend.c files. And the GPL problem I managed to get over by changing MODULE_LICENSE(“NVIDIA”); to MODULE_LICENSE(“GPL”); in the same files.
As I said before circumventing GPL-only symbols is trivial, a true fix would either be an update from Nvidia that removes use of that symbol or kernel changes for that symbol since non-GPL modules use it.