[OPW,kernel] Staging: vt6655: Fix Sparse Warning for Static Declarations wpa2.c
diff mbox

Message ID 1382649889-26293-1-git-send-email-ebru.akagunduz@gmail.com
State Superseded
Headers show

Commit Message

Ebru Akagündüz Oct. 24, 2013, 9:24 p.m. UTC
This patch fixes the Sparse Warning "symbol was not declared.
Should it be static?" in wpa2.c

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
---
 drivers/staging/vt6656/wpa2.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Comments

Rusty Russell Oct. 25, 2013, 1:13 a.m. UTC | #1
Ebru Akagunduz <ebru.akagunduz@gmail.com> writes:

> This patch fixes the Sparse Warning "symbol was not declared.
> Should it be static?" in wpa2.c
>
> Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>

Reviewed-by: Rusty Russell <rusty@rustcorp.com.au>

Cheers,
Rusty.

> ---
>  drivers/staging/vt6656/wpa2.c | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/staging/vt6656/wpa2.c b/drivers/staging/vt6656/wpa2.c
> index aa221618..df55417 100644
> --- a/drivers/staging/vt6656/wpa2.c
> +++ b/drivers/staging/vt6656/wpa2.c
> @@ -37,14 +37,14 @@
>  static int          msglevel                =MSG_LEVEL_INFO;
>  //static int          msglevel                =MSG_LEVEL_DEBUG;
>  
> -const u8 abyOUIGK[4]      = { 0x00, 0x0F, 0xAC, 0x00 };
> -const u8 abyOUIWEP40[4]   = { 0x00, 0x0F, 0xAC, 0x01 };
> -const u8 abyOUIWEP104[4]  = { 0x00, 0x0F, 0xAC, 0x05 };
> -const u8 abyOUITKIP[4]    = { 0x00, 0x0F, 0xAC, 0x02 };
> -const u8 abyOUICCMP[4]    = { 0x00, 0x0F, 0xAC, 0x04 };
> -
> -const u8 abyOUI8021X[4]   = { 0x00, 0x0F, 0xAC, 0x01 };
> -const u8 abyOUIPSK[4]     = { 0x00, 0x0F, 0xAC, 0x02 };
> +static const u8 abyOUIGK[4]      = { 0x00, 0x0F, 0xAC, 0x00 };
> +static const u8 abyOUIWEP40[4]   = { 0x00, 0x0F, 0xAC, 0x01 };
> +static const u8 abyOUIWEP104[4]  = { 0x00, 0x0F, 0xAC, 0x05 };
> +static const u8 abyOUITKIP[4]    = { 0x00, 0x0F, 0xAC, 0x02 };
> +static const u8 abyOUICCMP[4]    = { 0x00, 0x0F, 0xAC, 0x04 };
> +
> +static const u8 abyOUI8021X[4]   = { 0x00, 0x0F, 0xAC, 0x01 };
> +static const u8 abyOUIPSK[4]     = { 0x00, 0x0F, 0xAC, 0x02 };
>  
>  /*+
>   *
> -- 
> 1.8.1.2
>
> -- 
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Patch
diff mbox

diff --git a/drivers/staging/vt6656/wpa2.c b/drivers/staging/vt6656/wpa2.c
index aa221618..df55417 100644
--- a/drivers/staging/vt6656/wpa2.c
+++ b/drivers/staging/vt6656/wpa2.c
@@ -37,14 +37,14 @@ 
 static int          msglevel                =MSG_LEVEL_INFO;
 //static int          msglevel                =MSG_LEVEL_DEBUG;
 
-const u8 abyOUIGK[4]      = { 0x00, 0x0F, 0xAC, 0x00 };
-const u8 abyOUIWEP40[4]   = { 0x00, 0x0F, 0xAC, 0x01 };
-const u8 abyOUIWEP104[4]  = { 0x00, 0x0F, 0xAC, 0x05 };
-const u8 abyOUITKIP[4]    = { 0x00, 0x0F, 0xAC, 0x02 };
-const u8 abyOUICCMP[4]    = { 0x00, 0x0F, 0xAC, 0x04 };
-
-const u8 abyOUI8021X[4]   = { 0x00, 0x0F, 0xAC, 0x01 };
-const u8 abyOUIPSK[4]     = { 0x00, 0x0F, 0xAC, 0x02 };
+static const u8 abyOUIGK[4]      = { 0x00, 0x0F, 0xAC, 0x00 };
+static const u8 abyOUIWEP40[4]   = { 0x00, 0x0F, 0xAC, 0x01 };
+static const u8 abyOUIWEP104[4]  = { 0x00, 0x0F, 0xAC, 0x05 };
+static const u8 abyOUITKIP[4]    = { 0x00, 0x0F, 0xAC, 0x02 };
+static const u8 abyOUICCMP[4]    = { 0x00, 0x0F, 0xAC, 0x04 };
+
+static const u8 abyOUI8021X[4]   = { 0x00, 0x0F, 0xAC, 0x01 };
+static const u8 abyOUIPSK[4]     = { 0x00, 0x0F, 0xAC, 0x02 };
 
 /*+
  *