diff options
author | Vegard Nossum <[email protected]> | 2008-07-30 09:29:06 -0700 |
---|---|---|
committer | Roland Dreier <[email protected]> | 2008-07-30 09:29:06 -0700 |
commit | 52fd8ca6ad4124c15952ded35cfcf6adbd7ae8d4 (patch) | |
tree | b798e9db426b0a78b86427e13ca2107e08d6f897 /net/unix/sysctl_net_unix.c | |
parent | 6e86841d05f371b5b9b86ce76c02aaee83352298 (diff) |
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 <[email protected]>
Cc: Julia Lawall <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Signed-off-by: Vegard Nossum <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions