Search Linux Wireless

Re: [RFC][PATCH 4/5] ar9170: USB frontend driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2009-03-21 at 12:20 +0100, Michael Buesch wrote:

> > > > +#if 0
> > > > +#include <linux/mutex.h>
> > > > +#define mutex_lock(m) do { mutex_lock(m); __acquire(m); } while (0)
> > > > +#define mutex_unlock(m) do { mutex_unlock(m); __release(m); } while (0)
> > > > +#endif
> > > > +
> > > > +#endif /* __USB_H */
> > > 
> > > Whoops, debugging code? :)
> > 
> > sparse, for some reason mutex operations aren't annotated... Probably
> > because Ingo wrote the code...
> 
> Well I think it would currently generate lots of errors, because we have
> code like this in the kernel:
> 
> if (x)
> 	mutex_lock();
> ...
> if (x)
> 	mutex_unlock();

That's sloppy code anyway. Not to be encouraged.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux