From patchwork Sun Sep 25 09:22:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 9349637 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 7B875601C2 for ; Sun, 25 Sep 2016 09:23:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C01F2884F for ; Sun, 25 Sep 2016 09:23:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5EDF828A06; Sun, 25 Sep 2016 09:23:00 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HK_RANDOM_FROM,RCVD_IN_DNSWL_HI autolearn=unavailable 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 DBA192884F for ; Sun, 25 Sep 2016 09:22:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965693AbcIYJWh (ORCPT ); Sun, 25 Sep 2016 05:22:37 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:35137 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S940192AbcIYJWg (ORCPT ); Sun, 25 Sep 2016 05:22:36 -0400 Received: by mail-pf0-f182.google.com with SMTP id s13so21242961pfd.2 for ; Sun, 25 Sep 2016 02:22:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=QjJ4ZlfTlVjcd0C/27HXQkNDPE3QmB27PvhVQGvQMp8=; b=MMO6BVG87ssO6nXZ5hkmKGm6c7syRccwsS5o9PQ75cT6VmQpi2u/uWozsaNg4Qubzs WRrBy8NoQLJ+/Mgnvv9uNs/cF+XGZt5fjX2Zo6bKxezeRqW1NUiGMBJ0Zs7CwvQZJmQ4 bQDg/rMe+lh1NCi3ZTlngZgq8w9t25lfW+Qh8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=QjJ4ZlfTlVjcd0C/27HXQkNDPE3QmB27PvhVQGvQMp8=; b=NoqEVpoLeg6ZDFjp9FiT5xn5MF2/KG03wP+SerRLq19bVn+K/LI3Hitk+SjQ7PxXC9 xWhHq8rBJJmgNMpvVhFRLEN+6vEmT0meJg7WVnRVQxLZLGYMFu57DN81avL5EbbBGzNr 6ubZprp3+VCLlut23K2UFtq/oW/0VI36y+MX9+VN16xiW3hk4McAHOxLlB5py5BthfzT j2CTOpMMKnDP/OHNgzJVNecNsxzJNoEtCDGXnu1PSyigCWlAKcrvIfLDc7E82qgu0nNs qXjJPZqduMF87DI7VDYwvpUZpftRxDVFw95h8qHvwGXm2yQK02huEVVGdhwNlxqInOYP JS/w== X-Gm-Message-State: AE9vXwPSbCxTcvmB4NijRZoWsmw5qVQqEuc+fw91iebjq1MqLfmgCYnC3LR2z/BOtsK1PEI2 X-Received: by 10.98.28.146 with SMTP id c140mr28450720pfc.158.1474795355772; Sun, 25 Sep 2016 02:22:35 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.164]) by smtp.gmail.com with ESMTPSA id z5sm22894427pff.3.2016.09.25.02.22.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Sep 2016 02:22:35 -0700 (PDT) From: Baoyou Xie To: Jes.Sorensen@redhat.com, kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: [PATCH] rtl8xxxu: mark rtl8192eu_power_off() static Date: Sun, 25 Sep 2016 17:22:23 +0800 Message-Id: <1474795343-25808-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 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 We get 1 warning when building kernel with W=1: drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c:1557:6: warning: no previous prototype for 'rtl8192eu_power_off' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. so this patch marks this function with 'static'. Signed-off-by: Baoyou Xie --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c index df54d27..7b5128a 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c @@ -1554,7 +1554,7 @@ static int rtl8192eu_power_on(struct rtl8xxxu_priv *priv) return ret; } -void rtl8192eu_power_off(struct rtl8xxxu_priv *priv) +static void rtl8192eu_power_off(struct rtl8xxxu_priv *priv) { u8 val8; u16 val16;