From patchwork Sat Aug 27 16:27:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 9302469 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 2A48F607D8 for ; Sat, 27 Aug 2016 16:28:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B6ED28A03 for ; Sat, 27 Aug 2016 16:28:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0FF3028A09; Sat, 27 Aug 2016 16:28:36 +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.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 E3A5628A05 for ; Sat, 27 Aug 2016 16:28:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932163AbcH0Q1y (ORCPT ); Sat, 27 Aug 2016 12:27:54 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:35637 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754252AbcH0Q1w (ORCPT ); Sat, 27 Aug 2016 12:27:52 -0400 Received: by mail-pf0-f175.google.com with SMTP id x72so38074507pfd.2 for ; Sat, 27 Aug 2016 09:27:52 -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=sWR1HZsBDESFPxc7K9k8cLOIGl+Hky67IcefTM/Cwh4=; b=ODxJQeMXObN6pVPWCxCAFlsqL0fqhHei0rAx244eCqABuEHxFGAHjzjHIK5DAcFfSJ o0r1r32Ngh5ewTDvn2kUybqubEt3fUUP6yQmrpXCaRgysMr5puK6ecP47WVS45sm/FhE SEfDT0fa+vS4gGRdG9BhuaeyspA2daSxHiD8I= 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=sWR1HZsBDESFPxc7K9k8cLOIGl+Hky67IcefTM/Cwh4=; b=Ktb+3oKLlG4mJ6Cpp7hbiPLoLh8iK43nfsu0oUL+weVG+0GgfV80/lUS0uzpPl+WHS hmZ3ZzEGwTRJzQV8uD0VcgF+OeRsVNZ67jn1Ldq1gTPdu2IUzgPhK/h7MmdYwmAUKgsv iMPt0asaEy+u+Z3i+z6k1X8YKyrqcyIGoFriZjOX0xuXgxNrP9T6rlROCZRJby+bPXw8 GclLA9GFDqvJudptIpNyQl2DGhuo/hMU+EutvGCOBSuStFh7gE7qtzIBPk38vSIQpm7R UuP3LO2Bn1KaJP30pNDonGztZ0Z28mqGF241+U04kGqB/W9xe8DtBpxL01GMTzF3suwN SSSw== X-Gm-Message-State: AE9vXwNRT6li84NNZj4ptEvwoz4OPvkjAaHs3KzvqEGMNPsEcaxIIlh2y3MGF00TGYFCVBzJ X-Received: by 10.98.75.65 with SMTP id y62mr16431835pfa.99.1472315271763; Sat, 27 Aug 2016 09:27:51 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.142]) by smtp.gmail.com with ESMTPSA id z10sm37227292pff.95.2016.08.27.09.27.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 27 Aug 2016 09:27:51 -0700 (PDT) From: Baoyou Xie To: ath9k-devel@qca.qualcomm.com, kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, ath9k-devel@lists.ath9k.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@linaro.org, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] fix:gpio: mark symbols static where possible Date: Sun, 28 Aug 2016 00:27:08 +0800 Message-Id: <1472315228-14802-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 about global functions without a declaration in the ath9k gpio driver when building with W=1: drivers/net/wireless/ath/ath9k/gpio.c:25:6: warning: no previous prototype for 'ath_fill_led_pin' [-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 it 'static'. Signed-off-by: Baoyou Xie --- drivers/net/wireless/ath/ath9k/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c index 490f74d..ddb2886 100644 --- a/drivers/net/wireless/ath/ath9k/gpio.c +++ b/drivers/net/wireless/ath/ath9k/gpio.c @@ -22,7 +22,7 @@ #ifdef CONFIG_MAC80211_LEDS -void ath_fill_led_pin(struct ath_softc *sc) +static void ath_fill_led_pin(struct ath_softc *sc) { struct ath_hw *ah = sc->sc_ah;