Skip to contentSkip to conversation

smc91x: fix compilation on SMP

PATCH Applied Alexey Dobriyan 3 participants 3 messages Aug 26, 2009

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

PATCH 1/1 smc91x: fix compilation on SMP

---

 drivers/net/smc91x.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/smc91x.c +1 -1
@@ -531,7 +531,7 @@ static inline void  smc_rcv(struct net_device *dev)
 		local_irq_restore(flags);				\
 	__ret;								\
 })
-#define smc_special_lock(lock, flags)		spin_lock_irq(lock, flags)
+#define smc_special_lock(lock, flags)		spin_lock_irqsave(lock, flags)
 #define smc_special_unlock(lock, flags) 	spin_unlock_irqrestore(lock, flags)
 #else
 #define smc_special_trylock(lock, flags)	(1)
#1 lore raw

Hi Alexey,

Thanks for you correct me. :-)

For "smc91x", I just compile it on an old linux version, and merge the changes to the latest linux for creating a patch.
I think it must be OK, so I didn't compile the patch on the latest linux.

I'm so sorry for my careless.

Dongdong

Quoted 17 lines · Alexey Dobriyan

---

 drivers/net/smc91x.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/smc91x.c +1 -1
@@ -531,7 +531,7 @@ static inline void  smc_rcv(struct net_device *dev)
 		local_irq_restore(flags);				\
 	__ret;								\
 })
-#define smc_special_lock(lock, flags)		spin_lock_irq(lock, flags)
+#define smc_special_lock(lock, flags)		spin_lock_irqsave(lock, flags)
 #define smc_special_unlock(lock, flags) 	spin_unlock_irqrestore(lock, flags)
 #else
 #define smc_special_trylock(lock, flags)	(1)