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: 74861 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp889769qga; Sat, 27 Aug 2016 09:28:06 -0700 (PDT) X-Received: by 10.98.89.23 with SMTP id n23mr16618463pfb.34.1472315286153; Sat, 27 Aug 2016 09:28:06 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f84si28088883pfj.40.2016.08.27.09.28.05; Sat, 27 Aug 2016 09:28:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1754699AbcH0Q1y (ORCPT + 27 others); Sat, 27 Aug 2016 12:27:54 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:32863 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754067AbcH0Q1w (ORCPT ); Sat, 27 Aug 2016 12:27:52 -0400 Received: by mail-pf0-f170.google.com with SMTP id y134so38021049pfg.0 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=Y6rMES1tUMOXcA7+YRAL7bSJa/Kis0z5Wd1CdziNCF0LjhAlHpjXrziOJ3yquVEAHF T43/FgSCjJH9Yf2Prhy5pQqqhXaJnl+27j5m+MEeizT9h0P/dg2sHXxgU27Onl+8yyJc 2xDUdLvsulJjGKiOdcxSI8pa0Spt86re+mulmaGCLwjFhKNiOZ3IC1ZMHQW8Kwktv8A6 nbUdhuaP6I2cH087HPdd9OVNaz245EXS37Xcm46FHvZ+KFCEEe9504SfKEWemobg+vut 1ZN4lbI4dvr9GzE1I0c70dk44g8yLtgSuNN3roilYD11ygcPQ9WSdoyvQSkxDsY3V21t Y9ZQ== X-Gm-Message-State: AE9vXwM5eLeHDbK+wOU2EMJtMAAbSVwMTWVrM+NPu7QySZZZ+u8CUMczL1UPnW8HKzjCwwRw 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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;