Skip to contentSkip to conversation

sk_mca.c: fix linker error

PATCH In review Vinay K Nallamothu 2 participants 3 messages Aug 23, 2003 – Aug 24, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sk_mca.c: fix linker error

Hi,

This patch fixes the following linker error due to a typo:

*** Warning: "spin_lock_irqrestore" [drivers/net/sk_mca.ko] undefined!

drivers/net/sk_mca.c +1 -1
@@ -280,7 +280,7 @@
 
 	/* reenable interrupts */
 
-	spin_lock_irqrestore(&priv->lock, flags);
+	spin_unlock_irqrestore(&priv->lock, flags);
 }
 
 /* get LANCE register */
#1 lore raw
Quoted 5 lines · Vinay K Nallamothu

Hi,

This patch fixes the following linker error due to a typo:

*** Warning: "spin_lock_irqrestore" [drivers/net/sk_mca.ko] undefined!

Oops. missed out few more. Here is the updated patch.

drivers/net/sk_mca.c +3 -3
@@ -280,7 +280,7 @@
 
 	/* reenable interrupts */
 
-	spin_lock_irqrestore(&priv->lock, flags);
+	spin_unlock_irqrestore(&priv->lock, flags);
 }
 
 /* get LANCE register */
@@ -319,7 +319,7 @@
 
 	/* reenable interrupts */
 
-	spin_lock_irqrestore(&priv->lock, flags);
+	spin_unlock_irqrestore(&priv->lock, flags);
 
 	return res;
 }
@@ -993,7 +993,7 @@
 	if (priv->txbusy == 0)
 		SetLANCE(dev, LANCE_CSR0, CSR0_INEA | CSR0_TDMD);
 
-	spin_lock_irqrestore(&priv->lock, flags);
+	spin_unlock_irqrestore(&priv->lock, flags);
 
       tx_done:
 
#2 lore raw
Quoted 7 lines · On 23 Aug 2003 19:15:15 +0530 Vinay K Nallamothu <[email protected]>…
Quoted 5 lines · Vinay K Nallamothu

Hi,

This patch fixes the following linker error due to a typo:

*** Warning: "spin_lock_irqrestore" [drivers/net/sk_mca.ko] undefined!

Oops. missed out few more. Here is the updated patch.

Aplied, thanks.