Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1490860 > unrolled thread

[PATCH] rtl8xxxu: mark rtl8192eu_power_off() static

Started byBaoyou Xie <baoyou.xie@linaro.org>
First post2016-09-25 11:30 +0200
Last post2016-09-25 11:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] rtl8xxxu: mark rtl8192eu_power_off() static Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-25 11:30 +0200

#1490860 — [PATCH] rtl8xxxu: mark rtl8192eu_power_off() static

FromBaoyou Xie <baoyou.xie@linaro.org>
Date2016-09-25 11:30 +0200
Subject[PATCH] rtl8xxxu: mark rtl8192eu_power_off() static
Message-ID<sldUZ-4Mj-3@gated-at.bofh.it>
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 <baoyou.xie@linaro.org>
---
 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;
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web