diff options
| author | Pavan Savoy <pavan_savoy@ti.com> | 2012-08-03 15:49:40 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-16 13:11:45 -0400 |
| commit | 27712b3928bec9b1a889d7f60d718a35ca6c23b3 (patch) | |
| tree | 9380ef14f01441d30653c72458e8e66e40cca6f3 /drivers/misc/ti-st | |
| parent | eccf2979b2c034b516e01b8a104c3739f7ef07d1 (diff) | |
drivers/misc/ti-st: remove sparse warnings
remove sparse warnings by assigning right storage specifiers to functions and
also clean-up the declarations in the include/linux/ti_wilink_st.h
Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/ti-st')
| -rw-r--r-- | drivers/misc/ti-st/st_core.c | 12 | ||||
| -rw-r--r-- | drivers/misc/ti-st/st_kim.c | 12 |
2 files changed, 13 insertions, 11 deletions
diff --git a/drivers/misc/ti-st/st_core.c b/drivers/misc/ti-st/st_core.c index acfaeeb9e01a..46937b107261 100644 --- a/drivers/misc/ti-st/st_core.c +++ b/drivers/misc/ti-st/st_core.c | |||
| @@ -30,11 +30,13 @@ | |||
| 30 | 30 | ||
| 31 | #include <linux/ti_wilink_st.h> | 31 | #include <linux/ti_wilink_st.h> |
| 32 | 32 | ||
| 33 | extern void st_kim_recv(void *, const unsigned char *, long); | ||
| 34 | void st_int_recv(void *, const unsigned char *, long); | ||
| 33 | /* function pointer pointing to either, | 35 | /* function pointer pointing to either, |
| 34 | * st_kim_recv during registration to receive fw download responses | 36 | * st_kim_recv during registration to receive fw download responses |
| 35 | * st_int_recv after registration to receive proto stack responses | 37 | * st_int_recv after registration to receive proto stack responses |
| 36 | */ | 38 | */ |
| 37 | void (*st_recv) (void*, const unsigned char*, long); | 39 | static void (*st_recv) (void *, const unsigned char *, long); |
| 38 | 40 | ||
| 39 | /********************************************************************/ | 41 | /********************************************************************/ |
| 40 | static void add_channel_to_table(struct st_data_s *st_gdata, | 42 | static void add_channel_to_table(struct st_data_s *st_gdata, |
| @@ -100,7 +102,7 @@ int st_int_write(struct st_data_s *st_gdata, | |||
| 100 | * push the skb received to relevant | 102 | * push the skb received to relevant |
| 101 | * protocol stacks | 103 | * protocol stacks |
| 102 | */ | 104 | */ |
| 103 | void st_send_frame(unsigned char chnl_id, struct st_data_s *st_gdata) | 105 | static void st_send_frame(unsigned char chnl_id, struct st_data_s *st_gdata) |
| 104 | { | 106 | { |
| 105 | pr_debug(" %s(prot:%d) ", __func__, chnl_id); | 107 | pr_debug(" %s(prot:%d) ", __func__, chnl_id); |
| 106 | 108 | ||
| @@ -140,7 +142,7 @@ void st_send_frame(unsigned char chnl_id, struct st_data_s *st_gdata) | |||
| 140 | * This function is being called with spin lock held, protocol drivers are | 142 | * This function is being called with spin lock held, protocol drivers are |
| 141 | * only expected to complete their waits and do nothing more than that. | 143 | * only expected to complete their waits and do nothing more than that. |
| 142 | */ | 144 | */ |
| 143 | void st_reg_complete(struct st_data_s *st_gdata, char err) | 145 | static void st_reg_complete(struct st_data_s *st_gdata, char err) |
| 144 | { | 146 | { |
| 145 | unsigned char i = 0; | 147 | unsigned char i = 0; |
| 146 | pr_info(" %s ", __func__); | 148 | pr_info(" %s ", __func__); |
| @@ -379,7 +381,7 @@ done: | |||
| 379 | * completely, return that skb which has the pending data. | 381 | * completely, return that skb which has the pending data. |
| 380 | * In normal cases, return top of txq. | 382 | * In normal cases, return top of txq. |
| 381 | */ | 383 | */ |
| 382 | struct sk_buff *st_int_dequeue(struct st_data_s *st_gdata) | 384 | static struct sk_buff *st_int_dequeue(struct st_data_s *st_gdata) |
| 383 | { | 385 | { |
| 384 | struct sk_buff *returning_skb; | 386 | struct sk_buff *returning_skb; |
| 385 | 387 | ||
| @@ -401,7 +403,7 @@ struct sk_buff *st_int_dequeue(struct st_data_s *st_gdata) | |||
| 401 | * txq and waitq needs protection since the other contexts | 403 | * txq and waitq needs protection since the other contexts |
| 402 | * may be sending data, waking up chip. | 404 | * may be sending data, waking up chip. |
| 403 | */ | 405 | */ |
| 404 | void st_int_enqueue(struct st_data_s *st_gdata, struct sk_buff *skb) | 406 | static void st_int_enqueue(struct st_data_s *st_gdata, struct sk_buff *skb) |
| 405 | { | 407 | { |
| 406 | unsigned long flags = 0; | 408 | unsigned long flags = 0; |
| 407 | 409 | ||
diff --git a/drivers/misc/ti-st/st_kim.c b/drivers/misc/ti-st/st_kim.c index 5c99995f4eac..847406abd0f8 100644 --- a/drivers/misc/ti-st/st_kim.c +++ b/drivers/misc/ti-st/st_kim.c | |||
| @@ -63,7 +63,7 @@ static struct platform_device *st_get_plat_device(int id) | |||
| 63 | * in case of error don't complete so that waiting for proper | 63 | * in case of error don't complete so that waiting for proper |
| 64 | * response times out | 64 | * response times out |
| 65 | */ | 65 | */ |
| 66 | void validate_firmware_response(struct kim_data_s *kim_gdata) | 66 | static void validate_firmware_response(struct kim_data_s *kim_gdata) |
| 67 | { | 67 | { |
| 68 | struct sk_buff *skb = kim_gdata->rx_skb; | 68 | struct sk_buff *skb = kim_gdata->rx_skb; |
| 69 | if (unlikely(skb->data[5] != 0)) { | 69 | if (unlikely(skb->data[5] != 0)) { |
| @@ -119,7 +119,7 @@ static inline int kim_check_data_len(struct kim_data_s *kim_gdata, int len) | |||
| 119 | * have been observed to come in bursts of different | 119 | * have been observed to come in bursts of different |
| 120 | * tty_receive and hence the logic | 120 | * tty_receive and hence the logic |
| 121 | */ | 121 | */ |
| 122 | void kim_int_recv(struct kim_data_s *kim_gdata, | 122 | static void kim_int_recv(struct kim_data_s *kim_gdata, |
| 123 | const unsigned char *data, long count) | 123 | const unsigned char *data, long count) |
| 124 | { | 124 | { |
| 125 | const unsigned char *ptr; | 125 | const unsigned char *ptr; |
| @@ -236,7 +236,7 @@ static long read_local_version(struct kim_data_s *kim_gdata, char *bts_scr_name) | |||
| 236 | return 0; | 236 | return 0; |
| 237 | } | 237 | } |
| 238 | 238 | ||
| 239 | void skip_change_remote_baud(unsigned char **ptr, long *len) | 239 | static void skip_change_remote_baud(unsigned char **ptr, long *len) |
| 240 | { | 240 | { |
| 241 | unsigned char *nxt_action, *cur_action; | 241 | unsigned char *nxt_action, *cur_action; |
| 242 | cur_action = *ptr; | 242 | cur_action = *ptr; |
| @@ -688,7 +688,7 @@ static const struct file_operations list_debugfs_fops = { | |||
| 688 | * board-*.c file | 688 | * board-*.c file |
| 689 | */ | 689 | */ |
| 690 | 690 | ||
| 691 | struct dentry *kim_debugfs_dir; | 691 | static struct dentry *kim_debugfs_dir; |
| 692 | static int kim_probe(struct platform_device *pdev) | 692 | static int kim_probe(struct platform_device *pdev) |
| 693 | { | 693 | { |
| 694 | long status; | 694 | long status; |
| @@ -769,7 +769,7 @@ static int kim_remove(struct platform_device *pdev) | |||
| 769 | return 0; | 769 | return 0; |
| 770 | } | 770 | } |
| 771 | 771 | ||
| 772 | int kim_suspend(struct platform_device *pdev, pm_message_t state) | 772 | static int kim_suspend(struct platform_device *pdev, pm_message_t state) |
| 773 | { | 773 | { |
| 774 | struct ti_st_plat_data *pdata = pdev->dev.platform_data; | 774 | struct ti_st_plat_data *pdata = pdev->dev.platform_data; |
| 775 | 775 | ||
| @@ -779,7 +779,7 @@ int kim_suspend(struct platform_device *pdev, pm_message_t state) | |||
| 779 | return -EOPNOTSUPP; | 779 | return -EOPNOTSUPP; |
| 780 | } | 780 | } |
| 781 | 781 | ||
| 782 | int kim_resume(struct platform_device *pdev) | 782 | static int kim_resume(struct platform_device *pdev) |
| 783 | { | 783 | { |
| 784 | struct ti_st_plat_data *pdata = pdev->dev.platform_data; | 784 | struct ti_st_plat_data *pdata = pdev->dev.platform_data; |
| 785 | 785 | ||
