From 5d4acd79ad32c3bb86f869bb780748325339a96c Mon Sep 17 00:00:00 2001 From: Qiwei Cai Date: Thu, 23 Aug 2018 11:04:07 +0800 Subject: [PATCH] qcacmn: Featurize BUILD_DIAG_VERSION Featurize BUILD_DIAG_VERSION to compile out to save memory. Change-Id: I4d221387003770e5344069dc4cf1f72b7ce9e0ad CRs-Fixed: 2301492 --- utils/host_diag_log/src/i_host_diag_core_event.h | 6 ++---- utils/host_diag_log/src/i_host_diag_core_log.h | 11 ++++++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/utils/host_diag_log/src/i_host_diag_core_event.h b/utils/host_diag_log/src/i_host_diag_core_event.h index 50240f48132c..c7978fe16db6 100644 --- a/utils/host_diag_log/src/i_host_diag_core_event.h +++ b/utils/host_diag_log/src/i_host_diag_core_event.h @@ -212,16 +212,14 @@ static inline void qdf_wow_wakeup_host_event(uint8_t wow_wakeup_cause) return; } -static inline void host_log_acs_req_event(uint8_t *intf, uint8_t *hw_mode, +static inline void host_log_acs_req_event(uint8_t *intf, const uint8_t *hw_mode, uint16_t bw, uint8_t ht, uint8_t vht, uint16_t chan_start, uint16_t chan_end) { } -static inline void host_log_acs_scan_start(uint8_t *scan_type, - uint8_t *bss_type, uint32_t scan_id, - uint8_t vdev_id) +static inline void host_log_acs_scan_start(uint32_t scan_id, uint8_t vdev_id) { } diff --git a/utils/host_diag_log/src/i_host_diag_core_log.h b/utils/host_diag_log/src/i_host_diag_core_log.h index 7c06d611b872..0d0f770bf1e0 100644 --- a/utils/host_diag_log/src/i_host_diag_core_log.h +++ b/utils/host_diag_log/src/i_host_diag_core_log.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2018 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -19,9 +19,7 @@ #if !defined(__I_HOST_DIAG_CORE_LOG_H) #define __I_HOST_DIAG_CORE_LOG_H -#ifdef FEATURE_WLAN_DIAG_SUPPORT #include -#endif /**========================================================================= @@ -108,6 +106,13 @@ void host_diag_log_submit(void *plog_hdr_ptr); #define WLAN_HOST_DIAG_LOG_REPORT(payload_ptr) #define WLAN_HOST_DIAG_LOG_FREE(payload_ptr) +static inline void host_diag_log_set_code(void *ptr, uint16_t code) +{ +} + +static inline void host_diag_log_set_length(void *ptr, uint16_t length) +{ +} #endif /* FEATURE_WLAN_DIAG_SUPPORT */ /*-------------------------------------------------------------------------