浏览代码

staging: vt6655: fix sparse warning for static declarations

This patch fixes the following sparse warnings:

dpc.c:65:21: warning: symbol 'acbyRxRate' was not declared. Should it be static?
dpc.c:272:9: warning: symbol 'MngWorkItem' was not declared. Should it be static?
dpc.c:288:1: warning: symbol 'device_receive_frame' was not declared. Should it be static?

Signed-off-by: James A Shackleford <shack@linux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
James A Shackleford 11 年之前
父节点
当前提交
04d521970b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/staging/vt6655/dpc.c

+ 2 - 1
drivers/staging/vt6655/dpc.c

@@ -54,6 +54,7 @@
 #include "rf.h"
 #include "rf.h"
 #include "iowpa.h"
 #include "iowpa.h"
 #include "aes_ccmp.h"
 #include "aes_ccmp.h"
+#include "dpc.h"
 
 
 /*---------------------  Static Definitions -------------------------*/
 /*---------------------  Static Definitions -------------------------*/
 
 
@@ -62,7 +63,7 @@
 /*---------------------  Static Variables  --------------------------*/
 /*---------------------  Static Variables  --------------------------*/
 static int msglevel = MSG_LEVEL_INFO;
 static int msglevel = MSG_LEVEL_INFO;
 
 
-const unsigned char acbyRxRate[MAX_RATE] =
+static const unsigned char acbyRxRate[MAX_RATE] =
 {2, 4, 11, 22, 12, 18, 24, 36, 48, 72, 96, 108};
 {2, 4, 11, 22, 12, 18, 24, 36, 48, 72, 96, 108};
 
 
 /*---------------------  Static Functions  --------------------------*/
 /*---------------------  Static Functions  --------------------------*/