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

quick fix for building nvidia xfree4 drivers on kernel 2.4.0-test11



insert these four lines into a top-level include-file (i.e nvtypes.h or nv.h):

#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) {}

..that's it
This will probably not work with multicard systems, and should be
properly fixed by nvidia, since the functions/macros will probably not be present in future kernels.




Reply to: