提交 9e4c5c28 编写于 作者: G Guillaume Clement 提交者: Greg Kroah-Hartman

staging: vt6655: statify some variables

Some variables are used only in the context of their .c file, which
gives warnings with sparse.
Signed-off-by: NGuillaume Clement <gclement@baobob.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 e7a3cd59
...@@ -75,7 +75,7 @@ static int msglevel = MSG_LEVEL_INFO; ...@@ -75,7 +75,7 @@ static int msglevel = MSG_LEVEL_INFO;
/*--------------------- Static Variables --------------------------*/ /*--------------------- Static Variables --------------------------*/
#define CB_VT3253_INIT_FOR_RFMD 446 #define CB_VT3253_INIT_FOR_RFMD 446
unsigned char byVT3253InitTab_RFMD[CB_VT3253_INIT_FOR_RFMD][2] = { static unsigned char byVT3253InitTab_RFMD[CB_VT3253_INIT_FOR_RFMD][2] = {
{0x00, 0x30}, {0x00, 0x30},
{0x01, 0x00}, {0x01, 0x00},
{0x02, 0x00}, {0x02, 0x00},
...@@ -525,7 +525,7 @@ unsigned char byVT3253InitTab_RFMD[CB_VT3253_INIT_FOR_RFMD][2] = { ...@@ -525,7 +525,7 @@ unsigned char byVT3253InitTab_RFMD[CB_VT3253_INIT_FOR_RFMD][2] = {
}; };
#define CB_VT3253B0_INIT_FOR_RFMD 256 #define CB_VT3253B0_INIT_FOR_RFMD 256
unsigned char byVT3253B0_RFMD[CB_VT3253B0_INIT_FOR_RFMD][2] = { static unsigned char byVT3253B0_RFMD[CB_VT3253B0_INIT_FOR_RFMD][2] = {
{0x00, 0x31}, {0x00, 0x31},
{0x01, 0x00}, {0x01, 0x00},
{0x02, 0x00}, {0x02, 0x00},
...@@ -786,7 +786,7 @@ unsigned char byVT3253B0_RFMD[CB_VT3253B0_INIT_FOR_RFMD][2] = { ...@@ -786,7 +786,7 @@ unsigned char byVT3253B0_RFMD[CB_VT3253B0_INIT_FOR_RFMD][2] = {
#define CB_VT3253B0_AGC_FOR_RFMD2959 195 #define CB_VT3253B0_AGC_FOR_RFMD2959 195
/* For RFMD2959 */ /* For RFMD2959 */
unsigned char byVT3253B0_AGC4_RFMD2959[CB_VT3253B0_AGC_FOR_RFMD2959][2] = { static unsigned char byVT3253B0_AGC4_RFMD2959[CB_VT3253B0_AGC_FOR_RFMD2959][2] = {
{0xF0, 0x00}, {0xF0, 0x00},
{0xF1, 0x3E}, {0xF1, 0x3E},
{0xF0, 0x80}, {0xF0, 0x80},
...@@ -986,7 +986,7 @@ unsigned char byVT3253B0_AGC4_RFMD2959[CB_VT3253B0_AGC_FOR_RFMD2959][2] = { ...@@ -986,7 +986,7 @@ unsigned char byVT3253B0_AGC4_RFMD2959[CB_VT3253B0_AGC_FOR_RFMD2959][2] = {
#define CB_VT3253B0_INIT_FOR_AIROHA2230 256 #define CB_VT3253B0_INIT_FOR_AIROHA2230 256
/* For AIROHA */ /* For AIROHA */
unsigned char byVT3253B0_AIROHA2230[CB_VT3253B0_INIT_FOR_AIROHA2230][2] = { static unsigned char byVT3253B0_AIROHA2230[CB_VT3253B0_INIT_FOR_AIROHA2230][2] = {
{0x00, 0x31}, {0x00, 0x31},
{0x01, 0x00}, {0x01, 0x00},
{0x02, 0x00}, {0x02, 0x00},
...@@ -1247,7 +1247,7 @@ unsigned char byVT3253B0_AIROHA2230[CB_VT3253B0_INIT_FOR_AIROHA2230][2] = { ...@@ -1247,7 +1247,7 @@ unsigned char byVT3253B0_AIROHA2230[CB_VT3253B0_INIT_FOR_AIROHA2230][2] = {
#define CB_VT3253B0_INIT_FOR_UW2451 256 #define CB_VT3253B0_INIT_FOR_UW2451 256
/* For UW2451 */ /* For UW2451 */
unsigned char byVT3253B0_UW2451[CB_VT3253B0_INIT_FOR_UW2451][2] = { static unsigned char byVT3253B0_UW2451[CB_VT3253B0_INIT_FOR_UW2451][2] = {
{0x00, 0x31}, {0x00, 0x31},
{0x01, 0x00}, {0x01, 0x00},
{0x02, 0x00}, {0x02, 0x00},
...@@ -1508,7 +1508,7 @@ unsigned char byVT3253B0_UW2451[CB_VT3253B0_INIT_FOR_UW2451][2] = { ...@@ -1508,7 +1508,7 @@ unsigned char byVT3253B0_UW2451[CB_VT3253B0_INIT_FOR_UW2451][2] = {
#define CB_VT3253B0_AGC 193 #define CB_VT3253B0_AGC 193
/* For AIROHA */ /* For AIROHA */
unsigned char byVT3253B0_AGC[CB_VT3253B0_AGC][2] = { static unsigned char byVT3253B0_AGC[CB_VT3253B0_AGC][2] = {
{0xF0, 0x00}, {0xF0, 0x00},
{0xF1, 0x00}, {0xF1, 0x00},
{0xF0, 0x80}, {0xF0, 0x80},
...@@ -1704,7 +1704,7 @@ unsigned char byVT3253B0_AGC[CB_VT3253B0_AGC][2] = { ...@@ -1704,7 +1704,7 @@ unsigned char byVT3253B0_AGC[CB_VT3253B0_AGC][2] = {
{0xF0, 0x00}, {0xF0, 0x00},
}; };
const unsigned short awcFrameTime[MAX_RATE] = static const unsigned short awcFrameTime[MAX_RATE] =
{10, 20, 55, 110, 24, 36, 48, 72, 96, 144, 192, 216}; {10, 20, 55, 110, 24, 36, 48, 72, 96, 144, 192, 216};
/*--------------------- Static Functions --------------------------*/ /*--------------------- Static Functions --------------------------*/
......
...@@ -65,14 +65,14 @@ ...@@ -65,14 +65,14 @@
/*--------------------- Static Variables --------------------------*/ /*--------------------- Static Variables --------------------------*/
static int msglevel = MSG_LEVEL_INFO; static int msglevel = MSG_LEVEL_INFO;
const unsigned short awHWRetry0[5][5] = { static const unsigned short awHWRetry0[5][5] = {
{RATE_18M, RATE_18M, RATE_12M, RATE_12M, RATE_12M}, {RATE_18M, RATE_18M, RATE_12M, RATE_12M, RATE_12M},
{RATE_24M, RATE_24M, RATE_18M, 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_36M, RATE_36M, RATE_24M, RATE_18M, RATE_18M},
{RATE_48M, RATE_48M, RATE_36M, RATE_24M, RATE_24M}, {RATE_48M, RATE_48M, RATE_36M, RATE_24M, RATE_24M},
{RATE_54M, RATE_54M, RATE_48M, RATE_36M, RATE_36M} {RATE_54M, RATE_54M, RATE_48M, RATE_36M, RATE_36M}
}; };
const unsigned short awHWRetry1[5][5] = { static const unsigned short awHWRetry1[5][5] = {
{RATE_18M, RATE_18M, RATE_12M, RATE_6M, RATE_6M}, {RATE_18M, RATE_18M, RATE_12M, RATE_6M, RATE_6M},
{RATE_24M, RATE_24M, RATE_18M, RATE_6M, RATE_6M}, {RATE_24M, RATE_24M, RATE_18M, RATE_6M, RATE_6M},
{RATE_36M, RATE_36M, RATE_24M, RATE_12M, RATE_12M}, {RATE_36M, RATE_36M, RATE_24M, RATE_12M, RATE_12M},
......
...@@ -87,7 +87,7 @@ static unsigned char abyDefaultSuppRatesB[] = {WLAN_EID_SUPP_RATES, 4, 0x02, 0x0 ...@@ -87,7 +87,7 @@ static unsigned char abyDefaultSuppRatesB[] = {WLAN_EID_SUPP_RATES, 4, 0x02, 0x0
/*--------------------- Static Variables --------------------------*/ /*--------------------- Static Variables --------------------------*/
const unsigned short cwRXBCNTSFOff[MAX_RATE] = static const unsigned short cwRXBCNTSFOff[MAX_RATE] =
{17, 17, 17, 17, 34, 23, 17, 11, 8, 5, 4, 3}; {17, 17, 17, 17, 34, 23, 17, 11, 8, 5, 4, 3};
/*--------------------- Static Functions --------------------------*/ /*--------------------- Static Functions --------------------------*/
...@@ -1576,7 +1576,7 @@ CARDvSafeResetRx( ...@@ -1576,7 +1576,7 @@ CARDvSafeResetRx(
* Return Value: response Control frame rate * Return Value: response Control frame rate
* *
*/ */
unsigned short CARDwGetCCKControlRate(void *pDeviceHandler, unsigned short wRateIdx) static unsigned short CARDwGetCCKControlRate(void *pDeviceHandler, unsigned short wRateIdx)
{ {
PSDevice pDevice = (PSDevice) pDeviceHandler; PSDevice pDevice = (PSDevice) pDeviceHandler;
unsigned int ui = (unsigned int) wRateIdx; unsigned int ui = (unsigned int) wRateIdx;
...@@ -1603,7 +1603,7 @@ unsigned short CARDwGetCCKControlRate(void *pDeviceHandler, unsigned short wRate ...@@ -1603,7 +1603,7 @@ unsigned short CARDwGetCCKControlRate(void *pDeviceHandler, unsigned short wRate
* Return Value: response Control frame rate * Return Value: response Control frame rate
* *
*/ */
unsigned short CARDwGetOFDMControlRate(void *pDeviceHandler, unsigned short wRateIdx) static unsigned short CARDwGetOFDMControlRate(void *pDeviceHandler, unsigned short wRateIdx)
{ {
PSDevice pDevice = (PSDevice) pDeviceHandler; PSDevice pDevice = (PSDevice) pDeviceHandler;
unsigned int ui = (unsigned int) wRateIdx; unsigned int ui = (unsigned int) wRateIdx;
......
...@@ -260,7 +260,7 @@ static CHIP_INFO chip_info_table[] = { ...@@ -260,7 +260,7 @@ static CHIP_INFO chip_info_table[] = {
{0, NULL} {0, NULL}
}; };
const struct pci_device_id vt6655_pci_id_table[] = { static const struct pci_device_id vt6655_pci_id_table[] = {
{ PCI_VDEVICE(VIA, 0x3253), (kernel_ulong_t)chip_info_table}, { PCI_VDEVICE(VIA, 0x3253), (kernel_ulong_t)chip_info_table},
{ 0, } { 0, }
}; };
...@@ -285,7 +285,7 @@ static int device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); ...@@ -285,7 +285,7 @@ static int device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
static int device_notify_reboot(struct notifier_block *, unsigned long event, void *ptr); static int device_notify_reboot(struct notifier_block *, unsigned long event, void *ptr);
static int viawget_suspend(struct pci_dev *pcid, pm_message_t state); static int viawget_suspend(struct pci_dev *pcid, pm_message_t state);
static int viawget_resume(struct pci_dev *pcid); static int viawget_resume(struct pci_dev *pcid);
struct notifier_block device_notifier = { static struct notifier_block device_notifier = {
.notifier_call = device_notify_reboot, .notifier_call = device_notify_reboot,
.next = NULL, .next = NULL,
.priority = 0, .priority = 0,
......
...@@ -234,7 +234,7 @@ s_vProbeChannel( ...@@ -234,7 +234,7 @@ s_vProbeChannel(
* *
-*/ -*/
PSTxMgmtPacket static PSTxMgmtPacket
s_MgrMakeProbeRequest( s_MgrMakeProbeRequest(
PSDevice pDevice, PSDevice pDevice,
PSMgmtObject pMgmt, PSMgmtObject pMgmt,
......
...@@ -3144,7 +3144,7 @@ s_MgrMakeBeacon( ...@@ -3144,7 +3144,7 @@ s_MgrMakeBeacon(
* *
-*/ -*/
PSTxMgmtPacket static PSTxMgmtPacket
s_MgrMakeProbeResponse( s_MgrMakeProbeResponse(
PSDevice pDevice, PSDevice pDevice,
PSMgmtObject pMgmt, PSMgmtObject pMgmt,
...@@ -3326,7 +3326,7 @@ s_MgrMakeProbeResponse( ...@@ -3326,7 +3326,7 @@ s_MgrMakeProbeResponse(
* *
-*/ -*/
PSTxMgmtPacket static PSTxMgmtPacket
s_MgrMakeAssocRequest( s_MgrMakeAssocRequest(
PSDevice pDevice, PSDevice pDevice,
PSMgmtObject pMgmt, PSMgmtObject pMgmt,
...@@ -3586,7 +3586,7 @@ s_MgrMakeAssocRequest( ...@@ -3586,7 +3586,7 @@ s_MgrMakeAssocRequest(
* *
-*/ -*/
PSTxMgmtPacket static PSTxMgmtPacket
s_MgrMakeReAssocRequest( s_MgrMakeReAssocRequest(
PSDevice pDevice, PSDevice pDevice,
PSMgmtObject pMgmt, PSMgmtObject pMgmt,
...@@ -3831,7 +3831,7 @@ s_MgrMakeReAssocRequest( ...@@ -3831,7 +3831,7 @@ s_MgrMakeReAssocRequest(
* *
-*/ -*/
PSTxMgmtPacket static PSTxMgmtPacket
s_MgrMakeAssocResponse( s_MgrMakeAssocResponse(
PSDevice pDevice, PSDevice pDevice,
PSMgmtObject pMgmt, PSMgmtObject pMgmt,
...@@ -3902,7 +3902,7 @@ s_MgrMakeAssocResponse( ...@@ -3902,7 +3902,7 @@ s_MgrMakeAssocResponse(
* *
-*/ -*/
PSTxMgmtPacket static PSTxMgmtPacket
s_MgrMakeReAssocResponse( s_MgrMakeReAssocResponse(
PSDevice pDevice, PSDevice pDevice,
PSMgmtObject pMgmt, PSMgmtObject pMgmt,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册