wifi driver: Fix problem of multiple declaration of cm_ctx
authorEunBong Song <eunb.song@samsung.com>
Mon, 31 Jul 2017 08:25:54 +0000 (01:25 -0700)
committerEunBong Song <eunb.song@samsung.com>
Wed, 30 Aug 2017 04:15:48 +0000 (21:15 -0700)
This patch fixes multiple declaration of fn_destroy. This can cause linking
error when kasan is enabled.

Change-Id: I3674f0e6726ff82b65ce20be46884e3f0463beea
Signed-off-by: EunBong Song <eunb.song@samsung.com>
os/drivers/wireless/scsc/dev.h
os/drivers/wireless/scsc/t20_ops.c

index a7fbafe..1751369 100644 (file)
@@ -115,7 +115,7 @@ struct slsi_cm_ctx {
 
 /* Only one wlan service instance is assumed for now. */
 
-struct slsi_cm_ctx cm_ctx;
+extern struct slsi_cm_ctx cm_ctx;
 
 static inline void slsi_sig_send_init(struct slsi_sig_send *sig_send)
 {
index 511dc23..7bb06af 100644 (file)
@@ -54,6 +54,8 @@ static uint keep_alive_period = SLSI_P2PGO_KEEP_ALIVE_PERIOD_SEC;
 }
 #endif
 
+struct slsi_cm_ctx cm_ctx;
+
 static struct slsi_80211_channel slsi_2ghz_channels[] = {
        CHAN2G(2412, 1),
        CHAN2G(2417, 2),