Browse Source

qcacmn: Clear compilation warnings

Clear compilation warnings for wmi files which
has unsued functions in case of some macros
aren't defined.

Change-Id: If3a9ee68206a44e35f459e3c39d9da2d6f7ba4ba
Surya Prakash 6 years ago
parent
commit
1f0930190b
2 changed files with 5 additions and 3 deletions
  1. 1 1
      wmi/src/wmi_unified.c
  2. 4 2
      wmi/src/wmi_unified_tlv.c

+ 1 - 1
wmi/src/wmi_unified.c

@@ -1612,6 +1612,7 @@ uint16_t wmi_get_max_msg_len(wmi_unified_t wmi_handle)
 }
 qdf_export_symbol(wmi_get_max_msg_len);
 
+#ifdef CONFIG_MCL
 #ifndef WMI_CMD_STRINGS
 static uint8_t *wmi_id_to_name(uint32_t wmi_command)
 {
@@ -1620,7 +1621,6 @@ static uint8_t *wmi_id_to_name(uint32_t wmi_command)
 
 #endif
 
-#ifdef CONFIG_MCL
 static inline void wmi_log_cmd_id(uint32_t cmd_id, uint32_t tag)
 {
 	WMI_LOGD("Send WMI command:%s command_id:%d htc_tag:%d\n",

+ 4 - 2
wmi/src/wmi_unified_tlv.c

@@ -3636,6 +3636,7 @@ static QDF_STATUS send_peer_rate_report_cmd_tlv(wmi_unified_t wmi_handle,
 	return status;
 }
 
+#ifdef CONFIG_MCL
 /**
  * send_bcn_buf_ll_cmd_tlv() - prepare and send beacon buffer to fw for LL
  * @wmi_handle: wmi handle
@@ -3678,6 +3679,7 @@ static QDF_STATUS send_bcn_buf_ll_cmd_tlv(wmi_unified_t wmi_handle,
 
 	return ret;
 }
+#endif /* CONFIG_MCL */
 
 /**
  * send_process_update_edca_param_cmd_tlv() - update EDCA params
@@ -5209,7 +5211,7 @@ send_dfs_phyerr_filter_offload_en_cmd_tlv(wmi_unified_t wmi_handle,
 	return QDF_STATUS_SUCCESS;
 }
 
-#if !defined(REMOVE_PKT_LOG)
+#if !defined(REMOVE_PKT_LOG) && defined(CONFIG_MCL)
 /**
  * send_pktlog_wmi_send_cmd_tlv() - send pktlog enable/disable command to target
  * @wmi_handle: wmi handle
@@ -5292,7 +5294,7 @@ wmi_send_failed:
 	wmi_buf_free(buf);
 	return QDF_STATUS_E_FAILURE;
 }
-#endif /* REMOVE_PKT_LOG */
+#endif /* !REMOVE_PKT_LOG &&  CONFIG_MCL*/
 
 /**
  * send_stats_ext_req_cmd_tlv() - request ext stats from fw