From 87df3e8c2dfd2a3d8221a6165a40c737d3bf7f1b Mon Sep 17 00:00:00 2001 From: Alan Chen Date: Mon, 13 Apr 2020 15:56:58 -0700 Subject: [PATCH] qcacmn: Remove static from the gwlan_logging struct The gwlan_logging struct is used by offline tools, so it needs to be made non-static. Remove the static keyword from gwlan_logging. Change-Id: I05f47328914c40a2c957ca404b6681ba8507d367 CRs-Fixed: 2663164 --- utils/logging/src/wlan_logging_sock_svc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/logging/src/wlan_logging_sock_svc.c b/utils/logging/src/wlan_logging_sock_svc.c index 0282a7786383..931f1a59b489 100644 --- a/utils/logging/src/wlan_logging_sock_svc.c +++ b/utils/logging/src/wlan_logging_sock_svc.c @@ -182,7 +182,10 @@ struct wlan_logging { qdf_spinlock_t flush_timer_lock; }; -static struct wlan_logging gwlan_logging; +/* This global variable is intentionally not marked static because it + * is used by offline tools. Please do not use it outside this file. + */ +struct wlan_logging gwlan_logging; static struct pkt_stats_msg *gpkt_stats_buffers; #ifdef WLAN_LOGGING_BUFFERS_DYNAMICALLY