Skip to contentSkip to conversation

Patch: linux-2.4.0-test11-pre5/drivers/net/hamradio compile problems

PATCH Adam J. Richter 1 participant 1 message Nov 16, 2000 Network drivers

lore
Share & tools
lore
#0 lore raw
	linux-2.4.0-test11-pre5/drivers/net/hamradio/baycomm_epp.c and

linux-2.4.0-test11-pre5/drivers/net/hamradio/soundmodem.h refer to current_cpu.x86_capability, which has changed from an integer to an array, causing compile errors in these files. Here is a proposed patch. Thomas, will you handle feeding these patches to Linus if they look good, or do you want me to?

Adam J. Richter     __     ______________   4880 Stevens Creek Blvd, Suite 104
[email protected]     \ /                  San Jose, California 95129-1034
+1 408 261-6630         | g g d r a s i l   United States of America

fax +1 408 261-6631 "Free Software For The Rest Of Us."

drivers/net/hamradio/baycom_epp.c +1 -1
@@ -814,7 +814,7 @@
 #ifdef __i386__
 #define GETTICK(x)                                                \
 ({                                                                \
-	if (current_cpu_data.x86_capability & X86_FEATURE_TSC)    \
+	if (test_bit(X86_FEATURE_TSC, &current_cpu_data.x86_capability))    \
 		__asm__ __volatile__("rdtsc" : "=a" (x) : : "dx");\
 })
 #else /* __i386__ */
drivers/net/hamradio/soundmodem/sm.h +1 -1
@@ -299,7 +299,7 @@
 
 #ifdef __i386__
 
-#define HAS_RDTSC (current_cpu_data.x86_capability & X86_FEATURE_TSC)
+#define HAS_RDTSC (test_bit(X86_FEATURE_TSC, &current_cpu_data.x86_capability))
 
 /*
  * only do 32bit cycle counter arithmetic; we hope we won't overflow.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/