Commit ae24e13a authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

staging:wlan-ng: fix sparse warnings

drivers/staging/wlan-ng/prism2fw.c:240:5: warning: symbol 'prism2_fwapply' was not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:379:5: warning: symbol 'crcimage' was not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:443:6: warning: symbol 'free_chunks' was not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:465:6: warning: symbol 'free_srecs' was not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:492:5: warning: symbol 'mkimage' was not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:585:5: warning: symbol 'mkpdrlist' was not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:659:5: warning: symbol 'plugimage' was not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:767:5: warning: symbol 'read_cardpda' was not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:857:5: warning: symbol 'read_fwfile' was not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:981:5: warning: symbol 'writeimage' was not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:1133:5: warning: symbol 'validate_identity' was not declared. Should it be static?
Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 023aeaa4
...@@ -237,7 +237,7 @@ int prism2_fwtry(struct usb_device *udev, wlandevice_t *wlandev) ...@@ -237,7 +237,7 @@ int prism2_fwtry(struct usb_device *udev, wlandevice_t *wlandev)
* 0 - success * 0 - success
* ~0 - failure * ~0 - failure
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int prism2_fwapply(const struct ihex_binrec *rfptr, wlandevice_t *wlandev) static int prism2_fwapply(const struct ihex_binrec *rfptr, wlandevice_t *wlandev)
{ {
signed int result = 0; signed int result = 0;
struct p80211msg_dot11req_mibget getmsg; struct p80211msg_dot11req_mibget getmsg;
...@@ -376,7 +376,7 @@ int prism2_fwapply(const struct ihex_binrec *rfptr, wlandevice_t *wlandev) ...@@ -376,7 +376,7 @@ int prism2_fwapply(const struct ihex_binrec *rfptr, wlandevice_t *wlandev)
* 0 success * 0 success
* ~0 failure * ~0 failure
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int crcimage(struct imgchunk *fchunk, unsigned int nfchunks, static int crcimage(struct imgchunk *fchunk, unsigned int nfchunks,
struct s3crcrec *s3crc, unsigned int ns3crc) struct s3crcrec *s3crc, unsigned int ns3crc)
{ {
int result = 0; int result = 0;
...@@ -440,7 +440,7 @@ int crcimage(struct imgchunk *fchunk, unsigned int nfchunks, ...@@ -440,7 +440,7 @@ int crcimage(struct imgchunk *fchunk, unsigned int nfchunks,
* Returns: * Returns:
* nothing * nothing
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
void free_chunks(struct imgchunk *fchunk, unsigned int *nfchunks) static void free_chunks(struct imgchunk *fchunk, unsigned int *nfchunks)
{ {
int i; int i;
for (i = 0; i < *nfchunks; i++) for (i = 0; i < *nfchunks; i++)
...@@ -462,7 +462,7 @@ void free_chunks(struct imgchunk *fchunk, unsigned int *nfchunks) ...@@ -462,7 +462,7 @@ void free_chunks(struct imgchunk *fchunk, unsigned int *nfchunks)
* Returns: * Returns:
* nothing * nothing
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
void free_srecs(void) static void free_srecs(void)
{ {
ns3data = 0; ns3data = 0;
memset(s3data, 0, sizeof(s3data)); memset(s3data, 0, sizeof(s3data));
...@@ -489,7 +489,7 @@ void free_srecs(void) ...@@ -489,7 +489,7 @@ void free_srecs(void)
* 0 - success * 0 - success
* ~0 - failure (probably an errno) * ~0 - failure (probably an errno)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int mkimage(struct imgchunk *clist, unsigned int *ccnt) static int mkimage(struct imgchunk *clist, unsigned int *ccnt)
{ {
int result = 0; int result = 0;
int i; int i;
...@@ -582,7 +582,7 @@ int mkimage(struct imgchunk *clist, unsigned int *ccnt) ...@@ -582,7 +582,7 @@ int mkimage(struct imgchunk *clist, unsigned int *ccnt)
* 0 - success * 0 - success
* ~0 - failure (probably an errno) * ~0 - failure (probably an errno)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int mkpdrlist(struct pda *pda) static int mkpdrlist(struct pda *pda)
{ {
int result = 0; int result = 0;
u16 *pda16 = (u16 *) pda->buf; u16 *pda16 = (u16 *) pda->buf;
...@@ -656,7 +656,7 @@ int mkpdrlist(struct pda *pda) ...@@ -656,7 +656,7 @@ int mkpdrlist(struct pda *pda)
* 0 success * 0 success
* ~0 failure * ~0 failure
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int plugimage(struct imgchunk *fchunk, unsigned int nfchunks, static int plugimage(struct imgchunk *fchunk, unsigned int nfchunks,
struct s3plugrec *s3plug, unsigned int ns3plug, struct pda *pda) struct s3plugrec *s3plug, unsigned int ns3plug, struct pda *pda)
{ {
int result = 0; int result = 0;
...@@ -764,7 +764,7 @@ int plugimage(struct imgchunk *fchunk, unsigned int nfchunks, ...@@ -764,7 +764,7 @@ int plugimage(struct imgchunk *fchunk, unsigned int nfchunks,
* 0 - success * 0 - success
* ~0 - failure (probably an errno) * ~0 - failure (probably an errno)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int read_cardpda(struct pda *pda, wlandevice_t *wlandev) static int read_cardpda(struct pda *pda, wlandevice_t *wlandev)
{ {
int result = 0; int result = 0;
struct p80211msg_p2req_readpda msg; struct p80211msg_p2req_readpda msg;
...@@ -854,7 +854,7 @@ int read_cardpda(struct pda *pda, wlandevice_t *wlandev) ...@@ -854,7 +854,7 @@ int read_cardpda(struct pda *pda, wlandevice_t *wlandev)
* 0 - success * 0 - success
* ~0 - failure (probably an errno) * ~0 - failure (probably an errno)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int read_fwfile(const struct ihex_binrec *record) static int read_fwfile(const struct ihex_binrec *record)
{ {
int i; int i;
int rcnt = 0; int rcnt = 0;
...@@ -978,7 +978,7 @@ int read_fwfile(const struct ihex_binrec *record) ...@@ -978,7 +978,7 @@ int read_fwfile(const struct ihex_binrec *record)
* 0 success * 0 success
* ~0 failure * ~0 failure
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int writeimage(wlandevice_t *wlandev, struct imgchunk *fchunk, static int writeimage(wlandevice_t *wlandev, struct imgchunk *fchunk,
unsigned int nfchunks) unsigned int nfchunks)
{ {
int result = 0; int result = 0;
...@@ -1130,7 +1130,7 @@ int writeimage(wlandevice_t *wlandev, struct imgchunk *fchunk, ...@@ -1130,7 +1130,7 @@ int writeimage(wlandevice_t *wlandev, struct imgchunk *fchunk,
return result; return result;
} }
int validate_identity(void) static int validate_identity(void)
{ {
int i; int i;
int result = 1; int result = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment