qcacld-3.0: Fix -Wmissing-prototypes in wlan_hdd_tsf
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_tsf. Change-Id: I37e98814da218d9322a8d3ac05a0e19523859281 CRs-Fixed: 1074336
This commit is contained in:
@@ -61,6 +61,7 @@ enum hdd_tsf_capture_state {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#ifdef WLAN_FEATURE_TSF
|
#ifdef WLAN_FEATURE_TSF
|
||||||
|
void wlan_hdd_tsf_init(struct hdd_context_s *hdd_ctx);
|
||||||
int hdd_capture_tsf(struct hdd_adapter_s *adapter, uint32_t *buf, int len);
|
int hdd_capture_tsf(struct hdd_adapter_s *adapter, uint32_t *buf, int len);
|
||||||
int hdd_indicate_tsf(struct hdd_adapter_s *adapter, uint32_t *buf, int len);
|
int hdd_indicate_tsf(struct hdd_adapter_s *adapter, uint32_t *buf, int len);
|
||||||
int wlan_hdd_cfg80211_handle_tsf_cmd(struct wiphy *wiphy,
|
int wlan_hdd_cfg80211_handle_tsf_cmd(struct wiphy *wiphy,
|
||||||
|
@@ -30,6 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "wlan_hdd_main.h"
|
#include "wlan_hdd_main.h"
|
||||||
|
#include "wlan_hdd_tsf.h"
|
||||||
#include "wma_api.h"
|
#include "wma_api.h"
|
||||||
|
|
||||||
static struct completion tsf_sync_get_completion_evt;
|
static struct completion tsf_sync_get_completion_evt;
|
||||||
@@ -110,13 +111,13 @@ int hdd_capture_tsf(struct hdd_adapter_s *adapter, uint32_t *buf, int len)
|
|||||||
* Return: TSF_RETURN on Success, TSF_RESET_GPIO_FAIL on failure
|
* Return: TSF_RETURN on Success, TSF_RESET_GPIO_FAIL on failure
|
||||||
*/
|
*/
|
||||||
#ifdef QCA_WIFI_3_0
|
#ifdef QCA_WIFI_3_0
|
||||||
int hdd_tsf_reset_gpio(struct hdd_adapter_s *adapter)
|
static int hdd_tsf_reset_gpio(struct hdd_adapter_s *adapter)
|
||||||
{
|
{
|
||||||
/* No GPIO Host timer sync for integrated WIFI Device */
|
/* No GPIO Host timer sync for integrated WIFI Device */
|
||||||
return TSF_RETURN;
|
return TSF_RETURN;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
int hdd_tsf_reset_gpio(struct hdd_adapter_s *adapter)
|
static int hdd_tsf_reset_gpio(struct hdd_adapter_s *adapter)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
ret = wma_cli_set_command((int)adapter->sessionId,
|
ret = wma_cli_set_command((int)adapter->sessionId,
|
||||||
|
Reference in New Issue
Block a user