[PATCH] staging:vt6655 Add extern variable in head file

From: sunwxg
Date: Tue Dec 16 2014 - 02:42:28 EST


From: Sun Wang <sun.wxg@xxxxxxxxx>

Subject: [PATCH] staging:vt6655 Add extern variable in head file

Extern variable must be declared in head file. Compiler can catch the inconsistency when variable changes.

Signed-off-by: Sun Wang <sun.wxg@xxxxxxxxx>

---
drivers/staging/vt6655/ioctl.c | 1 -
drivers/staging/vt6655/ioctl.h | 5 +++++
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/vt6655/ioctl.c b/drivers/staging/vt6655/ioctl.c
index 970e80d..716fc89 100644
--- a/drivers/staging/vt6655/ioctl.c
+++ b/drivers/staging/vt6655/ioctl.c
@@ -31,7 +31,6 @@
*/

#include "ioctl.h"
-#include "iocmd.h"
#include "mac.h"
#include "card.h"
#include "hostap.h"
diff --git a/drivers/staging/vt6655/ioctl.h b/drivers/staging/vt6655/ioctl.h
index 2dc5a57..42f6910 100644
--- a/drivers/staging/vt6655/ioctl.h
+++ b/drivers/staging/vt6655/ioctl.h
@@ -30,6 +30,11 @@
#define __IOCTL_H__

#include "device.h"
+#include "iocmd.h"
+
+#ifdef WPA_SM_Transtatus
+extern SWPAResult wpa_Result;
+#endif

int private_ioctl(struct vnt_private *, struct ifreq *rq);

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/