2000-11-16 20:50:53

by Rasmus Andersen

[permalink] [raw]
Subject: [uPATCH] Compile error in drivers/net/hamradio/baycom_epp.c (240-t11p5)

Hi.

Recent changes in the kernel has made the patch below necessary:


--- linux-240-t11-pre5-clean/drivers/net/hamradio/baycom_epp.c Sat Nov 4 23:27:07 2000
+++ linux/drivers/net/hamradio/baycom_epp.c Thu Nov 16 20:27:22 2000
@@ -812,10 +812,10 @@
/* --------------------------------------------------------------------- */

#ifdef __i386__
-#define GETTICK(x) \
-({ \
- if (current_cpu_data.x86_capability & X86_FEATURE_TSC) \
- __asm__ __volatile__("rdtsc" : "=a" (x) : : "dx");\
+#define GETTICK(x) \
+({ \
+ if (test_bit(X86_FEATURE_TSC, &current_cpu_data.x86_capability))\
+ __asm__ __volatile__("rdtsc" : "=a" (x) : : "dx"); \
})
#else /* __i386__ */
#define GETTICK(x)

--
Regards,
Rasmus([email protected])

There are two major products that come out of Berkeley: LSD and UNIX. We
don't believe this to be a coincidence. -- Jeremy S. Anderson