[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

nvidia-kernel-driver and 2.4.0-final

Hi folks,

I have trouble compiling the nvidia kernel driver with the latest linux
kernel 2.4-final on i386. I modified as suggested ealier in december on
this list, nvtypes.h to include the macros:

/* Begin mod */
#define mem_map_inc_count(p) atomic_inc(&(p->count))
#define mem_map_dec_count(p) atomic_dec(&(p->count))
static inline unsigned long get_module_symbol(char *unused1,
                                              char *unused2)
{ return 0; }
static inline void put_module_symbol(unsigned long unused) {}
/* End mod */

But now I get the following compiler errors:

make[2]: Entering directory `/usr/src/modules/nvidia-kernel'
cc -c -Wall -Wunknown-pragmas -Wno-multichar -O  -D__KERNEL__ -DMODULE
-I/usr/src/linux/include nv.c
In file included from nv.c:52:
nv.h:131: warning: #warning This driver is not officially supported on
post-2.2 kernels
nv.c:853: unknown field `unmap' specified in initializer
nv.c:853: warning: initialization from incompatible pointer type
make[2]: *** [nv.o] Error 1
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel'
make[1]: *** [build-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
Module /usr/src/modules/nvidia-kernel failed.

Please help


Reply to: