Re: pre-2.3.4..

David S. Miller (davem@redhat.com)
Thu, 27 May 1999 21:31:15 -0700


Date: Thu, 27 May 1999 23:47:36 -0400
From: Horst von Brand <vonbrand@sleipnir.valparaiso.cl>

It screams in network/{core,ethernet,sched,ipv4,net_init}.o about
local_bh_{en,dis}able not being defined on linking.

i586, egcs-19990524 (2.95 prerelease), binutils-2.9.1.0.24, glibc-2.1.1pre3

You can tell how much most of us use non-SMP kernels :-)
This should fix it:

--- include/asm-i386/softirq.h.~1~ Wed May 26 19:17:54 1999
+++ include/asm-i386/softirq.h Thu May 27 21:30:01 1999
@@ -91,6 +91,9 @@
local_bh_count[smp_processor_id()]--;
}

+#define local_bh_disable() (local_bh_count[smp_processor_id()]++)
+#define local_bh_enable() (local_bh_count[smp_processor_id()]--)
+
/* These are for the irq's testing the lock */
#define softirq_trylock(cpu) (local_bh_count[cpu] ? 0 : (local_bh_count[cpu]=1))
#define softirq_endlock(cpu) (local_bh_count[cpu] = 0)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/