diff options
author | Hannes Eder <hannes@hanneseder.net> | 2008-12-16 04:17:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-16 04:17:33 -0500 |
commit | 4ee59d54c3f91f1f3ad7f2856b27981414430f9e (patch) | |
tree | e2b162080515d912d87a66e37519b5f53478f765 | |
parent | b1879204dda06a92a4ff55b681c99ee185180003 (diff) |
isdn: eicon: fix sparse warning: make global functions static
Fix this sparse warnings by making the functions static:
drivers/isdn/hardware/eicon/di.c:356:6: warning: symbol 'isdn_rc' was not declared. Should it be static?
drivers/isdn/hardware/eicon/di.c:558:6: warning: symbol 'isdn_ind' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:595:6: warning: symbol 'api_parse' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:634:6: warning: symbol 'api_save_msg' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:666:6: warning: symbol 'api_load_msg' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:3417:6: warning: symbol 'manufacturer_req' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:3745:6: warning: symbol 'manufacturer_res' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:4077:6: warning: symbol 'control_rc' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:4743:6: warning: symbol 'data_rc' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:4779:6: warning: symbol 'data_ack' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:4805:6: warning: symbol 'sig_ind' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:6173:6: warning: symbol 'SendInfo' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:6349:6: warning: symbol 'SendMultiIE' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:6468:6: warning: symbol 'nl_ind' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:7250:6: warning: symbol 'get_plci' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:7409:6: warning: symbol 'add_d' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:7427:6: warning: symbol 'add_ai' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:7448:6: warning: symbol 'add_b1' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:7912:6: warning: symbol 'add_b23' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:8709:6: warning: symbol 'nl_req_ncci' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:8731:6: warning: symbol 'send_req' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:8866:6: warning: symbol 'listen_check' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:8909:6: warning: symbol 'IndParse' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:8994:6: warning: symbol 'ie_compare' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:9003:6: warning: symbol 'find_cip' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:9071:6: warning: symbol 'SetVoiceChannel' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:9089:6: warning: symbol 'VoiceChannelOff' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:9102:6: warning: symbol 'AdvCodecSupport' was not declared. Should it be static?
drivers/isdn/hardware/eicon/message.c:9198:6: warning: symbol 'CodecIdCheck' was not declared. Should it be static?
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/isdn/hardware/eicon/di.c | 28 | ||||
-rw-r--r-- | drivers/isdn/hardware/eicon/message.c | 60 |
2 files changed, 47 insertions, 41 deletions
diff --git a/drivers/isdn/hardware/eicon/di.c b/drivers/isdn/hardware/eicon/di.c index 10760b3c5eb5..b029d130eb21 100644 --- a/drivers/isdn/hardware/eicon/di.c +++ b/drivers/isdn/hardware/eicon/di.c | |||
@@ -353,13 +353,13 @@ void scom_clear_int(ADAPTER * a) | |||
353 | /*------------------------------------------------------------------*/ | 353 | /*------------------------------------------------------------------*/ |
354 | /* return code handler */ | 354 | /* return code handler */ |
355 | /*------------------------------------------------------------------*/ | 355 | /*------------------------------------------------------------------*/ |
356 | byte isdn_rc(ADAPTER * a, | 356 | static byte isdn_rc(ADAPTER *a, |
357 | byte Rc, | 357 | byte Rc, |
358 | byte Id, | 358 | byte Id, |
359 | byte Ch, | 359 | byte Ch, |
360 | word Ref, | 360 | word Ref, |
361 | dword extended_info_type, | 361 | dword extended_info_type, |
362 | dword extended_info) | 362 | dword extended_info) |
363 | { | 363 | { |
364 | ENTITY * this; | 364 | ENTITY * this; |
365 | byte e_no; | 365 | byte e_no; |
@@ -555,13 +555,13 @@ byte isdn_rc(ADAPTER * a, | |||
555 | /*------------------------------------------------------------------*/ | 555 | /*------------------------------------------------------------------*/ |
556 | /* indication handler */ | 556 | /* indication handler */ |
557 | /*------------------------------------------------------------------*/ | 557 | /*------------------------------------------------------------------*/ |
558 | byte isdn_ind(ADAPTER * a, | 558 | static byte isdn_ind(ADAPTER *a, |
559 | byte Ind, | 559 | byte Ind, |
560 | byte Id, | 560 | byte Id, |
561 | byte Ch, | 561 | byte Ch, |
562 | PBUFFER * RBuffer, | 562 | PBUFFER *RBuffer, |
563 | byte MInd, | 563 | byte MInd, |
564 | word MLength) | 564 | word MLength) |
565 | { | 565 | { |
566 | ENTITY * this; | 566 | ENTITY * this; |
567 | word clength; | 567 | word clength; |
diff --git a/drivers/isdn/hardware/eicon/message.c b/drivers/isdn/hardware/eicon/message.c index 599fed88222d..4cc94f200b72 100644 --- a/drivers/isdn/hardware/eicon/message.c +++ b/drivers/isdn/hardware/eicon/message.c | |||
@@ -592,7 +592,7 @@ word api_put(APPL * appl, CAPI_MSG * msg) | |||
592 | /* api_parse function, check the format of api messages */ | 592 | /* api_parse function, check the format of api messages */ |
593 | /*------------------------------------------------------------------*/ | 593 | /*------------------------------------------------------------------*/ |
594 | 594 | ||
595 | word api_parse(byte * msg, word length, byte * format, API_PARSE * parms) | 595 | static word api_parse(byte *msg, word length, byte *format, API_PARSE *parms) |
596 | { | 596 | { |
597 | word i; | 597 | word i; |
598 | word p; | 598 | word p; |
@@ -631,7 +631,7 @@ word api_parse(byte * msg, word length, byte * format, API_PARSE * parms) | |||
631 | return false; | 631 | return false; |
632 | } | 632 | } |
633 | 633 | ||
634 | void api_save_msg(API_PARSE *in, byte *format, API_SAVE *out) | 634 | static void api_save_msg(API_PARSE *in, byte *format, API_SAVE *out) |
635 | { | 635 | { |
636 | word i, j, n = 0; | 636 | word i, j, n = 0; |
637 | byte *p; | 637 | byte *p; |
@@ -663,7 +663,7 @@ void api_save_msg(API_PARSE *in, byte *format, API_SAVE *out) | |||
663 | out->parms[i].length = 0; | 663 | out->parms[i].length = 0; |
664 | } | 664 | } |
665 | 665 | ||
666 | void api_load_msg(API_SAVE *in, API_PARSE *out) | 666 | static void api_load_msg(API_SAVE *in, API_PARSE *out) |
667 | { | 667 | { |
668 | word i; | 668 | word i; |
669 | 669 | ||
@@ -3414,7 +3414,8 @@ byte select_b_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, | |||
3414 | return false; | 3414 | return false; |
3415 | } | 3415 | } |
3416 | 3416 | ||
3417 | byte manufacturer_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) | 3417 | static byte manufacturer_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
3418 | PLCI *plci, APPL *appl, API_PARSE *parms) | ||
3418 | { | 3419 | { |
3419 | word command; | 3420 | word command; |
3420 | word i; | 3421 | word i; |
@@ -3742,7 +3743,8 @@ byte manufacturer_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * p | |||
3742 | } | 3743 | } |
3743 | 3744 | ||
3744 | 3745 | ||
3745 | byte manufacturer_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) | 3746 | static byte manufacturer_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, |
3747 | PLCI *plci, APPL *appl, API_PARSE *msg) | ||
3746 | { | 3748 | { |
3747 | word indication; | 3749 | word indication; |
3748 | 3750 | ||
@@ -4074,7 +4076,8 @@ capi_callback_suffix: | |||
4074 | } | 4076 | } |
4075 | 4077 | ||
4076 | 4078 | ||
4077 | void control_rc(PLCI * plci, byte req, byte rc, byte ch, byte global_req, byte nl_rc) | 4079 | static void control_rc(PLCI *plci, byte req, byte rc, byte ch, byte global_req, |
4080 | byte nl_rc) | ||
4078 | { | 4081 | { |
4079 | dword Id; | 4082 | dword Id; |
4080 | dword rId; | 4083 | dword rId; |
@@ -4740,7 +4743,7 @@ void control_rc(PLCI * plci, byte req, byte rc, byte ch, byte global_req, byte | |||
4740 | } | 4743 | } |
4741 | } | 4744 | } |
4742 | 4745 | ||
4743 | void data_rc(PLCI * plci, byte ch) | 4746 | static void data_rc(PLCI *plci, byte ch) |
4744 | { | 4747 | { |
4745 | dword Id; | 4748 | dword Id; |
4746 | DIVA_CAPI_ADAPTER * a; | 4749 | DIVA_CAPI_ADAPTER * a; |
@@ -4776,7 +4779,7 @@ void data_rc(PLCI * plci, byte ch) | |||
4776 | } | 4779 | } |
4777 | } | 4780 | } |
4778 | 4781 | ||
4779 | void data_ack(PLCI * plci, byte ch) | 4782 | static void data_ack(PLCI *plci, byte ch) |
4780 | { | 4783 | { |
4781 | dword Id; | 4784 | dword Id; |
4782 | DIVA_CAPI_ADAPTER * a; | 4785 | DIVA_CAPI_ADAPTER * a; |
@@ -4802,7 +4805,7 @@ void data_ack(PLCI * plci, byte ch) | |||
4802 | } | 4805 | } |
4803 | } | 4806 | } |
4804 | 4807 | ||
4805 | void sig_ind(PLCI * plci) | 4808 | static void sig_ind(PLCI *plci) |
4806 | { | 4809 | { |
4807 | dword x_Id; | 4810 | dword x_Id; |
4808 | dword Id; | 4811 | dword Id; |
@@ -6170,7 +6173,7 @@ static void SendSetupInfo(APPL * appl, PLCI * plci, dword Id, byte * * par | |||
6170 | } | 6173 | } |
6171 | 6174 | ||
6172 | 6175 | ||
6173 | void SendInfo(PLCI * plci, dword Id, byte * * parms, byte iesent) | 6176 | static void SendInfo(PLCI *plci, dword Id, byte **parms, byte iesent) |
6174 | { | 6177 | { |
6175 | word i; | 6178 | word i; |
6176 | word j; | 6179 | word j; |
@@ -6346,7 +6349,8 @@ void SendInfo(PLCI * plci, dword Id, byte * * parms, byte iesent) | |||
6346 | } | 6349 | } |
6347 | 6350 | ||
6348 | 6351 | ||
6349 | byte SendMultiIE(PLCI * plci, dword Id, byte * * parms, byte ie_type, dword info_mask, byte setupParse) | 6352 | static byte SendMultiIE(PLCI *plci, dword Id, byte **parms, byte ie_type, |
6353 | dword info_mask, byte setupParse) | ||
6350 | { | 6354 | { |
6351 | word i; | 6355 | word i; |
6352 | word j; | 6356 | word j; |
@@ -6465,7 +6469,7 @@ static void SendSSExtInd(APPL * appl, PLCI * plci, dword Id, byte * * parm | |||
6465 | } | 6469 | } |
6466 | }; | 6470 | }; |
6467 | 6471 | ||
6468 | void nl_ind(PLCI * plci) | 6472 | static void nl_ind(PLCI *plci) |
6469 | { | 6473 | { |
6470 | byte ch; | 6474 | byte ch; |
6471 | word ncci; | 6475 | word ncci; |
@@ -7247,7 +7251,7 @@ void nl_ind(PLCI * plci) | |||
7247 | /* find a free PLCI */ | 7251 | /* find a free PLCI */ |
7248 | /*------------------------------------------------------------------*/ | 7252 | /*------------------------------------------------------------------*/ |
7249 | 7253 | ||
7250 | word get_plci(DIVA_CAPI_ADAPTER * a) | 7254 | static word get_plci(DIVA_CAPI_ADAPTER *a) |
7251 | { | 7255 | { |
7252 | word i,j; | 7256 | word i,j; |
7253 | PLCI * plci; | 7257 | PLCI * plci; |
@@ -7406,7 +7410,7 @@ static void add_ie(PLCI * plci, byte code, byte * p, word p_length) | |||
7406 | /* put a unstructured data into the buffer */ | 7410 | /* put a unstructured data into the buffer */ |
7407 | /*------------------------------------------------------------------*/ | 7411 | /*------------------------------------------------------------------*/ |
7408 | 7412 | ||
7409 | void add_d(PLCI * plci, word length, byte * p) | 7413 | static void add_d(PLCI *plci, word length, byte *p) |
7410 | { | 7414 | { |
7411 | word i; | 7415 | word i; |
7412 | 7416 | ||
@@ -7424,7 +7428,7 @@ void add_d(PLCI * plci, word length, byte * p) | |||
7424 | /* parameter buffer */ | 7428 | /* parameter buffer */ |
7425 | /*------------------------------------------------------------------*/ | 7429 | /*------------------------------------------------------------------*/ |
7426 | 7430 | ||
7427 | void add_ai(PLCI * plci, API_PARSE * ai) | 7431 | static void add_ai(PLCI *plci, API_PARSE *ai) |
7428 | { | 7432 | { |
7429 | word i; | 7433 | word i; |
7430 | API_PARSE ai_parms[5]; | 7434 | API_PARSE ai_parms[5]; |
@@ -7445,7 +7449,8 @@ void add_ai(PLCI * plci, API_PARSE * ai) | |||
7445 | /* put parameter for b1 protocol in the parameter buffer */ | 7449 | /* put parameter for b1 protocol in the parameter buffer */ |
7446 | /*------------------------------------------------------------------*/ | 7450 | /*------------------------------------------------------------------*/ |
7447 | 7451 | ||
7448 | word add_b1(PLCI * plci, API_PARSE * bp, word b_channel_info, word b1_facilities) | 7452 | static word add_b1(PLCI *plci, API_PARSE *bp, word b_channel_info, |
7453 | word b1_facilities) | ||
7449 | { | 7454 | { |
7450 | API_PARSE bp_parms[8]; | 7455 | API_PARSE bp_parms[8]; |
7451 | API_PARSE mdm_cfg[9]; | 7456 | API_PARSE mdm_cfg[9]; |
@@ -7909,7 +7914,7 @@ word add_b1(PLCI * plci, API_PARSE * bp, word b_channel_info, word b1_faciliti | |||
7909 | /* put parameter for b2 and B3 protocol in the parameter buffer */ | 7914 | /* put parameter for b2 and B3 protocol in the parameter buffer */ |
7910 | /*------------------------------------------------------------------*/ | 7915 | /*------------------------------------------------------------------*/ |
7911 | 7916 | ||
7912 | word add_b23(PLCI * plci, API_PARSE * bp) | 7917 | static word add_b23(PLCI *plci, API_PARSE *bp) |
7913 | { | 7918 | { |
7914 | word i, fax_control_bits; | 7919 | word i, fax_control_bits; |
7915 | byte pos, len; | 7920 | byte pos, len; |
@@ -8706,7 +8711,7 @@ void sig_req(PLCI * plci, byte req, byte Id) | |||
8706 | /* send a request for the network layer entity */ | 8711 | /* send a request for the network layer entity */ |
8707 | /*------------------------------------------------------------------*/ | 8712 | /*------------------------------------------------------------------*/ |
8708 | 8713 | ||
8709 | void nl_req_ncci(PLCI * plci, byte req, byte ncci) | 8714 | static void nl_req_ncci(PLCI *plci, byte req, byte ncci) |
8710 | { | 8715 | { |
8711 | if(!plci) return; | 8716 | if(!plci) return; |
8712 | if(plci->adapter->adapter_disabled) return; | 8717 | if(plci->adapter->adapter_disabled) return; |
@@ -8728,7 +8733,7 @@ void nl_req_ncci(PLCI * plci, byte req, byte ncci) | |||
8728 | plci->req_in_start = plci->req_in; | 8733 | plci->req_in_start = plci->req_in; |
8729 | } | 8734 | } |
8730 | 8735 | ||
8731 | void send_req(PLCI * plci) | 8736 | static void send_req(PLCI *plci) |
8732 | { | 8737 | { |
8733 | ENTITY * e; | 8738 | ENTITY * e; |
8734 | word l; | 8739 | word l; |
@@ -8863,7 +8868,7 @@ void send_data(PLCI * plci) | |||
8863 | } | 8868 | } |
8864 | } | 8869 | } |
8865 | 8870 | ||
8866 | void listen_check(DIVA_CAPI_ADAPTER * a) | 8871 | static void listen_check(DIVA_CAPI_ADAPTER *a) |
8867 | { | 8872 | { |
8868 | word i,j; | 8873 | word i,j; |
8869 | PLCI * plci; | 8874 | PLCI * plci; |
@@ -8906,7 +8911,7 @@ void listen_check(DIVA_CAPI_ADAPTER * a) | |||
8906 | /* functions for all parameters sent in INDs */ | 8911 | /* functions for all parameters sent in INDs */ |
8907 | /*------------------------------------------------------------------*/ | 8912 | /*------------------------------------------------------------------*/ |
8908 | 8913 | ||
8909 | void IndParse(PLCI * plci, word * parms_id, byte ** parms, byte multiIEsize) | 8914 | static void IndParse(PLCI *plci, word *parms_id, byte **parms, byte multiIEsize) |
8910 | { | 8915 | { |
8911 | word ploc; /* points to current location within packet */ | 8916 | word ploc; /* points to current location within packet */ |
8912 | byte w; | 8917 | byte w; |
@@ -8991,7 +8996,7 @@ void IndParse(PLCI * plci, word * parms_id, byte ** parms, byte multiIEsize) | |||
8991 | /* try to match a cip from received BC and HLC */ | 8996 | /* try to match a cip from received BC and HLC */ |
8992 | /*------------------------------------------------------------------*/ | 8997 | /*------------------------------------------------------------------*/ |
8993 | 8998 | ||
8994 | byte ie_compare(byte * ie1, byte * ie2) | 8999 | static byte ie_compare(byte *ie1, byte *ie2) |
8995 | { | 9000 | { |
8996 | word i; | 9001 | word i; |
8997 | if(!ie1 || ! ie2) return false; | 9002 | if(!ie1 || ! ie2) return false; |
@@ -9000,7 +9005,7 @@ byte ie_compare(byte * ie1, byte * ie2) | |||
9000 | return true; | 9005 | return true; |
9001 | } | 9006 | } |
9002 | 9007 | ||
9003 | word find_cip(DIVA_CAPI_ADAPTER * a, byte * bc, byte * hlc) | 9008 | static word find_cip(DIVA_CAPI_ADAPTER *a, byte *bc, byte *hlc) |
9004 | { | 9009 | { |
9005 | word i; | 9010 | word i; |
9006 | word j; | 9011 | word j; |
@@ -9068,7 +9073,7 @@ static byte AddInfo(byte **add_i, | |||
9068 | /* voice and codec features */ | 9073 | /* voice and codec features */ |
9069 | /*------------------------------------------------------------------*/ | 9074 | /*------------------------------------------------------------------*/ |
9070 | 9075 | ||
9071 | void SetVoiceChannel(PLCI *plci, byte *chi, DIVA_CAPI_ADAPTER * a) | 9076 | static void SetVoiceChannel(PLCI *plci, byte *chi, DIVA_CAPI_ADAPTER *a) |
9072 | { | 9077 | { |
9073 | byte voice_chi[] = "\x02\x18\x01"; | 9078 | byte voice_chi[] = "\x02\x18\x01"; |
9074 | byte channel; | 9079 | byte channel; |
@@ -9086,7 +9091,7 @@ void SetVoiceChannel(PLCI *plci, byte *chi, DIVA_CAPI_ADAPTER * a) | |||
9086 | } | 9091 | } |
9087 | } | 9092 | } |
9088 | 9093 | ||
9089 | void VoiceChannelOff(PLCI *plci) | 9094 | static void VoiceChannelOff(PLCI *plci) |
9090 | { | 9095 | { |
9091 | dbug(1,dprintf("ExtDevOFF")); | 9096 | dbug(1,dprintf("ExtDevOFF")); |
9092 | add_p(plci,FTY,"\x02\x01\x08"); /* B Off */ | 9097 | add_p(plci,FTY,"\x02\x01\x08"); /* B Off */ |
@@ -9099,7 +9104,8 @@ void VoiceChannelOff(PLCI *plci) | |||
9099 | } | 9104 | } |
9100 | 9105 | ||
9101 | 9106 | ||
9102 | word AdvCodecSupport(DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, byte hook_listen) | 9107 | static word AdvCodecSupport(DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, |
9108 | byte hook_listen) | ||
9103 | { | 9109 | { |
9104 | word j; | 9110 | word j; |
9105 | PLCI *splci; | 9111 | PLCI *splci; |
@@ -9195,7 +9201,7 @@ word AdvCodecSupport(DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, byte ho | |||
9195 | } | 9201 | } |
9196 | 9202 | ||
9197 | 9203 | ||
9198 | void CodecIdCheck(DIVA_CAPI_ADAPTER *a, PLCI *plci) | 9204 | static void CodecIdCheck(DIVA_CAPI_ADAPTER *a, PLCI *plci) |
9199 | { | 9205 | { |
9200 | 9206 | ||
9201 | dbug(1,dprintf("CodecIdCheck")); | 9207 | dbug(1,dprintf("CodecIdCheck")); |