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

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

Commit Message

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

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
---
 drivers/staging/vt6656/bssdb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 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 bssdb.c
>
> Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>

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

Cheers,
Rusty.

> ---
>  drivers/staging/vt6656/bssdb.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/vt6656/bssdb.c b/drivers/staging/vt6656/bssdb.c
> index dad3f8c..1c3cbc5 100644
> --- a/drivers/staging/vt6656/bssdb.c
> +++ b/drivers/staging/vt6656/bssdb.c
> @@ -62,14 +62,14 @@
>  static int          msglevel                =MSG_LEVEL_INFO;
>  //static int          msglevel                =MSG_LEVEL_DEBUG;
>  
> -const u16             awHWRetry0[5][5] = {
> +static const u16             awHWRetry0[5][5] = {
>                                              {RATE_18M, RATE_18M, RATE_12M, RATE_12M, RATE_12M},
>                                              {RATE_24M, RATE_24M, RATE_18M, RATE_12M, RATE_12M},
>                                              {RATE_36M, RATE_36M, RATE_24M, RATE_18M, RATE_18M},
>                                              {RATE_48M, RATE_48M, RATE_36M, RATE_24M, RATE_24M},
>                                              {RATE_54M, RATE_54M, RATE_48M, RATE_36M, RATE_36M}
>                                             };
> -const u16             awHWRetry1[5][5] = {
> +static const u16             awHWRetry1[5][5] = {
>                                              {RATE_18M, RATE_18M, RATE_12M, RATE_6M, RATE_6M},
>                                              {RATE_24M, RATE_24M, RATE_18M, RATE_6M, RATE_6M},
>                                              {RATE_36M, RATE_36M, RATE_24M, RATE_12M, RATE_12M},
> -- 
> 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/bssdb.c b/drivers/staging/vt6656/bssdb.c
index dad3f8c..1c3cbc5 100644
--- a/drivers/staging/vt6656/bssdb.c
+++ b/drivers/staging/vt6656/bssdb.c
@@ -62,14 +62,14 @@ 
 static int          msglevel                =MSG_LEVEL_INFO;
 //static int          msglevel                =MSG_LEVEL_DEBUG;
 
-const u16             awHWRetry0[5][5] = {
+static const u16             awHWRetry0[5][5] = {
                                             {RATE_18M, RATE_18M, RATE_12M, RATE_12M, RATE_12M},
                                             {RATE_24M, RATE_24M, RATE_18M, RATE_12M, RATE_12M},
                                             {RATE_36M, RATE_36M, RATE_24M, RATE_18M, RATE_18M},
                                             {RATE_48M, RATE_48M, RATE_36M, RATE_24M, RATE_24M},
                                             {RATE_54M, RATE_54M, RATE_48M, RATE_36M, RATE_36M}
                                            };
-const u16             awHWRetry1[5][5] = {
+static const u16             awHWRetry1[5][5] = {
                                             {RATE_18M, RATE_18M, RATE_12M, RATE_6M, RATE_6M},
                                             {RATE_24M, RATE_24M, RATE_18M, RATE_6M, RATE_6M},
                                             {RATE_36M, RATE_36M, RATE_24M, RATE_12M, RATE_12M},