lkml.org 
[lkml]   [1999]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [2.2.8] undefined reference to `disable_irq_nosync' (+ fix)
On Wed, May 12, 1999 at 01:00:37AM +0200, bvermeul@blackstar.xs4all.nl wrote:
> Hi *,
>
> I got the following error in my make (on ev56 Alpha):
>
> drivers/net/net.a(8390.o): In function `ei_start_xmit':
> 8390.c(.text+0x270): undefined reference to `disable_irq_nosync'
> 8390.c(.text+0x274): undefined reference to `disable_irq_nosync'
> 8390.c(.text+0x300): undefined reference to `disable_irq_nosync'
> 8390.c(.text+0x304): undefined reference to `disable_irq_nosync'
> make: *** [vmlinux] Error 1
>
> I can't seem to find disable_irq_nosync in asm/irq.h, which is where I
> found disable_irq. The version of 8390.c contains disable_irq, and
> changing that back fixes the problem.
>

No, your patch breaks 8390.c on an i386 SMP. I think this one is
correct (BTW the same fix is already in the Arm tree).

Ivan.

--- linux/include/asm-alpha/irq.h.orig Sun Jan 10 20:59:59 1999
+++ linux/include/asm-alpha/irq.h Wed May 12 16:26:21 1999
@@ -91,6 +91,8 @@
return ((irq == 2) ? 9 : irq);
}

+#define disable_irq_nosync(i) disable_irq(i)
+
extern void disable_irq(unsigned int);
extern void enable_irq(unsigned int);

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [from the cache]
©2003-2011 Jasper Spaans