smc91x: fix compilation on SMP
Subsystems (2)
PATCH 1/1 smc91x: fix compilation on SMP
Signed-off-by Alexey Dobriyan <[email protected]>
---
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)
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
Signed-off-by Alexey Dobriyan <[email protected]>---
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)
From: Alexey Dobriyan <[email protected]>
Date: Wed, 26 Aug 2009 12:55:26 +0400
Quoted 1 line
Signed-off-by Alexey Dobriyan <[email protected]>
Applied, thanks. :-/