Commit 77bbadd5 authored by Vegard Nossum's avatar Vegard Nossum Committed by John W. Linville

PS3: gelic: use unsigned long for irqflags

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)
)

...+>

This patch was generated using the Coccinelle framework.

Cc: Masakazu Mokuno <mokuno@sm.sony.co.jp>
Cc: Julia Lawall <julia@diku.dk>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarVegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 14db74bc
...@@ -1024,7 +1024,7 @@ static int gelic_wl_set_encode(struct net_device *netdev, ...@@ -1024,7 +1024,7 @@ static int gelic_wl_set_encode(struct net_device *netdev,
struct gelic_wl_info *wl = port_wl(netdev_priv(netdev)); struct gelic_wl_info *wl = port_wl(netdev_priv(netdev));
struct iw_point *enc = &data->encoding; struct iw_point *enc = &data->encoding;
__u16 flags; __u16 flags;
unsigned int irqflag; unsigned long irqflag;
int key_index, index_specified; int key_index, index_specified;
int ret = 0; int ret = 0;
...@@ -1097,7 +1097,7 @@ static int gelic_wl_get_encode(struct net_device *netdev, ...@@ -1097,7 +1097,7 @@ static int gelic_wl_get_encode(struct net_device *netdev,
{ {
struct gelic_wl_info *wl = port_wl(netdev_priv(netdev)); struct gelic_wl_info *wl = port_wl(netdev_priv(netdev));
struct iw_point *enc = &data->encoding; struct iw_point *enc = &data->encoding;
unsigned int irqflag; unsigned long irqflag;
unsigned int key_index, index_specified; unsigned int key_index, index_specified;
int ret = 0; int ret = 0;
...@@ -1215,7 +1215,7 @@ static int gelic_wl_set_encodeext(struct net_device *netdev, ...@@ -1215,7 +1215,7 @@ static int gelic_wl_set_encodeext(struct net_device *netdev,
struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; struct iw_encode_ext *ext = (struct iw_encode_ext *)extra;
__u16 alg; __u16 alg;
__u16 flags; __u16 flags;
unsigned int irqflag; unsigned long irqflag;
int key_index; int key_index;
int ret = 0; int ret = 0;
...@@ -1303,7 +1303,7 @@ static int gelic_wl_get_encodeext(struct net_device *netdev, ...@@ -1303,7 +1303,7 @@ static int gelic_wl_get_encodeext(struct net_device *netdev,
struct gelic_wl_info *wl = port_wl(netdev_priv(netdev)); struct gelic_wl_info *wl = port_wl(netdev_priv(netdev));
struct iw_point *enc = &data->encoding; struct iw_point *enc = &data->encoding;
struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; struct iw_encode_ext *ext = (struct iw_encode_ext *)extra;
unsigned int irqflag; unsigned long irqflag;
int key_index; int key_index;
int ret = 0; int ret = 0;
int max_key_len; int max_key_len;
...@@ -1426,7 +1426,7 @@ static int gelic_wl_priv_set_psk(struct net_device *net_dev, ...@@ -1426,7 +1426,7 @@ static int gelic_wl_priv_set_psk(struct net_device *net_dev,
{ {
struct gelic_wl_info *wl = port_wl(netdev_priv(net_dev)); struct gelic_wl_info *wl = port_wl(netdev_priv(net_dev));
unsigned int len; unsigned int len;
unsigned int irqflag; unsigned long irqflag;
int ret = 0; int ret = 0;
pr_debug("%s:<- len=%d\n", __func__, data->data.length); pr_debug("%s:<- len=%d\n", __func__, data->data.length);
...@@ -1467,7 +1467,7 @@ static int gelic_wl_priv_get_psk(struct net_device *net_dev, ...@@ -1467,7 +1467,7 @@ static int gelic_wl_priv_get_psk(struct net_device *net_dev,
{ {
struct gelic_wl_info *wl = port_wl(netdev_priv(net_dev)); struct gelic_wl_info *wl = port_wl(netdev_priv(net_dev));
char *p; char *p;
unsigned int irqflag; unsigned long irqflag;
unsigned int i; unsigned int i;
pr_debug("%s:<-\n", __func__); pr_debug("%s:<-\n", __func__);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment