From 8f788f44917064f9d1a5a992bd914f3e4253f112 Mon Sep 17 00:00:00 2001 From: Govind Singh Date: Fri, 10 Jun 2016 10:33:19 +0530 Subject: [PATCH] qcacmn: Fix compilation issue for WMI Recording feature Fix compilation issues when WMI_INTERFACE_EVENT_LOGGING feature is disabled. Change-Id: I30e9b96cc8d387a7fbe94ae786f9d36ea58b8c21 CRs-Fixed: 1019979 --- wmi/src/wmi_unified.c | 11 +++++------ wmi/src/wmi_unified_tlv.c | 2 ++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/wmi/src/wmi_unified.c b/wmi/src/wmi_unified.c index bb611707424e..68160ec67466 100644 --- a/wmi/src/wmi_unified.c +++ b/wmi/src/wmi_unified.c @@ -848,10 +848,11 @@ out: * * Return: none */ -static void wmi_debugfs_remove(wmi_unified_t wmi_handle, struct dentry *dentry - , int id) +static void wmi_debugfs_remove(wmi_unified_t wmi_handle) { int i; + struct dentry *dentry = wmi_handle->log_info.wmi_log_debugfs_dir; + int id = wmi_handle->log_info.wmi_instance_id; if (dentry && (!(id < 0) || (id >= MAX_WMI_INSTANCES))) { for (i = 0; i < NUM_DEBUG_INFOS; ++i) { @@ -901,8 +902,7 @@ static QDF_STATUS wmi_debugfs_init(wmi_unified_t wmi_handle) * * Return: none */ -static void wmi_debugfs_remove(wmi_unified_t wmi_handle, struct dentry *dentry - , int id) { } +static void wmi_debugfs_remove(wmi_unified_t wmi_handle) { } #endif /*WMI_INTERFACE_EVENT_LOGGING */ int wmi_get_host_credits(wmi_unified_t wmi_handle); @@ -2204,8 +2204,7 @@ void wmi_unified_detach(struct wmi_unified *wmi_handle) cancel_work_sync(&wmi_handle->rx_event_work); - wmi_debugfs_remove(wmi_handle, wmi_handle->log_info.wmi_log_debugfs_dir, - wmi_handle->log_info.wmi_instance_id); + wmi_debugfs_remove(wmi_handle); qdf_spin_lock_bh(&wmi_handle->eventq_lock); buf = qdf_nbuf_queue_remove(&wmi_handle->event_queue); diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index e64db81fabc2..8dc7029599bc 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -11530,6 +11530,7 @@ static QDF_STATUS extract_channel_hopping_event_tlv(wmi_unified_t wmi_handle, return QDF_STATUS_SUCCESS; } +#ifdef WMI_INTERFACE_EVENT_LOGGING static bool is_management_record_tlv(uint32_t cmd_id) { if ((cmd_id == WMI_MGMT_TX_SEND_CMDID) || @@ -11538,6 +11539,7 @@ static bool is_management_record_tlv(uint32_t cmd_id) return false; } +#endif struct wmi_ops tlv_ops = { .send_vdev_create_cmd = send_vdev_create_cmd_tlv,