[OPW,kernel] Staging: vt6656: Fix Sparse Warning for Static Declarations in wpa.c
diff mbox

Message ID 1382647066-19061-1-git-send-email-ebru.akagunduz@gmail.com
State Changes Requested
Headers show

Commit Message

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

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

Comments

Rusty Russell Oct. 25, 2013, 1:07 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 wpa.c
>
> Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>

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

Cheers,
Rusty.

> ---
>  drivers/staging/vt6656/wpa.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/staging/vt6656/wpa.c b/drivers/staging/vt6656/wpa.c
> index 01db4e7..403c295 100644
> --- a/drivers/staging/vt6656/wpa.c
> +++ b/drivers/staging/vt6656/wpa.c
> @@ -43,12 +43,12 @@
>  
>  static int          msglevel                =MSG_LEVEL_INFO;
>  
> -const u8 abyOUI00[4] = { 0x00, 0x50, 0xf2, 0x00 };
> -const u8 abyOUI01[4] = { 0x00, 0x50, 0xf2, 0x01 };
> -const u8 abyOUI02[4] = { 0x00, 0x50, 0xf2, 0x02 };
> -const u8 abyOUI03[4] = { 0x00, 0x50, 0xf2, 0x03 };
> -const u8 abyOUI04[4] = { 0x00, 0x50, 0xf2, 0x04 };
> -const u8 abyOUI05[4] = { 0x00, 0x50, 0xf2, 0x05 };
> +static const u8 abyOUI00[4] = { 0x00, 0x50, 0xf2, 0x00 };
> +static const u8 abyOUI01[4] = { 0x00, 0x50, 0xf2, 0x01 };
> +static const u8 abyOUI02[4] = { 0x00, 0x50, 0xf2, 0x02 };
> +static const u8 abyOUI03[4] = { 0x00, 0x50, 0xf2, 0x03 };
> +static const u8 abyOUI04[4] = { 0x00, 0x50, 0xf2, 0x04 };
> +static const u8 abyOUI05[4] = { 0x00, 0x50, 0xf2, 0x05 };
>  
>  /*+
>   *
> -- 
> 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/wpa.c b/drivers/staging/vt6656/wpa.c
index 01db4e7..403c295 100644
--- a/drivers/staging/vt6656/wpa.c
+++ b/drivers/staging/vt6656/wpa.c
@@ -43,12 +43,12 @@ 
 
 static int          msglevel                =MSG_LEVEL_INFO;
 
-const u8 abyOUI00[4] = { 0x00, 0x50, 0xf2, 0x00 };
-const u8 abyOUI01[4] = { 0x00, 0x50, 0xf2, 0x01 };
-const u8 abyOUI02[4] = { 0x00, 0x50, 0xf2, 0x02 };
-const u8 abyOUI03[4] = { 0x00, 0x50, 0xf2, 0x03 };
-const u8 abyOUI04[4] = { 0x00, 0x50, 0xf2, 0x04 };
-const u8 abyOUI05[4] = { 0x00, 0x50, 0xf2, 0x05 };
+static const u8 abyOUI00[4] = { 0x00, 0x50, 0xf2, 0x00 };
+static const u8 abyOUI01[4] = { 0x00, 0x50, 0xf2, 0x01 };
+static const u8 abyOUI02[4] = { 0x00, 0x50, 0xf2, 0x02 };
+static const u8 abyOUI03[4] = { 0x00, 0x50, 0xf2, 0x03 };
+static const u8 abyOUI04[4] = { 0x00, 0x50, 0xf2, 0x04 };
+static const u8 abyOUI05[4] = { 0x00, 0x50, 0xf2, 0x05 };
 
 /*+
  *