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

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

Commit Message

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

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

Comments

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

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

Cheers,
Rusty.

> ---
>  drivers/staging/vt6656/baseband.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/staging/vt6656/baseband.c b/drivers/staging/vt6656/baseband.c
> index 1e8b841..5f6480e 100644
> --- a/drivers/staging/vt6656/baseband.c
> +++ b/drivers/staging/vt6656/baseband.c
> @@ -48,7 +48,7 @@
>  static int          msglevel                =MSG_LEVEL_INFO;
>  //static int          msglevel                =MSG_LEVEL_DEBUG;
>  
> -u8 abyVT3184_AGC[] = {
> +static u8 abyVT3184_AGC[] = {
>      0x00,   //0
>      0x00,   //1
>      0x02,   //2
> @@ -115,7 +115,7 @@ u8 abyVT3184_AGC[] = {
>      0x3E    //3F
>  };
>  
> -u8 abyVT3184_AL2230[] = {
> +static u8 abyVT3184_AL2230[] = {
>          0x31,//00
>          0x00,
>          0x00,
> @@ -375,7 +375,7 @@ u8 abyVT3184_AL2230[] = {
>  };
>  
>  //{{RobertYu:20060515, new BB setting for VT3226D0
> -u8 abyVT3184_VT3226D0[] = {
> +static u8 abyVT3184_VT3226D0[] = {
>          0x31,//00
>          0x00,
>          0x00,
> @@ -634,7 +634,7 @@ u8 abyVT3184_VT3226D0[] = {
>          0x00,
>  };
>  
> -const u16 awcFrameTime[MAX_RATE] =
> +static const u16 awcFrameTime[MAX_RATE] =
>  {10, 20, 55, 110, 24, 36, 48, 72, 96, 144, 192, 216};
>  
>  /*
> -- 
> 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/baseband.c b/drivers/staging/vt6656/baseband.c
index 1e8b841..5f6480e 100644
--- a/drivers/staging/vt6656/baseband.c
+++ b/drivers/staging/vt6656/baseband.c
@@ -48,7 +48,7 @@ 
 static int          msglevel                =MSG_LEVEL_INFO;
 //static int          msglevel                =MSG_LEVEL_DEBUG;
 
-u8 abyVT3184_AGC[] = {
+static u8 abyVT3184_AGC[] = {
     0x00,   //0
     0x00,   //1
     0x02,   //2
@@ -115,7 +115,7 @@  u8 abyVT3184_AGC[] = {
     0x3E    //3F
 };
 
-u8 abyVT3184_AL2230[] = {
+static u8 abyVT3184_AL2230[] = {
         0x31,//00
         0x00,
         0x00,
@@ -375,7 +375,7 @@  u8 abyVT3184_AL2230[] = {
 };
 
 //{{RobertYu:20060515, new BB setting for VT3226D0
-u8 abyVT3184_VT3226D0[] = {
+static u8 abyVT3184_VT3226D0[] = {
         0x31,//00
         0x00,
         0x00,
@@ -634,7 +634,7 @@  u8 abyVT3184_VT3226D0[] = {
         0x00,
 };
 
-const u16 awcFrameTime[MAX_RATE] =
+static const u16 awcFrameTime[MAX_RATE] =
 {10, 20, 55, 110, 24, 36, 48, 72, 96, 144, 192, 216};
 
 /*