diff options
author | Peter Huewe <peterhuewe@gmx.de> | 2013-05-18 01:51:58 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-20 21:16:18 +0400 |
commit | d1eef5b602985cffe22d3e7c36792fef8afdc1ad (patch) | |
tree | 30781c665eea56abc211741d71dbe18094d3a3dd | |
parent | e516658559170735b99fe0b3d2d880902d9f92ef (diff) | |
download | linux-d1eef5b602985cffe22d3e7c36792fef8afdc1ad.tar.xz |
staging/btmtk_usb: Mark local functions as static
sparse complains about some local functions not being static:
drivers/staging/btmtk_usb/btmtk_usb.c:50:6:
warning: symbol 'hex_dump' was not declared. Should it be static?
drivers/staging/btmtk_usb/btmtk_usb.c:227:5:
warning: symbol 'checksume16' was not declared. Should it be static?
-> add the static keyword
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/btmtk_usb/btmtk_usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/btmtk_usb/btmtk_usb.c b/drivers/staging/btmtk_usb/btmtk_usb.c index 772c49ed8871..a7539df04914 100644 --- a/drivers/staging/btmtk_usb/btmtk_usb.c +++ b/drivers/staging/btmtk_usb/btmtk_usb.c @@ -47,7 +47,7 @@ static struct usb_driver btmtk_usb_driver; static int btmtk_usb_load_rom_patch(struct btmtk_usb_data *); static int btmtk_usb_load_fw(struct btmtk_usb_data *); -void hex_dump(char *str, u8 *src_buf, u32 src_buf_len) +static void hex_dump(char *str, u8 *src_buf, u32 src_buf_len) { unsigned char *pt; int x; @@ -224,7 +224,7 @@ static void btmtk_usb_cap_init(struct btmtk_usb_data *data) } } -u16 checksume16(u8 *pData, int len) +static u16 checksume16(u8 *pData, int len) { int sum = 0; |