From 799d2c96554c811937a490e4ebff45f63ec6686d Mon Sep 17 00:00:00 2001 From: Rachit Kankane Date: Mon, 19 Feb 2018 11:28:10 +0530 Subject: [PATCH] qcacmn: Compile out WMI logging feature Fix to compile cleanly when WMI_INTERFACE_EVENT_LOGGING feature is disabled. Change-Id: I1c7d687e685b8b2dcdb35667c425afc3d09c73da CRs-Fixed: 2192125 --- wmi_unified.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wmi_unified.c b/wmi_unified.c index dc366136af..ad1f631f3e 100644 --- a/wmi_unified.c +++ b/wmi_unified.c @@ -90,6 +90,9 @@ typedef PREPACK struct { /* end of copy wmi.h */ #endif /* CONFIG_WIN */ +#define WMI_MIN_HEAD_ROOM 64 + +#ifdef WMI_INTERFACE_EVENT_LOGGING #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)) /* TODO Cleanup this backported function */ static int wmi_bp_seq_printf(struct seq_file *m, const char *f, ...) @@ -106,9 +109,6 @@ static int wmi_bp_seq_printf(struct seq_file *m, const char *f, ...) #define wmi_bp_seq_printf(m, fmt, ...) seq_printf((m), fmt, ##__VA_ARGS__) #endif -#define WMI_MIN_HEAD_ROOM 64 - -#ifdef WMI_INTERFACE_EVENT_LOGGING #ifndef MAX_WMI_INSTANCES #ifdef CONFIG_MCL #define MAX_WMI_INSTANCES 1 @@ -2026,7 +2026,7 @@ static inline void wmi_interface_logging_init(struct wmi_unified *wmi_handle) } } #else -void wmi_interface_logging_init(struct wmi_unified *wmi_handle) +static inline void wmi_interface_logging_init(struct wmi_unified *wmi_handle) { } #endif