From patchwork Tue Jul 12 14:33:34 2016 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: 9225475 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B31A360868 for ; Tue, 12 Jul 2016 14:34:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A331226220 for ; Tue, 12 Jul 2016 14:34:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9721A27CF9; Tue, 12 Jul 2016 14:34:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FF0026220 for ; Tue, 12 Jul 2016 14:34:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933343AbcGLOd6 (ORCPT ); Tue, 12 Jul 2016 10:33:58 -0400 Received: from m12-15.163.com ([220.181.12.15]:55494 "EHLO m12-15.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932537AbcGLOd4 (ORCPT ); Tue, 12 Jul 2016 10:33:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=jZmob YQXCVOB9yJTk308iL70Uqn0PyHULuOUwVewKoQ=; b=BsHpeGumwA/Quf7ZC6yPz T6kz2ER8iZS8GEwQ8I4/enXbUmaOu2ADZXvG6m2XewTcamEkD+nCQmHxlGaaqcU1 NMCD1ivYsI7LB0DujVDej3UCNgJ/6CpE4kf/QfRnUUK4YF1wWBtO66POslL3Cv1m pAwjBaRTxpWhx6z6GycWNw= Received: from localhost.localdomain.localdomain (unknown [180.102.101.186]) by smtp11 (Coremail) with SMTP id D8CowAA3l9O+_4RXxZ34Cw--.37409S2; Tue, 12 Jul 2016 22:33:36 +0800 (CST) From: weiyj_lk@163.com To: Jes Sorensen , Kalle Valo Cc: Wei Yongjun , linux-wireless@vger.kernel.org Subject: [PATCH -next] rtl8xxxu: gen1: Fix non static symbol warning Date: Tue, 12 Jul 2016 14:33:34 +0000 Message-Id: <1468334014-9098-1-git-send-email-weiyj_lk@163.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CM-TRANSID: D8CowAA3l9O+_4RXxZ34Cw--.37409S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7WryUGw47uw1xtFy3XFyDGFg_yoWDXrg_C3 48trn7Ar1rJw4Fkr1YkFW7ArWSyFWDXa95AFy2qFZxJ3yaqrZ3Arn3Z347Gr4fXw4DZFyU J3s7G3W8AryfJjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUnBpBDUUUUU== X-Originating-IP: [180.102.101.186] X-CM-SenderInfo: pzhl5yxbonqiywtou0bp/xtbBDQCk1laDoBh0ugAAsc Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warning: drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:898:1: warning: symbol 'rtl8xxxu_gen1_h2c_cmd' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.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/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 77048db..95b54b8 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -894,7 +894,7 @@ int rtl8xxxu_write_rfreg(struct rtl8xxxu_priv *priv, return retval; } -int +static int rtl8xxxu_gen1_h2c_cmd(struct rtl8xxxu_priv *priv, struct h2c_cmd *h2c, int len) { struct device *dev = &priv->udev->dev;