--- linux-2.4.22-gentoo-r4/drivers/char/drm/via_drv.h 2004-01-08 23:56:18.000000000 -0600 +++ linux-2.4.22-gentoo-20040108/drivers/char/drm/via_drv.h 2004-01-17 14:55:14.068075370 -0600 @@ -40,6 +40,8 @@ /*=* [DBG] For RedHat7.3 insert kernel module has unresolved symbol cmpxchg() *=*/ +#if 0 /* this is cmpxchg is defined in drpP.h */ + /* Include this here so that driver can be used with older kernels. */ #ifndef __HAVE_ARCH_CMPXCHG @@ -145,5 +147,6 @@ ((__typeof__(*(ptr)))__cmpxchg((ptr),(unsigned long)(o), \ (unsigned long)(n),sizeof(*(ptr)))) #endif /* i386 & alpha */ -#endif +#endif /* __HAVE_ARCH_CMPXCHG */ +#endif /* 0 */ #endif