qcacld-3.0: Fix -Wmissing-prototypes in wlan_hdd_p2p
We want to enable the compiler's -Wmissing-prototypes switch, but there is existing code that is generating warnings. Fix all warnings in wlan_hdd_p2p. Change-Id: Ifea057311a2fc0ec45d2137c2264311f8c9b2a3b CRs-Fixed: 1074336
This commit is contained in:
@@ -375,7 +375,7 @@ int wlan_hdd_check_remain_on_channel(hdd_adapter_t *pAdapter)
|
|||||||
*
|
*
|
||||||
* Return: None
|
* Return: None
|
||||||
*/
|
*/
|
||||||
void wlan_hdd_cancel_pending_roc(hdd_adapter_t *adapter)
|
static void wlan_hdd_cancel_pending_roc(hdd_adapter_t *adapter)
|
||||||
{
|
{
|
||||||
hdd_remain_on_chan_ctx_t *roc_ctx;
|
hdd_remain_on_chan_ctx_t *roc_ctx;
|
||||||
unsigned long rc;
|
unsigned long rc;
|
||||||
@@ -463,7 +463,7 @@ void wlan_hdd_cleanup_remain_on_channel_ctx(hdd_adapter_t *pAdapter)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wlan_hdd_remain_on_chan_timeout(void *data)
|
static void wlan_hdd_remain_on_chan_timeout(void *data)
|
||||||
{
|
{
|
||||||
hdd_adapter_t *pAdapter = (hdd_adapter_t *) data;
|
hdd_adapter_t *pAdapter = (hdd_adapter_t *) data;
|
||||||
hdd_remain_on_chan_ctx_t *pRemainChanCtx;
|
hdd_remain_on_chan_ctx_t *pRemainChanCtx;
|
||||||
@@ -707,7 +707,7 @@ static int wlan_hdd_roc_request_enqueue(hdd_adapter_t *adapter,
|
|||||||
*
|
*
|
||||||
* Return: None
|
* Return: None
|
||||||
*/
|
*/
|
||||||
void wlan_hdd_indicate_roc_drop(hdd_adapter_t *adapter,
|
static void wlan_hdd_indicate_roc_drop(hdd_adapter_t *adapter,
|
||||||
hdd_remain_on_chan_ctx_t *ctx)
|
hdd_remain_on_chan_ctx_t *ctx)
|
||||||
{
|
{
|
||||||
hdd_debug("indicate roc drop to userspace");
|
hdd_debug("indicate roc drop to userspace");
|
||||||
@@ -886,10 +886,11 @@ static int wlan_hdd_request_remain_on_channel(struct wiphy *wiphy,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __wlan_hdd_cfg80211_remain_on_channel(struct wiphy *wiphy,
|
static int __wlan_hdd_cfg80211_remain_on_channel(struct wiphy *wiphy,
|
||||||
struct wireless_dev *wdev,
|
struct wireless_dev *wdev,
|
||||||
struct ieee80211_channel *chan,
|
struct ieee80211_channel *chan,
|
||||||
unsigned int duration, u64 *cookie)
|
unsigned int duration,
|
||||||
|
u64 *cookie)
|
||||||
{
|
{
|
||||||
struct net_device *dev = wdev->netdev;
|
struct net_device *dev = wdev->netdev;
|
||||||
hdd_adapter_t *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
hdd_adapter_t *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
||||||
@@ -1027,7 +1028,8 @@ void hdd_remain_chan_ready_handler(hdd_adapter_t *pAdapter,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __wlan_hdd_cfg80211_cancel_remain_on_channel(struct wiphy *wiphy,
|
static int
|
||||||
|
__wlan_hdd_cfg80211_cancel_remain_on_channel(struct wiphy *wiphy,
|
||||||
struct wireless_dev *wdev,
|
struct wireless_dev *wdev,
|
||||||
u64 cookie)
|
u64 cookie)
|
||||||
{
|
{
|
||||||
@@ -1172,7 +1174,7 @@ int wlan_hdd_cfg80211_cancel_remain_on_channel(struct wiphy *wiphy,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __wlan_hdd_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
|
static int __wlan_hdd_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
|
||||||
struct ieee80211_channel *chan, bool offchan,
|
struct ieee80211_channel *chan, bool offchan,
|
||||||
unsigned int wait,
|
unsigned int wait,
|
||||||
const u8 *buf, size_t len, bool no_cck,
|
const u8 *buf, size_t len, bool no_cck,
|
||||||
@@ -1602,7 +1604,7 @@ int wlan_hdd_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __wlan_hdd_cfg80211_mgmt_tx_cancel_wait(struct wiphy *wiphy,
|
static int __wlan_hdd_cfg80211_mgmt_tx_cancel_wait(struct wiphy *wiphy,
|
||||||
struct wireless_dev *wdev,
|
struct wireless_dev *wdev,
|
||||||
u64 cookie)
|
u64 cookie)
|
||||||
{
|
{
|
||||||
@@ -1942,6 +1944,7 @@ static uint8_t wlan_hdd_get_session_type(enum nl80211_iftype type)
|
|||||||
*
|
*
|
||||||
* Return: the pointer of wireless dev, otherwise ERR_PTR.
|
* Return: the pointer of wireless dev, otherwise ERR_PTR.
|
||||||
*/
|
*/
|
||||||
|
static
|
||||||
struct wireless_dev *__wlan_hdd_add_virtual_intf(struct wiphy *wiphy,
|
struct wireless_dev *__wlan_hdd_add_virtual_intf(struct wiphy *wiphy,
|
||||||
const char *name,
|
const char *name,
|
||||||
unsigned char name_assign_type,
|
unsigned char name_assign_type,
|
||||||
|
Reference in New Issue
Block a user