Commit ca2c6881 authored by YueHaibing's avatar YueHaibing Committed by Kalle Valo
Browse files

rtw88: Make two functions static



Fix sparse warnings:

drivers/net/wireless/realtek/rtw88/fw.c:633:4: warning:
 symbol 'rtw_get_rsvd_page_probe_req_location' was not declared. Should it be static?
drivers/net/wireless/realtek/rtw88/fw.c:650:5: warning:
 symbol 'rtw_get_rsvd_page_probe_req_size' was not declared. Should it be static?

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200328030524.16032-1-yuehaibing@huawei.com
parent 67f37312
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -630,7 +630,7 @@ void rtw_fw_set_pg_info(struct rtw_dev *rtwdev)
	rtw_fw_send_h2c_command(rtwdev, h2c_pkt);
}

u8 rtw_get_rsvd_page_probe_req_location(struct rtw_dev *rtwdev,
static u8 rtw_get_rsvd_page_probe_req_location(struct rtw_dev *rtwdev,
					       struct cfg80211_ssid *ssid)
{
	struct rtw_rsvd_page *rsvd_pkt;
@@ -647,7 +647,7 @@ u8 rtw_get_rsvd_page_probe_req_location(struct rtw_dev *rtwdev,
	return location;
}

u16 rtw_get_rsvd_page_probe_req_size(struct rtw_dev *rtwdev,
static u16 rtw_get_rsvd_page_probe_req_size(struct rtw_dev *rtwdev,
					    struct cfg80211_ssid *ssid)
{
	struct rtw_rsvd_page *rsvd_pkt;