Fix lockdep warning
PATCH 3/3 Fix lockdep warning
use correct dynamic spinlock init function.
Signed-off-by Karsten Keil <[email protected]>
--- drivers/isdn/mISDN/tei.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/isdn/mISDN/tei.c +1 -1
@@ -1287,7 +1287,7 @@ create_teimanager(struct mISDNdevice *dev)if (!mgr)return -ENOMEM ;INIT_LIST_HEAD (&mgr->layer2); - mgr->lock =__RW_LOCK_UNLOCKED (mgr->lock); +rwlock_init (&mgr->lock);skb_queue_head_init (&mgr->sendq); mgr->nextid =1 ; mgr->lastid =MISDN_ID_NONE ;
Signature · 1 line
1.5.6.4
Quoted 3 lines · On Wed, 6 Aug 2008 15:30:31 +0200 (CEST) Karsten Keil wrote:
use correct dynamic spinlock init function.
Signed-off-by Karsten Keil <[email protected]>
Hi,
It would be a Really Good Thing if we could look at the subject line and see that this is for an ISDN driver instead of something else, like even the general lockdep framework.
The Perfect Patch (http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt)
section 2.b. discusses this, but it isn't quite strong enough. ;)
Thanks.
Quoted 10 lines
--- drivers/isdn/mISDN/tei.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/isdn/mISDN/tei.c +0
-0
drivers/isdn/mISDN/tei.c create_teimanager(struct mISDNdevice *dev) · line 1293
Quoted 8 lines
drivers/isdn/mISDN/tei.c +1
-1@@ -1287,7 +1287,7 @@ create_teimanager(struct mISDNdevice *dev)if (!mgr)return -ENOMEM ;INIT_LIST_HEAD (&mgr->layer2); - mgr->lock =__RW_LOCK_UNLOCKED (mgr->lock); +rwlock_init (&mgr->lock);skb_queue_head_init (&mgr->sendq); mgr->nextid =1 ; mgr->lastid =MISDN_ID_NONE ;
---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/