From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162904AbdDWRhU (ORCPT ); Sun, 23 Apr 2017 13:37:20 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:33852 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162560AbdDWRhL (ORCPT ); Sun, 23 Apr 2017 13:37:11 -0400 Date: Sun, 23 Apr 2017 10:37:02 -0700 From: Kenneth Hsu To: gregkh@linuxfoundation.org, hdegoede@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8723bs: declare private function as static Message-ID: <20170423173702.GA5842@lenny.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/staging/rtl8723bs/core/rtw_recv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_recv.c b/drivers/staging/rtl8723bs/core/rtw_recv.c index 74e11948c015..695a5c958c80 100644 --- a/drivers/staging/rtl8723bs/core/rtw_recv.c +++ b/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; -- 2.12.2