View Single Post
Old 04-05-09, 10:12 PM   #3
gavron
Registered User
 
Join Date: Apr 2008
Posts: 49
Default Re: Unable to compile for kernel 2.6.29

Quote:
Originally Posted by ledoc View Post
Both 180.44 and 185.13 should work with 2.6.29 (at least they do for me).

Maybe your kernel sources/headers are not ok.
Negative.

Past 2.6.29(release) they do not work.

2.6.29gitX require that the offending lines be commented out.

I've done this to get VMware and Nvidia to compile.

Let me be honest. It's been a Formula1 at 0200 weekend and I've drank a lot of Scotch. I don't trust my ability to put together a comprehensive patch. Please accept the diffs below in the stead.

Ehud
gavron@egxps:/usr/local/src$ pwd
/usr/local/src
gavron@egxps:/usr/local/src$ grep -A6 KERNEL_VERSION.*29 NVIDIA-Linux-x86_64-185.13-pkg2/*/*/*/*
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c:#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29))
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- proc_nvidia->owner = THIS_MODULE;
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- proc_nvidia_cards->owner = THIS_MODULE;
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- proc_nvidia_warnings->owner = THIS_MODULE;
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-#endif
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- for (j = 0; j < num_nv_devices; j++)
--
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c:#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29))
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- entry->owner = THIS_MODULE;
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-#endif
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- if (nv_find_pci_capability(dev, PCI_CAP_ID_AGP))
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- {
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- /*
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- * Create the /proc/driver/nvidia/agp/{status,host-bridge,card}
--
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c:#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29))
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- entry->owner = THIS_MODULE;
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-#endif
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- proc_nvidia_agp = entry;
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- entry = create_proc_entry("status", flags, proc_nvidia_agp);
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- if (!entry) {
--
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c:#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29))
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- entry->owner = THIS_MODULE;
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-#endif
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- entry = create_proc_entry("host-bridge", flags, proc_nvidia_agp);
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- if (!entry) {
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- NV_PCI_DEV_PUT(dev);
--
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c:#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29))
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- entry->owner = THIS_MODULE;
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-#endif
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- entry = create_proc_entry("card", flags, proc_nvidia_agp);
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- if (!entry) {
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- NV_PCI_DEV_PUT(dev);
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- goto failed;
--
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c:#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29))
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- entry->owner = THIS_MODULE;
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-#endif
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- }
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- NV_PCI_DEV_PUT(dev);
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- }
--
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c:#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29))
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- entry->owner = THIS_MODULE;
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-#endif
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- entry = create_proc_entry("registry", flags, proc_nvidia);
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- if (!entry)
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- goto failed;
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-
--
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c:#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29))
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- entry->owner = THIS_MODULE;
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-#endif
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- return;
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-failed:
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- nv_printf(NV_DBG_ERRORS, "NVRM: failed to create /proc entries!\n");
--
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c:#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29))
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c- entry->owner = THIS_MODULE;
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-#endif /* below 2.6.29 */
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-#endif
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-}
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-
NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c-#ifdef CONFIG_PROC_FS
gavron is offline   Reply With Quote