Package: nvidia-kernel-source Version: 1.0.8776-4 Severity: normal Tags: patch
Hi, Trying to build the nvidia driver for 2.6.23.8 results in a number of compilation errors. The following patch fixes that problem (note I'm just trying to satisfy the compiler without really knowing what the effects are :-) It seems to work, though). Cheers, MB -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (920, 'stable'), (900, 'stable'), (500, 'MB'), (400, 'testing'), (200, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.22.6 Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages nvidia-kernel-source depends on: ii debhelper 5.0.42 helper programs for debian/rules ii dpatch 2.0.21 patch maintenance system for Debia ii make 3.81-2 The GNU version of the "make" util ii sed 4.1.5-1 The GNU sed stream editor Versions of packages nvidia-kernel-source recommends: ii devscripts 2.9.26 Scripts to make the life of a Debi ii kernel-package 10.067 A utility for building Linux kerne ii nvidia-glx 1.0.8776-4 NVIDIA binary XFree86 4.x driver -- debconf-show failed
diff -ru nvidia-kernel.orig/nv/nv-linux.h nvidia-kernel/nv/nv-linux.h --- nvidia-kernel.orig/nv/nv-linux.h 2007-01-05 05:51:29.000000000 +0100 +++ nvidia-kernel/nv/nv-linux.h 2007-11-26 10:18:45.000000000 +0100 @@ -509,7 +509,7 @@ #define NV_KMEM_CACHE_CREATE(kmem_cache, name, type) \ { \ kmem_cache = kmem_cache_create(name, sizeof(type), \ - 0, 0, NULL, NULL); \ + 0, 0, NULL); \ } #define NV_KMEM_CACHE_DESTROY(kmem_cache) \ diff -ru nvidia-kernel.orig/nv/nv.c nvidia-kernel/nv/nv.c --- nvidia-kernel.orig/nv/nv.c 2007-01-05 05:51:29.000000000 +0100 +++ nvidia-kernel/nv/nv.c 2007-11-26 10:55:24.000000000 +0100 @@ -99,7 +99,7 @@ int nv_use_cpa = 1; #endif -static kmem_cache_t *nv_pte_t_cache = NULL; +static void *nv_pte_t_cache = NULL; // allow an easy way to convert all debug printfs related to events // back and forth between 'info' and 'errors' @@ -1453,8 +1453,7 @@ if (apm_nv_dev[i] != NULL) pm_unregister(apm_nv_dev[i]); #endif - if (unregister_chrdev(nv_major, "nvidia") < 0) - nv_printf(NV_DBG_ERRORS, "NVRM: unregister nv chrdev failed\n"); + unregister_chrdev(nv_major, "nvidia"); for (i = 0; i < num_nv_devices; i++) { @@ -1478,8 +1477,7 @@ nv_printf(NV_DBG_INFO, "NVRM: nvidia_exit_module\n"); - if (unregister_chrdev(nv_major, "nvidia") < 0) - nv_printf(NV_DBG_ERRORS, "NVRM: unregister nv chrdev failed\n"); + unregister_chrdev(nv_major, "nvidia"); for (i = 0; i < num_nv_devices; i++) {