staging:vt6655 Add extern variable in head file
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 25 lines · sun wang
Extern variable must be declared in head file. Compiler can catch the inconsistency when variable changes.
Signed-off-by Sun Wang <[email protected]>--- drivers/staging/vt6655/ioctl.c | 1 - drivers/staging/vt6655/ioctl.h | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-)drivers/staging/vt6655/ioctl.c +0
-1@@ -31,7 +31,6 @@*/ #include "ioctl.h" -#include "iocmd.h" #include "mac.h" #include "card.h" #include "hostap.h" drivers/staging/vt6655/ioctl.h +0
-0
drivers/staging/vt6655/ioctl.h line 37
Quoted 8 lines
drivers/staging/vt6655/ioctl.h +5
-0@@ -30,6 +30,11 @@#define __IOCTL_H__#include "device.h" +#include "iocmd.h" + +#ifdef WPA_SM_Transtatus +extern SWPAResult wpa_Result; +#endif
I don't understand, what problem is this solving? This variable isn't in the driver at all.
confused,
greg k-h