Commit 913a3449 authored by Monam Agarwal's avatar Monam Agarwal Committed by Greg Kroah-Hartman

Staging: wlags49_h2: Fix incorrect type in assignment in wl_wext.c

This patch fixes following sparse warnings:
drivers/staging/wlags49_h2/wl_wext.c:3357:28: warning: incorrect type in assignment (different address spaces)
drivers/staging/wlags49_h2/wl_wext.c:3357:28:    expected void [noderef] <asn:1>*[addressable] [assigned] pointer
drivers/staging/wlags49_h2/wl_wext.c:3357:28:    got void *<noident>
drivers/staging/wlags49_h2/wl_wext.c:3422:47: warning: incorrect type in assignment (different address spaces)
drivers/staging/wlags49_h2/wl_wext.c:3422:47:    expected void [noderef] <asn:1>*[addressable] [assigned] pointer
drivers/staging/wlags49_h2/wl_wext.c:3422:47:    got char *[usertype] <noident>
drivers/staging/wlags49_h2/wl_wext.c:3781:21: warning: symbol 'wl_priv_args' was not declared. Should it be static?
Signed-off-by: default avatarMonam Agarwal <monamagarwal123@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c943d968
...@@ -3354,7 +3354,7 @@ void wl_wext_event_essid( struct net_device *dev ) ...@@ -3354,7 +3354,7 @@ void wl_wext_event_essid( struct net_device *dev )
the call to wireless_send_event() must also point to where the ESSID the call to wireless_send_event() must also point to where the ESSID
lives */ lives */
wrqu.essid.length = strlen( lp->NetworkName ); wrqu.essid.length = strlen( lp->NetworkName );
wrqu.essid.pointer = (caddr_t)lp->NetworkName; wrqu.essid.pointer = (void __user *)lp->NetworkName;
wrqu.essid.flags = 1; wrqu.essid.flags = 1;
wireless_send_event( dev, SIOCSIWESSID, &wrqu, lp->NetworkName ); wireless_send_event( dev, SIOCSIWESSID, &wrqu, lp->NetworkName );
...@@ -3419,7 +3419,7 @@ void wl_wext_event_encode( struct net_device *dev ) ...@@ -3419,7 +3419,7 @@ void wl_wext_event_encode( struct net_device *dev )
/* Only provide the key if permissions allow */ /* Only provide the key if permissions allow */
if( capable( CAP_NET_ADMIN )) { if( capable( CAP_NET_ADMIN )) {
wrqu.encoding.pointer = (caddr_t)lp->DefaultKeys.key[index].key; wrqu.encoding.pointer = (void __user *)lp->DefaultKeys.key[index].key;
wrqu.encoding.length = lp->DefaultKeys.key[index].len; wrqu.encoding.length = lp->DefaultKeys.key[index].len;
} else { } else {
wrqu.encoding.flags |= IW_ENCODE_NOKEY; wrqu.encoding.flags |= IW_ENCODE_NOKEY;
......
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