浏览代码

staging: rtl8723bs: declare private function as static

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>
Kenneth Hsu 8 年之前
父节点
当前提交
7ecb36442d
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/staging/rtl8723bs/core/rtw_recv.c

+ 2 - 1
drivers/staging/rtl8723bs/core/rtw_recv.c

@@ -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;