diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-25 08:11:37 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-27 04:00:43 -0500 |
commit | 465e985087e9a15ddbe8ad62d9a983ae434d84c6 (patch) | |
tree | b60a803827675d86b302f965511e0f37797e951d /drivers | |
parent | 215a9c78ae92c0e33261f7973d52d70d9eeb367c (diff) |
drivers/isdn/hardware/eicon: fix sparse warnings: Should it be static?
Impact: Make symbols static.
Fix this sparse warnings:
drivers/isdn/hardware/eicon/message.c:1197:6: warning: symbol 'connect_req' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:1414:6: warning: symbol 'connect_res' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:1570:6: warning: symbol 'connect_a_res' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:1576:6: warning: symbol 'disconnect_req' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:1631:6: warning: symbol 'disconnect_res' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:1658:6: warning: symbol 'listen_req' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:1707:6: warning: symbol 'info_req' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:1816:6: warning: symbol 'info_res' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:1822:6: warning: symbol 'alert_req' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:1852:6: warning: symbol 'facility_req' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:2602:6: warning: symbol 'facility_res' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:2608:6: warning: symbol 'connect_b3_req' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:2842:6: warning: symbol 'connect_b3_res' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:2957:6: warning: symbol 'connect_b3_a_res' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:2977:6: warning: symbol 'disconnect_b3_req' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:3033:6: warning: symbol 'disconnect_b3_res' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:3089:6: warning: symbol 'data_b3_req' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:3166:6: warning: symbol 'data_b3_res' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:3199:6: warning: symbol 'reset_b3_req' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:3240:6: warning: symbol 'reset_b3_res' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:3264:6: warning: symbol 'connect_b3_t90_a_res' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:3298:6: warning: symbol 'select_b_req' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:8692:6: warning: symbol 'sig_req' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:8792:6: warning: symbol 'send_data' was not declared. Should it be static?
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/isdn/hardware/eicon/message.c | 70 |
1 files changed, 46 insertions, 24 deletions
diff --git a/drivers/isdn/hardware/eicon/message.c b/drivers/isdn/hardware/eicon/message.c index 4cc94f200b72..31f91c18c698 100644 --- a/drivers/isdn/hardware/eicon/message.c +++ b/drivers/isdn/hardware/eicon/message.c | |||
@@ -1194,7 +1194,8 @@ static char hex_digit_table[0x10] = | |||
1194 | /* translation function for each message */ | 1194 | /* translation function for each message */ |
1195 | /*------------------------------------------------------------------*/ | 1195 | /*------------------------------------------------------------------*/ |
1196 | 1196 | ||
1197 | byte connect_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 1197 | static byte connect_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
1198 | PLCI *plci, APPL *appl, API_PARSE *parms) | ||
1198 | { | 1199 | { |
1199 | word ch; | 1200 | word ch; |
1200 | word i; | 1201 | word i; |
@@ -1411,7 +1412,8 @@ byte connect_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
1411 | return 2; | 1412 | return 2; |
1412 | } | 1413 | } |
1413 | 1414 | ||
1414 | byte connect_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 1415 | static byte connect_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
1416 | PLCI *plci, APPL *appl, API_PARSE *parms) | ||
1415 | { | 1417 | { |
1416 | word i, Info; | 1418 | word i, Info; |
1417 | word Reject; | 1419 | word Reject; |
@@ -1567,13 +1569,15 @@ byte connect_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
1567 | return 1; | 1569 | return 1; |
1568 | } | 1570 | } |
1569 | 1571 | ||
1570 | byte connect_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 1572 | static byte connect_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
1573 | PLCI *plci, APPL *appl, API_PARSE *msg) | ||
1571 | { | 1574 | { |
1572 | dbug(1,dprintf("connect_a_res")); | 1575 | dbug(1,dprintf("connect_a_res")); |
1573 | return false; | 1576 | return false; |
1574 | } | 1577 | } |
1575 | 1578 | ||
1576 | byte disconnect_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 1579 | static byte disconnect_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
1580 | PLCI *plci, APPL *appl, API_PARSE *msg) | ||
1577 | { | 1581 | { |
1578 | word Info; | 1582 | word Info; |
1579 | word i; | 1583 | word i; |
@@ -1628,7 +1632,8 @@ byte disconnect_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc | |||
1628 | return false; | 1632 | return false; |
1629 | } | 1633 | } |
1630 | 1634 | ||
1631 | byte disconnect_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 1635 | static byte disconnect_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
1636 | PLCI *plci, APPL *appl, API_PARSE *msg) | ||
1632 | { | 1637 | { |
1633 | dbug(1,dprintf("disconnect_res")); | 1638 | dbug(1,dprintf("disconnect_res")); |
1634 | if(plci) | 1639 | if(plci) |
@@ -1655,7 +1660,8 @@ byte disconnect_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc | |||
1655 | return 0; | 1660 | return 0; |
1656 | } | 1661 | } |
1657 | 1662 | ||
1658 | byte listen_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 1663 | static byte listen_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
1664 | PLCI *plci, APPL *appl, API_PARSE *parms) | ||
1659 | { | 1665 | { |
1660 | word Info; | 1666 | word Info; |
1661 | byte i; | 1667 | byte i; |
@@ -1704,7 +1710,8 @@ byte listen_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, A | |||
1704 | return false; | 1710 | return false; |
1705 | } | 1711 | } |
1706 | 1712 | ||
1707 | byte info_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 1713 | static byte info_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
1714 | PLCI *plci, APPL *appl, API_PARSE *msg) | ||
1708 | { | 1715 | { |
1709 | word i; | 1716 | word i; |
1710 | API_PARSE * ai; | 1717 | API_PARSE * ai; |
@@ -1813,13 +1820,15 @@ byte info_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APP | |||
1813 | return false; | 1820 | return false; |
1814 | } | 1821 | } |
1815 | 1822 | ||
1816 | byte info_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 1823 | static byte info_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
1824 | PLCI *plci, APPL *appl, API_PARSE *msg) | ||
1817 | { | 1825 | { |
1818 | dbug(1,dprintf("info_res")); | 1826 | dbug(1,dprintf("info_res")); |
1819 | return false; | 1827 | return false; |
1820 | } | 1828 | } |
1821 | 1829 | ||
1822 | byte alert_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 1830 | static byte alert_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
1831 | PLCI *plci, APPL *appl, API_PARSE *msg) | ||
1823 | { | 1832 | { |
1824 | word Info; | 1833 | word Info; |
1825 | byte ret; | 1834 | byte ret; |
@@ -1849,7 +1858,8 @@ byte alert_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, AP | |||
1849 | return ret; | 1858 | return ret; |
1850 | } | 1859 | } |
1851 | 1860 | ||
1852 | byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 1861 | static byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
1862 | PLCI *plci, APPL *appl, API_PARSE *msg) | ||
1853 | { | 1863 | { |
1854 | word Info = 0; | 1864 | word Info = 0; |
1855 | word i = 0; | 1865 | word i = 0; |
@@ -2599,13 +2609,15 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
2599 | return false; | 2609 | return false; |
2600 | } | 2610 | } |
2601 | 2611 | ||
2602 | byte facility_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 2612 | static byte facility_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
2613 | PLCI *plci, APPL *appl, API_PARSE *msg) | ||
2603 | { | 2614 | { |
2604 | dbug(1,dprintf("facility_res")); | 2615 | dbug(1,dprintf("facility_res")); |
2605 | return false; | 2616 | return false; |
2606 | } | 2617 | } |
2607 | 2618 | ||
2608 | byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 2619 | static byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
2620 | PLCI *plci, APPL *appl, API_PARSE *parms) | ||
2609 | { | 2621 | { |
2610 | word Info = 0; | 2622 | word Info = 0; |
2611 | byte req; | 2623 | byte req; |
@@ -2839,7 +2851,8 @@ byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc | |||
2839 | return false; | 2851 | return false; |
2840 | } | 2852 | } |
2841 | 2853 | ||
2842 | byte connect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 2854 | static byte connect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
2855 | PLCI *plci, APPL *appl, API_PARSE *parms) | ||
2843 | { | 2856 | { |
2844 | word ncci; | 2857 | word ncci; |
2845 | API_PARSE * ncpi; | 2858 | API_PARSE * ncpi; |
@@ -2954,7 +2967,8 @@ byte connect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc | |||
2954 | return false; | 2967 | return false; |
2955 | } | 2968 | } |
2956 | 2969 | ||
2957 | byte connect_b3_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 2970 | static byte connect_b3_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
2971 | PLCI *plci, APPL *appl, API_PARSE *parms) | ||
2958 | { | 2972 | { |
2959 | word ncci; | 2973 | word ncci; |
2960 | 2974 | ||
@@ -2974,7 +2988,8 @@ byte connect_b3_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * p | |||
2974 | return false; | 2988 | return false; |
2975 | } | 2989 | } |
2976 | 2990 | ||
2977 | byte disconnect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 2991 | static byte disconnect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
2992 | PLCI *plci, APPL *appl, API_PARSE *parms) | ||
2978 | { | 2993 | { |
2979 | word Info; | 2994 | word Info; |
2980 | word ncci; | 2995 | word ncci; |
@@ -3030,7 +3045,8 @@ byte disconnect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * | |||
3030 | return false; | 3045 | return false; |
3031 | } | 3046 | } |
3032 | 3047 | ||
3033 | byte disconnect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 3048 | static byte disconnect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
3049 | PLCI *plci, APPL *appl, API_PARSE *parms) | ||
3034 | { | 3050 | { |
3035 | word ncci; | 3051 | word ncci; |
3036 | word i; | 3052 | word i; |
@@ -3086,7 +3102,8 @@ byte disconnect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * | |||
3086 | return false; | 3102 | return false; |
3087 | } | 3103 | } |
3088 | 3104 | ||
3089 | byte data_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 3105 | static byte data_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
3106 | PLCI *plci, APPL *appl, API_PARSE *parms) | ||
3090 | { | 3107 | { |
3091 | NCCI *ncci_ptr; | 3108 | NCCI *ncci_ptr; |
3092 | DATA_B3_DESC *data; | 3109 | DATA_B3_DESC *data; |
@@ -3163,7 +3180,8 @@ byte data_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
3163 | return false; | 3180 | return false; |
3164 | } | 3181 | } |
3165 | 3182 | ||
3166 | byte data_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 3183 | static byte data_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
3184 | PLCI *plci, APPL *appl, API_PARSE *parms) | ||
3167 | { | 3185 | { |
3168 | word n; | 3186 | word n; |
3169 | word ncci; | 3187 | word ncci; |
@@ -3196,7 +3214,8 @@ byte data_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
3196 | return false; | 3214 | return false; |
3197 | } | 3215 | } |
3198 | 3216 | ||
3199 | byte reset_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 3217 | static byte reset_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
3218 | PLCI *plci, APPL *appl, API_PARSE *parms) | ||
3200 | { | 3219 | { |
3201 | word Info; | 3220 | word Info; |
3202 | word ncci; | 3221 | word ncci; |
@@ -3237,7 +3256,8 @@ byte reset_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
3237 | return false; | 3256 | return false; |
3238 | } | 3257 | } |
3239 | 3258 | ||
3240 | byte reset_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 3259 | static byte reset_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
3260 | PLCI *plci, APPL *appl, API_PARSE *parms) | ||
3241 | { | 3261 | { |
3242 | word ncci; | 3262 | word ncci; |
3243 | 3263 | ||
@@ -3261,7 +3281,8 @@ byte reset_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
3261 | return false; | 3281 | return false; |
3262 | } | 3282 | } |
3263 | 3283 | ||
3264 | byte connect_b3_t90_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 3284 | static byte connect_b3_t90_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
3285 | PLCI *plci, APPL *appl, API_PARSE *parms) | ||
3265 | { | 3286 | { |
3266 | word ncci; | 3287 | word ncci; |
3267 | API_PARSE * ncpi; | 3288 | API_PARSE * ncpi; |
@@ -3295,7 +3316,8 @@ byte connect_b3_t90_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI | |||
3295 | } | 3316 | } |
3296 | 3317 | ||
3297 | 3318 | ||
3298 | byte select_b_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 3319 | static byte select_b_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
3320 | PLCI *plci, APPL *appl, API_PARSE *msg) | ||
3299 | { | 3321 | { |
3300 | word Info=0; | 3322 | word Info=0; |
3301 | word i; | 3323 | word i; |
@@ -8689,7 +8711,7 @@ static word add_modem_b23 (PLCI * plci, API_PARSE* bp_parms) | |||
8689 | /* send a request for the signaling entity */ | 8711 | /* send a request for the signaling entity */ |
8690 | /*------------------------------------------------------------------*/ | 8712 | /*------------------------------------------------------------------*/ |
8691 | 8713 | ||
8692 | void sig_req(PLCI * plci, byte req, byte Id) | 8714 | static void sig_req(PLCI *plci, byte req, byte Id) |
8693 | { | 8715 | { |
8694 | if(!plci) return; | 8716 | if(!plci) return; |
8695 | if(plci->adapter->adapter_disabled) return; | 8717 | if(plci->adapter->adapter_disabled) return; |
@@ -8789,7 +8811,7 @@ static void send_req(PLCI *plci) | |||
8789 | dbug(1,dprintf("send_ok")); | 8811 | dbug(1,dprintf("send_ok")); |
8790 | } | 8812 | } |
8791 | 8813 | ||
8792 | void send_data(PLCI * plci) | 8814 | static void send_data(PLCI *plci) |
8793 | { | 8815 | { |
8794 | DIVA_CAPI_ADAPTER * a; | 8816 | DIVA_CAPI_ADAPTER * a; |
8795 | DATA_B3_DESC * data; | 8817 | DATA_B3_DESC * data; |