From patchwork Mon Aug 29 12:21:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 9303795 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 7CC6360756 for ; Mon, 29 Aug 2016 12:21:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E7052856F for ; Mon, 29 Aug 2016 12:21:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 631CC2885C; Mon, 29 Aug 2016 12:21:50 +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=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 43F5F2856F for ; Mon, 29 Aug 2016 12:21:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933168AbcH2MVh (ORCPT ); Mon, 29 Aug 2016 08:21:37 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:34921 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932946AbcH2MVg (ORCPT ); Mon, 29 Aug 2016 08:21:36 -0400 Received: by mail-pf0-f182.google.com with SMTP id x72so51761807pfd.2 for ; Mon, 29 Aug 2016 05:21:35 -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=J8L7MZZxgH81gZDxWXhTOSWXmw+4Z92jLiLxv/vY49Pk7BqBHfcs6KK+CRlUNKjCzA MC+Lyevq6mYTam44ik+fWkCy6H06INlHVw6uMjVusz1xJuf3FgHPRgVdsCMfcvY477Q/ D16Fl84sDYoyLDRBUNIIcO3HlBUvaS8D9rUZ0= 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=ju9BvuM9ewtYoNGRAFBZa22xGH5bcx12li3C55a/JSw9G94aPwofEueH3vO3eM3sUG r+kCotQc8QH553IIRP6nP8AOc27GBQ43hCVmoFxlijDldFXTGdbV18LfxL5ykWoC0B4R h5ThJazxYMLCufkUhSqYvTv4zF8cjQ0aBlAVWDwxtC/BuxUj9wVQTvheD2uwLqynxIde 9CIYJHD4gaKXLU4/vkmDKrkQH6CU5xuNeIn+5V+ysw7lYjkp1YLUYMVBoGU9+3H3XdWa 6dHL6J/bs0BbS2vwbuwKFUWbf16T46AR1u0u8UkjqtLc75gfXPKupX9DaEZFmItXcDq+ DEDQ== X-Gm-Message-State: AE9vXwNNOqqgfvukwmQS54JvzVy9r2K5VVtl5qekgwJB6XsNQqRdkoSfuksT2yq+abaS9m5p X-Received: by 10.98.53.68 with SMTP id c65mr32266881pfa.66.1472473295173; Mon, 29 Aug 2016 05:21:35 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.36]) by smtp.gmail.com with ESMTPSA id n10sm49184812pap.16.2016.08.29.05.21.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Aug 2016 05:21:34 -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@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH v2] ath9k: mark ath_fill_led_pin() static Date: Mon, 29 Aug 2016 20:21:13 +0800 Message-Id: <1472473273-2972-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;