staging: rtl8723bs: declare private function as static
authorKenneth Hsu <kennethhsu@gmail.com>
Sun, 23 Apr 2017 17:37:02 +0000 (10:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Apr 2017 10:34:14 +0000 (12:34 +0200)
This fixes a sparse warning regarding an undeclared symbol.  Since the
function is private to rtw_recv.c, it should be declared as static.

Signed-off-by: Kenneth Hsu <kennethhsu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_recv.c

index 74e11948c01515481a2434f045811fe71c50b75d..695a5c958c80f9bd6cefccb17a468361bc99ea11 100644 (file)
@@ -1717,7 +1717,8 @@ sint wlanhdr_to_ethhdr(union recv_frame *precvframe)
 }
 
 /* perform defrag */
-union recv_frame *recvframe_defrag(struct adapter *adapter, struct __queue *defrag_q)
+static union recv_frame *recvframe_defrag(struct adapter *adapter,
+                                         struct __queue *defrag_q)
 {
        struct list_head         *plist, *phead;
        u8 *data, wlanhdr_offset;