Skip to contentSkip to conversation

Staging: vt6655: staticfy variable

PATCH Guillaume Clement 3 participants 3 messages Jul 30, 2014 – Jul 31, 2014

lore
Share & tools
lore
#0 lore raw

Hello,

Quoted 12 lines

Add static to variable.

---
 drivers/staging/vt6655/ioctl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vt6655/ioctl.c +0 -0
index 65e5933..cc6e47b 100644

drivers/staging/vt6655/ioctl.c line 45

Quoted 6 lines
drivers/staging/vt6655/ioctl.c +1 -1
@@ -41,7 +41,7 @@
 static int msglevel = MSG_LEVEL_INFO;
 
 #ifdef WPA_SM_Transtatus
-SWPAResult wpa_Result;
+static SWPAResult wpa_Result;
 #endif

This changes breaks the compilation (actually the linking). wpa_Result is actually used in device_main.c in device_open with the following:

Quoted 3 lines
drivers/staging/vt6655/ioctl.c +0 -0
 #ifdef WPA_SM_Transtatus
 	extern SWPAResult wpa_Result;

#endif

#1 lore raw
Quoted 16 lines · Guillaume Clement

Hello,

Quoted 14 lines

Add static to variable.

---
 drivers/staging/vt6655/ioctl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vt6655/ioctl.c +0 -0
index 65e5933..cc6e47b 100644
@@ -41,7 +41,7 @@
 static int msglevel = MSG_LEVEL_INFO;
 
Quoted 7 lines

drivers/staging/vt6655/ioctl.c line 45

Quoted 4 lines
drivers/staging/vt6655/ioctl.c +1 -1
 #ifdef WPA_SM_Transtatus
-SWPAResult wpa_Result;
+static SWPAResult wpa_Result;
 #endif

This changes breaks the compilation (actually the linking). wpa_Result is actually used in device_main.c in device_open with the following:

Argh... sorry, I missed that.

Quoted 4 lines
Quoted 4 lines
drivers/staging/vt6655/ioctl.c +0 -0
 #ifdef WPA_SM_Transtatus
      extern SWPAResult wpa_Result;

#endif

#2 lore raw
Quoted 25 lines · Fernando Apesteguía
Quoted 16 lines · Guillaume Clement

Hello,

Quoted 14 lines

Add static to variable.

---
 drivers/staging/vt6655/ioctl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vt6655/ioctl.c +0 -0
index 65e5933..cc6e47b 100644
@@ -41,7 +41,7 @@
 static int msglevel = MSG_LEVEL_INFO;
 
Quoted 7 lines

drivers/staging/vt6655/ioctl.c line 45

Quoted 4 lines
drivers/staging/vt6655/ioctl.c +1 -1
 #ifdef WPA_SM_Transtatus
-SWPAResult wpa_Result;
+static SWPAResult wpa_Result;
 #endif

This changes breaks the compilation (actually the linking). wpa_Result is actually used in device_main.c in device_open with the following:

Quoted 1 line

Argh... sorry, I missed that.

ALWAYS test-build your patches, don't make me be your first tester...