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: 74903 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1603536qga; Mon, 29 Aug 2016 05:21:44 -0700 (PDT) X-Received: by 10.66.80.2 with SMTP id n2mr32217546pax.134.1472473303842; Mon, 29 Aug 2016 05:21:43 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y70si38967632pfa.30.2016.08.29.05.21.43; Mon, 29 Aug 2016 05:21:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933169AbcH2MVh (ORCPT + 4 others); Mon, 29 Aug 2016 08:21:37 -0400 Received: from mail-pf0-f172.google.com ([209.85.192.172]:33016 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933121AbcH2MVg (ORCPT ); Mon, 29 Aug 2016 08:21:36 -0400 Received: by mail-pf0-f172.google.com with SMTP id y134so51686620pfg.0 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=V/d7wGvKu6gCLvWV0JzPrRkbdTT989jz4E2i0DjYHC1AXz0hzBz+8ACIu+Icz5kWuL txJ103hPTN4TvUQRif+MOWth0A2Ys+9Bpnn6AW/ASTw0Ej6tF5QQ9UghlpdWPP0mbNqO GAyNaoqS9KUjDSK6f9kM9Kn9r81wvzMxLywCatdE6plQa7WY1d02qfywjC+vdY+TUHo+ XoROqxmdh/Z61+QsttP1yrcXNxAOdFweEAc7rm0GHOAzkdbbwUsDyOBsQ2jXXavzgWST FKT3I8+9Zr1uBkHitBRqgrBWAo98OiRm4qf7PEFRb4yoYU8Vq4AJFqk/JSDlBOEQmvKZ sjow== X-Gm-Message-State: AE9vXwN+oZl0/uGvAfxPAkge1938ecTNwe7cx90dLVm7byhppluViT6jfcm4pz+Nb/L3ND1/ 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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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(-) -- 2.7.4 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;