staging: rtl8723au: Declare rtw_make_wlanhdr() static
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 21 May 2014 07:37:58 +0000 (09:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 07:27:46 +0000 (16:27 +0900)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_xmit.c
drivers/staging/rtl8723au/include/rtw_xmit.h

index e9882a5b0966f6552595b746e2b9cda09d87dcb8..2ebb3df876902a78016e0ee88ed06062160b7f09 100644 (file)
@@ -858,8 +858,8 @@ static int xmitframe_swencrypt(struct rtw_adapter *padapter,
        return _SUCCESS;
 }
 
-int rtw_make_wlanhdr23a(struct rtw_adapter *padapter, u8 *hdr,
-                       struct pkt_attrib *pattrib)
+static int rtw_make_wlanhdr(struct rtw_adapter *padapter, u8 *hdr,
+                           struct pkt_attrib *pattrib)
 {
        u16 *qc;
 
@@ -1119,10 +1119,9 @@ int rtw_xmitframe_coalesce23a(struct rtw_adapter *padapter, struct sk_buff *skb,
 
        mem_start = pbuf_start + hw_hdr_offset;
 
-       if (rtw_make_wlanhdr23a(padapter, mem_start, pattrib) == _FAIL) {
+       if (rtw_make_wlanhdr(padapter, mem_start, pattrib) == _FAIL) {
                RT_TRACE(_module_rtl871x_xmit_c_, _drv_err_,
-                        ("rtw_xmitframe_coalesce23a: rtw_make_wlanhdr23a "
-                         "fail; drop pkt\n"));
+                        ("%s: rtw_make_wlanhdr fail; drop pkt\n", __func__));
                res = _FAIL;
                goto exit;
        }
index 33d0bc4ffd30c9086086538c99ae051704d519f0..53030b6a376ed4d4d7608442546199e8cdab1ef5 100644 (file)
@@ -350,8 +350,6 @@ s32 rtw_free_xmitbuf23a(struct xmit_priv *pxmitpriv, struct xmit_buf *pxmitbuf);
 void rtw_count_tx_stats23a(struct rtw_adapter *padapter,
                        struct xmit_frame *pxmitframe, int sz);
 void rtw_update_protection23a(struct rtw_adapter *padapter, u8 *ie, uint ie_len);
-s32 rtw_make_wlanhdr23a(struct rtw_adapter *padapter, u8 *hdr,
-                    struct pkt_attrib *pattrib);
 s32 rtw_put_snap23a(u8 *data, u16 h_proto);
 struct xmit_frame *rtw_alloc_xmitframe23a_ext(struct xmit_priv *pxmitpriv);
 struct xmit_frame *rtw_alloc_xmitframe23a_once(struct xmit_priv *pxmitpriv);