rtl8188eu: More Sparse fixes

There are only a few more left. Most are in the P2P code

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2015-01-29 21:41:53 -06:00
parent 481d6c817d
commit 5b8f5bc69d
22 changed files with 212 additions and 393 deletions

View file

@ -98,7 +98,7 @@ int proc_get_write_reg(char *page, char **start,
return 0;
}
int proc_set_write_reg(struct file *file, const char *buffer,
int proc_set_write_reg(struct file *file, const char __user *buffer,
unsigned long count, void *data)
{
struct net_device *dev = (struct net_device *)data;
@ -182,7 +182,7 @@ int proc_get_read_reg(char *page, char **start,
}
int proc_set_read_reg(struct file *file, const char *buffer,
int proc_set_read_reg(struct file *file, const char __user *buffer,
unsigned long count, void *data)
{
char tmp[16];
@ -675,7 +675,7 @@ int proc_get_rx_signal(char *page, char **start,
return len;
}
int proc_set_rx_signal(struct file *file, const char *buffer,
int proc_set_rx_signal(struct file *file, const char __user *buffer,
unsigned long count, void *data)
{
struct net_device *dev = (struct net_device *)data;
@ -733,7 +733,7 @@ int proc_get_ht_enable(char *page, char **start,
return len;
}
int proc_set_ht_enable(struct file *file, const char *buffer,
int proc_set_ht_enable(struct file *file, const char __user *buffer,
unsigned long count, void *data)
{
struct net_device *dev = (struct net_device *)data;
@ -780,7 +780,7 @@ int proc_get_cbw40_enable(char *page, char **start,
return len;
}
int proc_set_cbw40_enable(struct file *file, const char *buffer,
int proc_set_cbw40_enable(struct file *file, const char __user *buffer,
unsigned long count, void *data)
{
struct net_device *dev = (struct net_device *)data;
@ -829,7 +829,7 @@ int proc_get_ampdu_enable(char *page, char **start,
return len;
}
int proc_set_ampdu_enable(struct file *file, const char *buffer,
int proc_set_ampdu_enable(struct file *file, const char __user *buffer,
unsigned long count, void *data)
{
struct net_device *dev = (struct net_device *)data;
@ -898,7 +898,7 @@ int proc_get_rx_stbc(char *page, char **start,
return len;
}
int proc_set_rx_stbc(struct file *file, const char *buffer,
int proc_set_rx_stbc(struct file *file, const char __user *buffer,
unsigned long count, void *data)
{
struct net_device *dev = (struct net_device *)data;
@ -935,7 +935,7 @@ int proc_get_rssi_disp(char *page, char **start,
return 0;
}
int proc_set_rssi_disp(struct file *file, const char *buffer,
int proc_set_rssi_disp(struct file *file, const char __user *buffer,
unsigned long count, void *data)
{
struct net_device *dev = (struct net_device *)data;
@ -1133,7 +1133,7 @@ int proc_get_best_channel(char *page, char **start,
}
int proc_set_best_channel(struct file *file, const char *buffer,
int proc_set_best_channel(struct file *file, const char __user *buffer,
unsigned long count, void *data)
{
struct net_device *dev = (struct net_device *)data;
@ -1183,7 +1183,7 @@ int proc_get_btcoex_dbg(char *page, char **start,
return len;
}
int proc_set_btcoex_dbg(struct file *file, const char *buffer,
int proc_set_btcoex_dbg(struct file *file, const char __user *buffer,
unsigned long count, void *data)
{
struct net_device *dev = (struct net_device *)data;
@ -1225,7 +1225,7 @@ int proc_get_sreset(char *page, char **start, off_t offset, int count, int *eof,
return len;
}
int proc_set_sreset(struct file *file, const char *buffer, unsigned long count, void *data)
int proc_set_sreset(struct file *file, const char __user *buffer, unsigned long count, void *data)
{
struct net_device *dev = (struct net_device *)data;
struct adapter *padapter = (struct adapter *)rtw_netdev_priv(dev);
@ -1262,7 +1262,7 @@ int proc_get_odm_dbg_comp(char *page, char **start, off_t offset, int count, int
return len;
}
int proc_set_odm_dbg_comp(struct file *file, const char *buffer, unsigned long count, void *data)
int proc_set_odm_dbg_comp(struct file *file, const char __user *buffer, unsigned long count, void *data)
{
struct net_device *dev = (struct net_device *)data;
struct adapter *adapter = (struct adapter *)rtw_netdev_priv(dev);
@ -1298,7 +1298,7 @@ int proc_get_odm_dbg_level(char *page, char **start, off_t offset, int count, in
return len;
}
int proc_set_odm_dbg_level(struct file *file, const char *buffer, unsigned long count, void *data)
int proc_set_odm_dbg_level(struct file *file, const char __user *buffer, unsigned long count, void *data)
{
struct net_device *dev = (struct net_device *)data;
struct adapter *adapter = (struct adapter *)rtw_netdev_priv(dev);
@ -1334,7 +1334,7 @@ int proc_get_odm_adaptivity(char *page, char **start, off_t offset, int count, i
return len;
}
int proc_set_odm_adaptivity(struct file *file, const char *buffer, unsigned long count, void *data)
int proc_set_odm_adaptivity(struct file *file, const char __user *buffer, unsigned long count, void *data)
{
struct net_device *dev = (struct net_device *)data;
struct adapter *padapter = (struct adapter *)rtw_netdev_priv(dev);