diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-05-04 06:32:24 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-05-28 07:41:47 -0400 |
commit | 6aca09771db4277a78853d6ac680d8d5f0d915e3 (patch) | |
tree | b96c1a4f616f8a72189531e2734a2ff0c9d3ac08 /drivers/net/wireless | |
parent | 5b0efb4d670c8b53b25c166967efd2a02b309e05 (diff) |
rtw88: Make some symbols static
Fix sparse warnings:
drivers/net/wireless/realtek/rtw88/phy.c:851:4: warning: symbol 'rtw_cck_size' was not declared. Should it be static?
drivers/net/wireless/realtek/rtw88/phy.c:852:4: warning: symbol 'rtw_ofdm_size' was not declared. Should it be static?
drivers/net/wireless/realtek/rtw88/phy.c:853:4: warning: symbol 'rtw_ht_1s_size' was not declared. Should it be static?
drivers/net/wireless/realtek/rtw88/phy.c:854:4: warning: symbol 'rtw_ht_2s_size' was not declared. Should it be static?
drivers/net/wireless/realtek/rtw88/phy.c:855:4: warning: symbol 'rtw_vht_1s_size' was not declared. Should it be static?
drivers/net/wireless/realtek/rtw88/phy.c:856:4: warning: symbol 'rtw_vht_2s_size' was not declared. Should it be static?
drivers/net/wireless/realtek/rtw88/fw.c:11:6: warning: symbol 'rtw_fw_c2h_cmd_handle_ext' was not declared. Should it be static?
drivers/net/wireless/realtek/rtw88/fw.c:50:6: warning: symbol 'rtw_fw_send_h2c_command' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/fw.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/phy.c | 13 |
2 files changed, 11 insertions, 8 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/fw.c b/drivers/net/wireless/realtek/rtw88/fw.c index cf4265cda224..628477971213 100644 --- a/drivers/net/wireless/realtek/rtw88/fw.c +++ b/drivers/net/wireless/realtek/rtw88/fw.c | |||
@@ -8,7 +8,8 @@ | |||
8 | #include "reg.h" | 8 | #include "reg.h" |
9 | #include "debug.h" | 9 | #include "debug.h" |
10 | 10 | ||
11 | void rtw_fw_c2h_cmd_handle_ext(struct rtw_dev *rtwdev, struct sk_buff *skb) | 11 | static void rtw_fw_c2h_cmd_handle_ext(struct rtw_dev *rtwdev, |
12 | struct sk_buff *skb) | ||
12 | { | 13 | { |
13 | struct rtw_c2h_cmd *c2h; | 14 | struct rtw_c2h_cmd *c2h; |
14 | u8 sub_cmd_id; | 15 | u8 sub_cmd_id; |
@@ -47,7 +48,8 @@ void rtw_fw_c2h_cmd_handle(struct rtw_dev *rtwdev, struct sk_buff *skb) | |||
47 | } | 48 | } |
48 | } | 49 | } |
49 | 50 | ||
50 | void rtw_fw_send_h2c_command(struct rtw_dev *rtwdev, u8 *h2c) | 51 | static void rtw_fw_send_h2c_command(struct rtw_dev *rtwdev, |
52 | u8 *h2c) | ||
51 | { | 53 | { |
52 | u8 box; | 54 | u8 box; |
53 | u8 box_state; | 55 | u8 box_state; |
diff --git a/drivers/net/wireless/realtek/rtw88/phy.c b/drivers/net/wireless/realtek/rtw88/phy.c index 77b8c02b5ac6..404d89432c96 100644 --- a/drivers/net/wireless/realtek/rtw88/phy.c +++ b/drivers/net/wireless/realtek/rtw88/phy.c | |||
@@ -853,12 +853,13 @@ u8 rtw_vht_2s_rates[] = { | |||
853 | DESC_RATEVHT2SS_MCS6, DESC_RATEVHT2SS_MCS7, | 853 | DESC_RATEVHT2SS_MCS6, DESC_RATEVHT2SS_MCS7, |
854 | DESC_RATEVHT2SS_MCS8, DESC_RATEVHT2SS_MCS9 | 854 | DESC_RATEVHT2SS_MCS8, DESC_RATEVHT2SS_MCS9 |
855 | }; | 855 | }; |
856 | u8 rtw_cck_size = ARRAY_SIZE(rtw_cck_rates); | 856 | |
857 | u8 rtw_ofdm_size = ARRAY_SIZE(rtw_ofdm_rates); | 857 | static u8 rtw_cck_size = ARRAY_SIZE(rtw_cck_rates); |
858 | u8 rtw_ht_1s_size = ARRAY_SIZE(rtw_ht_1s_rates); | 858 | static u8 rtw_ofdm_size = ARRAY_SIZE(rtw_ofdm_rates); |
859 | u8 rtw_ht_2s_size = ARRAY_SIZE(rtw_ht_2s_rates); | 859 | static u8 rtw_ht_1s_size = ARRAY_SIZE(rtw_ht_1s_rates); |
860 | u8 rtw_vht_1s_size = ARRAY_SIZE(rtw_vht_1s_rates); | 860 | static u8 rtw_ht_2s_size = ARRAY_SIZE(rtw_ht_2s_rates); |
861 | u8 rtw_vht_2s_size = ARRAY_SIZE(rtw_vht_2s_rates); | 861 | static u8 rtw_vht_1s_size = ARRAY_SIZE(rtw_vht_1s_rates); |
862 | static u8 rtw_vht_2s_size = ARRAY_SIZE(rtw_vht_2s_rates); | ||
862 | u8 *rtw_rate_section[RTW_RATE_SECTION_MAX] = { | 863 | u8 *rtw_rate_section[RTW_RATE_SECTION_MAX] = { |
863 | rtw_cck_rates, rtw_ofdm_rates, | 864 | rtw_cck_rates, rtw_ofdm_rates, |
864 | rtw_ht_1s_rates, rtw_ht_2s_rates, | 865 | rtw_ht_1s_rates, rtw_ht_2s_rates, |