Files
linux/drivers
Vegard Nossum 52fd8ca6ad IB/ipath: Use unsigned long for irq flags
A few functions in the ipath driver incorrectly use unsigned int to
hold irq flags for spin_lock_irqsave().

This patch was generated using the Coccinelle framework with the
following semantic patch:

The semantic patch I used was this:

@@
expression lock;
identifier flags;
expression subclass;
@@

- unsigned int flags;
+ unsigned long flags;

...

<+...

(
 spin_lock_irqsave(lock, flags)
|
 _spin_lock_irqsave(lock)
|
 spin_unlock_irqrestore(lock, flags)
|
 _spin_unlock_irqrestore(lock, flags)
|
 read_lock_irqsave(lock, flags)
|
 _read_lock_irqsave(lock)
|
 read_unlock_irqrestore(lock, flags)
|
 _read_unlock_irqrestore(lock, flags)
|
 write_lock_irqsave(lock, flags)
|
 _write_lock_irqsave(lock)
|
 write_unlock_irqrestore(lock, flags)
|
 _write_unlock_irqrestore(lock, flags)
|
 spin_lock_irqsave_nested(lock, flags, subclass)
|
 _spin_lock_irqsave_nested(lock, subclass)
|
 spin_unlock_irqrestore(lock, flags)
|
 _spin_unlock_irqrestore(lock, flags)
|
 _raw_spin_lock_flags(lock, flags)
|
 __raw_spin_lock_flags(lock, flags)
)

...+>

Cc: Ralph Campbell <ralph.campbell@qlogic.com>
Cc: Julia Lawall <julia@diku.dk>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-07-30 09:29:06 -07:00
..
…
2008-07-24 10:47:41 -07:00
2008-07-28 15:12:37 -07:00
2008-07-22 17:30:57 -07:00
2008-07-25 10:53:49 -07:00
2008-07-25 10:53:30 -07:00
2008-07-26 12:00:11 -07:00
2008-07-28 12:21:25 +02:00
2008-07-28 21:14:43 +02:00
2008-07-27 13:57:36 +02:00
2008-07-26 20:30:56 -07:00
2008-07-26 12:00:11 -07:00
2008-07-26 12:00:11 -07:00
…
2008-07-27 11:35:47 +03:00
2008-07-28 18:10:29 +09:00
…
…
2008-07-28 16:30:21 -07:00
…
…
2008-07-21 21:54:55 -07:00
…
2008-07-24 10:47:24 -07:00
…
2008-07-25 10:53:30 -07:00