Thread (16 messages) 16 messages, 5 authors, 2008-11-05

Re: [PATCH RFC v2] net: add PCINet driver

From: Arnd Bergmann <arnd@arndb.de>
Date: 2008-11-05 13:20:30
Also in: lkml, netdev

On Tuesday 04 November 2008, Ira Snyder wrote:
So, since interrupts are disabled while my interrupt handler is running,
I think I should be able to use spin_lock() and spin_unlock(), correct?
yes.
But sparse gives me the following warning:
wqt.c:185:9: warning: context imbalance in 'wqt_interrupt': wrong count at exit
wqt.c:185:9:    context 'lock': wanted 0, got 1

If I'm using spin_lock_irqsave() and spin_lock_irqrestore() I do not get
the same warnings. Therefore I must have some misunderstanding :)

I've seen something like that before, I think it was a bug either in
sparse or in the powerpc platform code. Try updating both the kernel
and sparse and see if it still happens.

	Arnd <><
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help