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>

authored by Vegard Nossum and committed by Roland Dreier 52fd8ca6 6e86841d

+3 -3
+3 -3
drivers/infiniband/hw/ipath/ipath_verbs.c
··· 1021 1021 struct ipath_verbs_txreq *tx = cookie; 1022 1022 struct ipath_qp *qp = tx->qp; 1023 1023 struct ipath_ibdev *dev = to_idev(qp->ibqp.device); 1024 - unsigned int flags; 1024 + unsigned long flags; 1025 1025 enum ib_wc_status ibs = status == IPATH_SDMA_TXREQ_S_OK ? 1026 1026 IB_WC_SUCCESS : IB_WC_WR_FLUSH_ERR; 1027 1027 ··· 1051 1051 1052 1052 static void decrement_dma_busy(struct ipath_qp *qp) 1053 1053 { 1054 - unsigned int flags; 1054 + unsigned long flags; 1055 1055 1056 1056 if (atomic_dec_and_test(&qp->s_dma_busy)) { 1057 1057 spin_lock_irqsave(&qp->s_lock, flags); ··· 1221 1221 unsigned flush_wc; 1222 1222 u32 control; 1223 1223 int ret; 1224 - unsigned int flags; 1224 + unsigned long flags; 1225 1225 1226 1226 piobuf = ipath_getpiobuf(dd, plen, NULL); 1227 1227 if (unlikely(piobuf == NULL)) {