Staging: vt6655: staticfy variable
Hello,
Quoted 12 lines
Add static to variable.
Signed-off-by Fernando Apesteguia <[email protected]>--- drivers/staging/vt6655/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/vt6655/ioctl.c +0
-0
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_Transtatusextern SWPAResult wpa_Result;#endif
Quoted 16 lines · Guillaume Clement
Hello,
Quoted 14 lines
Add static to variable.
Signed-off-by Fernando Apesteguia <[email protected]>--- drivers/staging/vt6655/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/vt6655/ioctl.c +0
-0@@ -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_Resultis actually used indevice_main.cindevice_openwith the following:
Argh... sorry, I missed that.
Quoted 4 lines
Quoted 4 lines
drivers/staging/vt6655/ioctl.c +0
-0#ifdef WPA_SM_Transtatusextern SWPAResult wpa_Result;#endif
Quoted 25 lines · Fernando Apesteguía
Quoted 16 lines · Guillaume Clement
Hello,
Quoted 14 lines
Add static to variable.
Signed-off-by Fernando Apesteguia <[email protected]>--- drivers/staging/vt6655/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/vt6655/ioctl.c +0
-0@@ -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_Resultis actually used indevice_main.cindevice_openwith the following:
Quoted 1 line
Argh... sorry, I missed that.
ALWAYS test-build your patches, don't make me be your first tester...