mac80211: use upstream patches for rtl8xxxu
[openwrt/staging/yousong.git] / package / kernel / mac80211 / patches / 653-0019-rtl8xxxu-gen1-Fix-non-static-symbol-warning.patch
1 From 77e3980201e7d54b2e63653b46a6baba26040cef Mon Sep 17 00:00:00 2001
2 From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
3 Date: Fri, 19 Aug 2016 17:46:41 -0400
4 Subject: [PATCH] rtl8xxxu: gen1: Fix non static symbol warning
5
6 Fixes the following sparse warning:
7
8 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:898:1: warning:
9 symbol 'rtl8xxxu_gen1_h2c_cmd' was not declared. Should it be static?
10
11 Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
12 Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
13 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
14 ---
15 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
19 +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
20 @@ -894,7 +894,7 @@ int rtl8xxxu_write_rfreg(struct rtl8xxxu
21 return retval;
22 }
23
24 -int
25 +static int
26 rtl8xxxu_gen1_h2c_cmd(struct rtl8xxxu_priv *priv, struct h2c_cmd *h2c, int len)
27 {
28 struct device *dev = &priv->udev->dev;