Prechádzať zdrojové kódy

qcacld-3.0: Fix -Wmissing-prototypes in wma_ocb.c

When CONFIG_WLAN_FEATURE_DSRC is enabled the resulting build fails due
to -Wmissing-prototypes warnings in wma_ocb.c. Fix these warnings by
making the OCB response event handlers static.

Change-Id: I041ff4ebce7c5c8f99c7567fec913b9adf3e53e9
CRs-Fixed: 2002870
Jeff Johnson 8 rokov pred
rodič
commit
21a4b17000
1 zmenil súbory, kde vykonal 11 pridanie a 8 odobranie
  1. 11 8
      core/wma/src/wma_ocb.c

+ 11 - 8
core/wma/src/wma_ocb.c

@@ -419,8 +419,9 @@ int wma_ocb_get_tsf_timer(tp_wma_handle wma_handle,
  *
  * Return: 0 on success
  */
-int wma_ocb_get_tsf_timer_resp_event_handler(void *handle, uint8_t *event_buf,
-					     uint32_t len)
+static int wma_ocb_get_tsf_timer_resp_event_handler(void *handle,
+						    uint8_t *event_buf,
+						    uint32_t len)
 {
 	QDF_STATUS qdf_status;
 	struct sir_ocb_get_tsf_timer_response *response;
@@ -489,8 +490,9 @@ int wma_dcc_get_stats(tp_wma_handle wma_handle,
  *
  * Return: 0 on success
  */
-int wma_dcc_get_stats_resp_event_handler(void *handle, uint8_t *event_buf,
-				uint32_t len)
+static int wma_dcc_get_stats_resp_event_handler(void *handle,
+						uint8_t *event_buf,
+						uint32_t len)
 {
 	QDF_STATUS qdf_status;
 	struct sir_dcc_get_stats_response *response;
@@ -588,8 +590,9 @@ int wma_dcc_update_ndl(tp_wma_handle wma_handle,
  *
  * Return: 0 on success
  */
-int wma_dcc_update_ndl_resp_event_handler(void *handle, uint8_t *event_buf,
-					  uint32_t len)
+static int wma_dcc_update_ndl_resp_event_handler(void *handle,
+						 uint8_t *event_buf,
+						 uint32_t len)
 {
 	QDF_STATUS qdf_status;
 	struct sir_dcc_update_ndl_response *resp;
@@ -629,8 +632,8 @@ int wma_dcc_update_ndl_resp_event_handler(void *handle, uint8_t *event_buf,
  *
  * Return: 0 on success
  */
-int wma_dcc_stats_event_handler(void *handle, uint8_t *event_buf,
-				uint32_t len)
+static int wma_dcc_stats_event_handler(void *handle, uint8_t *event_buf,
+				       uint32_t len)
 {
 	QDF_STATUS qdf_status;
 	struct sir_dcc_get_stats_response *response;