From patchwork Tue Dec 9 13:18:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: weiyj_lk@163.com X-Patchwork-Id: 5462801 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2C3CE9F1CD for ; Tue, 9 Dec 2014 13:20:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3EBCC2010C for ; Tue, 9 Dec 2014 13:20:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 69506200D0 for ; Tue, 9 Dec 2014 13:20:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757062AbaLINUn (ORCPT ); Tue, 9 Dec 2014 08:20:43 -0500 Received: from m12-17.163.com ([220.181.12.17]:33531 "EHLO m12-17.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757058AbaLINUm (ORCPT ); Tue, 9 Dec 2014 08:20:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=uMl7PumKSfz25wwQb0 u6Gz6m9Y5JVUvlB9DEqur2Xcw=; b=YAlrP14mFL7pLFQZo1B/TX/BTe3ucpWCCx T824fFkAMbOlPV7z1KlUVt4gGLRvtjQ8nURy03EbJKL62ZEiLF18fPP76oasuprI nSJVqNRSqK3NqRPz73Poghq/Km9XLbyMMZZQPJpd7T9Xxw5b2jTO1redky//gUIW IDTbnrEh0= Received: from localhost.localdomain.localdomain (unknown [117.88.175.67]) by smtp13 (Coremail) with SMTP id EcCowEDpM1e09oZUPVypBQ--.29S2; Tue, 09 Dec 2014 21:18:45 +0800 (CST) X-Coremail-DSSMTP: 117.88.175.67 From: weiyj_lk@163.com To: Larry Finger , Chaoming Li , "John W. Linville" , Mark Cave-Ayland , Rickard Strandqvist , Ben Hutchings , Peter Wu , Karsten Wiese , Andy Spencer Cc: Wei Yongjun , linux-wireless@vger.kernel.org Subject: [PATCH -next] rtlwifi: rtl8192cu: Fix sparse non static symbol warning Date: Tue, 9 Dec 2014 21:18:43 +0800 Message-Id: <1418131123-3606-1-git-send-email-weiyj_lk@163.com> X-Mailer: git-send-email 1.9.3 X-CM-TRANSID: EcCowEDpM1e09oZUPVypBQ--.29S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7WryUGw4DAF4fJry5XF1DKFg_yoWDZrb_Cr WSqFn3Jr12kF1SgFWUCFW5Z3ySvw1DWw40qrZ0qrZ3Gw4UZrZIkw4rCFy3Jry2gFy8tF9x GwsxGry8A348ZjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUeD73DUUUUU== X-Originating-IP: [117.88.175.67] X-CM-SenderInfo: pzhl5yxbonqiywtou0bp/1tbiGQFd1lEAQCV9uQABsi Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warnings: drivers/net/wireless/rtlwifi/rtl8192cu/hw.c:1595:6: warning: symbol 'usb_cmd_send_packet' was not declared. Should it be static? Signed-off-by: Wei Yongjun Acked-by: Larry Finger --- drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c index 873363ac..5513217 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c @@ -1592,7 +1592,7 @@ void rtl92cu_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) } } -bool usb_cmd_send_packet(struct ieee80211_hw *hw, struct sk_buff *skb) +static bool usb_cmd_send_packet(struct ieee80211_hw *hw, struct sk_buff *skb) { /* Currently nothing happens here. * Traffic stops after some seconds in WPA2 802.11n mode.