rtl8188eu: Fix some Sparse warnings

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2019-04-21 11:36:57 -05:00
parent 2393650ec6
commit 510176b3ad
13 changed files with 21 additions and 51 deletions

View file

@ -5788,7 +5788,6 @@ static int rtw_cta_test_start(struct net_device *dev,
}
extern int rtw_change_ifname(_adapter *padapter, const char *ifname);
static int rtw_rereg_nd_name(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)

View file

@ -136,9 +136,9 @@ void _dynamic_check_timer_handler(struct timer_list *t)
#ifdef CONFIG_SET_SCAN_DENY_TIMER
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
void _rtw_set_scan_deny_timer_hdl(void *FunctionContext)
istatic void _rtw_set_scan_deny_timer_hdl(void *FunctionContext)
#else
void _rtw_set_scan_deny_timer_hdl(struct timer_list *t)
static void _rtw_set_scan_deny_timer_hdl(struct timer_list *t)
#endif
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
@ -353,9 +353,9 @@ void rtw_report_sec_ie(_adapter *adapter, u8 authmode, u8 *sec_ie)
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
void _survey_timer_hdl(void *FunctionContext)
static void _survey_timer_hdl(void *FunctionContext)
#else
void _survey_timer_hdl(struct timer_list *t)
static void _survey_timer_hdl(struct timer_list *t)
#endif
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
@ -368,9 +368,9 @@ void _survey_timer_hdl(struct timer_list *t)
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
void _link_timer_hdl(void *FunctionContext)
static void _link_timer_hdl(void *FunctionContext)
#else
void _link_timer_hdl(struct timer_list *t)
static void _link_timer_hdl(struct timer_list *t)
#endif
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
@ -415,9 +415,9 @@ void _ft_roam_timer_hdl(struct timer_list *t);
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
void _addba_timer_hdl(void *FunctionContext)
static void _addba_timer_hdl(void *FunctionContext)
#else
void _addba_timer_hdl(struct timer_list *t)
static void _addba_timer_hdl(struct timer_list *t)
#endif
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)

View file

@ -1084,7 +1084,7 @@ static int writeFile(struct file *fp, char *buf, int len)
return -EPERM;
while (sum < len) {
wlen = fp->f_op->write(fp, buf + sum, len - sum, &fp->f_pos);
wlen = fp->f_op->write(fp, (char __user *)buf + sum, len - sum, &fp->f_pos);
if (wlen > 0)
sum += wlen;
else if (0 != wlen)

View file

@ -666,7 +666,7 @@ void usb_write_port_cancel(struct intf_hdl *pintfhdl)
}
}
void usb_init_recvbuf(_adapter *padapter, struct recv_buf *precvbuf)
static void usb_init_recvbuf(_adapter *padapter, struct recv_buf *precvbuf)
{
precvbuf->transfer_len = 0;
@ -858,7 +858,7 @@ void usb_recv_tasklet(void *priv)
}
}
void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
{
struct recv_buf *precvbuf = (struct recv_buf *)purb->context;
_adapter *padapter = (_adapter *)precvbuf->adapter;

View file

@ -332,7 +332,7 @@ void rtw_os_wake_queue_at_free_stainfo(_adapter *padapter, int *qcnt_freed)
}
#ifdef CONFIG_TX_MCAST2UNI
int rtw_mlcst2unicst(_adapter *padapter, struct sk_buff *skb)
static int rtw_mlcst2unicst(_adapter *padapter, struct sk_buff *skb)
{
struct sta_priv *pstapriv = &padapter->stapriv;
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;