[pkg-nvidia-devel] Bug#540663: [PATCH] Fix conftest.h for 2.6.31-rc7

Raja R Harinath harinath at hurrynot.org
Tue Aug 25 09:06:54 UTC 2009


Package: nvidia-kernel-source
Version: 185.18.36-1

I needed the following patch to conftest.h to compile the module against
Linux 2.6.31-rc7.

- Hari

diff -duprN -x debian -x '.*' -x '[mM]odule*' nvidia-kernel.orig/conftest.h nvidia-kernel/conftest.h
--- nvidia-kernel.orig/conftest.h	2009-08-25 04:41:39.000000000 +0530
+++ nvidia-kernel/conftest.h	2009-08-25 14:16:12.025309839 +0530
@@ -211,3 +211,10 @@
 #else
  #undef NV_LINUX_CRED_H_PRESENT
 #endif
+
+/* does struct agp_memory have a 'pages' field? */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)
+# define NV_AGP_MEMORY_HAS_PAGES
+#else
+# undef NV_AGP_MEMORY_HAS_PAGES
+#endif
Files nvidia-kernel.orig/nv.o and nvidia-kernel/nv.o differ
Files nvidia-kernel.orig/nv-vm.o and nvidia-kernel/nv-vm.o differ





More information about the Pkg-nvidia-devel mailing list