diff options
author | Hannes Eder <hannes@hanneseder.net> | 2008-12-13 00:15:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-13 00:15:17 -0500 |
commit | 5b8343540a3d27f87a4d9d72bb39b7d4cc3dd95e (patch) | |
tree | 38671546aab7418067af9b5fca08b79e9307f3f0 /drivers/isdn/hardware/mISDN/hfcmulti.c | |
parent | dfa96ec1bb83641242c48883c2bae8f1f30483b2 (diff) |
mISDN: make global symbols static or include header files
The warnings fixed by including an header file for the appropriate
prototype are marked with "*", for all others the corresonponding
symbol has been made static. This patch fixes all such issues in
mISDN.
Fix this sparse warnings:
drivers/isdn/hardware/mISDN/hfcmulti.c:174:5: warning: symbol 'plxsd_master' was not declared. Should it be static?
drivers/isdn/hardware/mISDN/hfcmulti.c:426:1: warning: symbol 'write_fifo_regio' was not declared. Should it be static?
drivers/isdn/hardware/mISDN/hfcmulti.c:447:1: warning: symbol 'write_fifo_pcimem' was not declared. Should it be static?
drivers/isdn/hardware/mISDN/hfcmulti.c:469:1: warning: symbol 'read_fifo_regio' was not declared. Should it be static?
drivers/isdn/hardware/mISDN/hfcmulti.c:491:1: warning: symbol 'read_fifo_pcimem' was not declared. Should it be static?
drivers/isdn/hardware/mISDN/hfcmulti.c:710:1: warning: symbol 'vpm_init' was not declared. Should it be static?
drivers/isdn/hardware/mISDN/hfcmulti.c:793:1: warning: symbol 'vpm_check' was not declared. Should it be static?
drivers/isdn/hardware/mISDN/hfcmulti.c:816:1: warning: symbol 'vpm_echocan_on' was not declared. Should it be static?
drivers/isdn/hardware/mISDN/hfcmulti.c:848:1: warning: symbol 'vpm_echocan_off' was not declared. Should it be static?
* drivers/isdn/mISDN/l1oip_codec.c:224:1: warning: symbol 'l1oip_law_to_4bit' was not declared. Should it be static?
* drivers/isdn/mISDN/l1oip_codec.c:261:1: warning: symbol 'l1oip_4bit_to_law' was not declared. Should it be static?
* drivers/isdn/mISDN/l1oip_codec.c:281:1: warning: symbol 'l1oip_alaw_to_ulaw' was not declared. Should it be static?
* drivers/isdn/mISDN/l1oip_codec.c:294:1: warning: symbol 'l1oip_ulaw_to_alaw' was not declared. Should it be static?
* drivers/isdn/mISDN/l1oip_codec.c:311:1: warning: symbol 'l1oip_4bit_free' was not declared. Should it be static?
* drivers/isdn/mISDN/l1oip_codec.c:322:1: warning: symbol 'l1oip_4bit_alloc' was not declared. Should it be static?
drivers/isdn/mISDN/core.c:29:1: warning: symbol 'device_lock' was not declared. Should it be static?
drivers/isdn/mISDN/core.c:34:1: warning: symbol 'bp_lock' was not declared. Should it be static?
drivers/isdn/mISDN/core.c:196:1: warning: symbol 'mISDNInit' was not declared. Should it be static?
drivers/isdn/mISDN/core.c:227:6: warning: symbol 'mISDN_cleanup' was not declared. Should it be static?
drivers/isdn/mISDN/stack.c:40:1: warning: symbol 'mISDN_queue_message' was not declared. Should it be static?
* drivers/isdn/mISDN/layer1.c:388:1: warning: symbol 'l1_init' was not declared. Should it be static?
* drivers/isdn/mISDN/layer1.c:400:1: warning: symbol 'l1_cleanup' was not declared. Should it be static?
drivers/isdn/mISDN/layer2.c:469:1: warning: symbol 'iframe_error' was not declared. Should it be static?
drivers/isdn/mISDN/layer2.c:487:1: warning: symbol 'super_error' was not declared. Should it be static?
drivers/isdn/mISDN/layer2.c:496:1: warning: symbol 'unnum_error' was not declared. Should it be static?
drivers/isdn/mISDN/layer2.c:509:1: warning: symbol 'UI_error' was not declared. Should it be static?
drivers/isdn/mISDN/layer2.c:522:1: warning: symbol 'FRMR_error' was not declared. Should it be static?
drivers/isdn/mISDN/layer2.c:1069:1: warning: symbol 'enquiry_cr' was not declared. Should it be static?
* drivers/isdn/mISDN/layer2.c:2196:1: warning: symbol 'Isdnl2_Init' was not declared. Should it be static?
* drivers/isdn/mISDN/layer2.c:2210:1: warning: symbol 'Isdnl2_cleanup' was not declared. Should it be static?
drivers/isdn/mISDN/tei.c:397:1: warning: symbol 'random_ri' was not declared. Should it be static?
* drivers/isdn/mISDN/timerdev.c:277:1: warning: symbol 'mISDN_inittimer' was not declared. Should it be static?
* drivers/isdn/mISDN/timerdev.c:288:6: warning: symbol 'mISDN_timer_cleanup' was not declared. Should it be static?
drivers/isdn/mISDN/dsp_core.c:164:12: warning: symbol 'mISDN_dsp_revision' was not declared. Should it be static?
drivers/isdn/mISDN/dsp_cmx.c:1543:5: warning: symbol 'samplecount' was not declared. Should it be static?
drivers/isdn/mISDN/dsp_cmx.c:1546:5: warning: symbol 'dsp_start_jiffies' was not declared. Should it be static?
drivers/isdn/mISDN/dsp_cmx.c:1547:16: warning: symbol 'dsp_start_tv' was not declared. Should it be static?
drivers/isdn/mISDN/dsp_tones.c:239:3: warning: symbol 'pattern' was not declared. Should it be static?
drivers/isdn/mISDN/dsp_audio.c:33:4: warning: symbol 'dsp_audio_ulaw_to_alaw' was not declared. Should it be static?
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Acked-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/hardware/mISDN/hfcmulti.c')
-rw-r--r-- | drivers/isdn/hardware/mISDN/hfcmulti.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/isdn/hardware/mISDN/hfcmulti.c b/drivers/isdn/hardware/mISDN/hfcmulti.c index 46684e136181..599d832b48be 100644 --- a/drivers/isdn/hardware/mISDN/hfcmulti.c +++ b/drivers/isdn/hardware/mISDN/hfcmulti.c | |||
@@ -171,7 +171,7 @@ static int (*unregister_interrupt)(void); | |||
171 | static int interrupt_registered; | 171 | static int interrupt_registered; |
172 | 172 | ||
173 | static struct hfc_multi *syncmaster; | 173 | static struct hfc_multi *syncmaster; |
174 | int plxsd_master; /* if we have a master card (yet) */ | 174 | static int plxsd_master; /* if we have a master card (yet) */ |
175 | static spinlock_t plx_lock; /* may not acquire other lock inside */ | 175 | static spinlock_t plx_lock; /* may not acquire other lock inside */ |
176 | EXPORT_SYMBOL(plx_lock); | 176 | EXPORT_SYMBOL(plx_lock); |
177 | 177 | ||
@@ -422,7 +422,7 @@ HFC_wait_debug(struct hfc_multi *hc, const char *function, int line) | |||
422 | #endif | 422 | #endif |
423 | 423 | ||
424 | /* write fifo data (REGIO) */ | 424 | /* write fifo data (REGIO) */ |
425 | void | 425 | static void |
426 | write_fifo_regio(struct hfc_multi *hc, u_char *data, int len) | 426 | write_fifo_regio(struct hfc_multi *hc, u_char *data, int len) |
427 | { | 427 | { |
428 | outb(A_FIFO_DATA0, (hc->pci_iobase)+4); | 428 | outb(A_FIFO_DATA0, (hc->pci_iobase)+4); |
@@ -443,7 +443,7 @@ write_fifo_regio(struct hfc_multi *hc, u_char *data, int len) | |||
443 | } | 443 | } |
444 | } | 444 | } |
445 | /* write fifo data (PCIMEM) */ | 445 | /* write fifo data (PCIMEM) */ |
446 | void | 446 | static void |
447 | write_fifo_pcimem(struct hfc_multi *hc, u_char *data, int len) | 447 | write_fifo_pcimem(struct hfc_multi *hc, u_char *data, int len) |
448 | { | 448 | { |
449 | while (len>>2) { | 449 | while (len>>2) { |
@@ -465,7 +465,7 @@ write_fifo_pcimem(struct hfc_multi *hc, u_char *data, int len) | |||
465 | } | 465 | } |
466 | } | 466 | } |
467 | /* read fifo data (REGIO) */ | 467 | /* read fifo data (REGIO) */ |
468 | void | 468 | static void |
469 | read_fifo_regio(struct hfc_multi *hc, u_char *data, int len) | 469 | read_fifo_regio(struct hfc_multi *hc, u_char *data, int len) |
470 | { | 470 | { |
471 | outb(A_FIFO_DATA0, (hc->pci_iobase)+4); | 471 | outb(A_FIFO_DATA0, (hc->pci_iobase)+4); |
@@ -487,7 +487,7 @@ read_fifo_regio(struct hfc_multi *hc, u_char *data, int len) | |||
487 | } | 487 | } |
488 | 488 | ||
489 | /* read fifo data (PCIMEM) */ | 489 | /* read fifo data (PCIMEM) */ |
490 | void | 490 | static void |
491 | read_fifo_pcimem(struct hfc_multi *hc, u_char *data, int len) | 491 | read_fifo_pcimem(struct hfc_multi *hc, u_char *data, int len) |
492 | { | 492 | { |
493 | while (len>>2) { | 493 | while (len>>2) { |
@@ -706,7 +706,7 @@ vpm_out(struct hfc_multi *c, int which, unsigned short addr, | |||
706 | } | 706 | } |
707 | 707 | ||
708 | 708 | ||
709 | void | 709 | static void |
710 | vpm_init(struct hfc_multi *wc) | 710 | vpm_init(struct hfc_multi *wc) |
711 | { | 711 | { |
712 | unsigned char reg; | 712 | unsigned char reg; |
@@ -789,7 +789,7 @@ vpm_init(struct hfc_multi *wc) | |||
789 | } | 789 | } |
790 | } | 790 | } |
791 | 791 | ||
792 | void | 792 | static void |
793 | vpm_check(struct hfc_multi *hctmp) | 793 | vpm_check(struct hfc_multi *hctmp) |
794 | { | 794 | { |
795 | unsigned char gpi2; | 795 | unsigned char gpi2; |
@@ -812,7 +812,7 @@ vpm_check(struct hfc_multi *hctmp) | |||
812 | * | 812 | * |
813 | */ | 813 | */ |
814 | 814 | ||
815 | void | 815 | static void |
816 | vpm_echocan_on(struct hfc_multi *hc, int ch, int taps) | 816 | vpm_echocan_on(struct hfc_multi *hc, int ch, int taps) |
817 | { | 817 | { |
818 | unsigned int timeslot; | 818 | unsigned int timeslot; |
@@ -844,7 +844,7 @@ vpm_echocan_on(struct hfc_multi *hc, int ch, int taps) | |||
844 | vpm_out(hc, unit, timeslot, 0x7e); | 844 | vpm_out(hc, unit, timeslot, 0x7e); |
845 | } | 845 | } |
846 | 846 | ||
847 | void | 847 | static void |
848 | vpm_echocan_off(struct hfc_multi *hc, int ch) | 848 | vpm_echocan_off(struct hfc_multi *hc, int ch) |
849 | { | 849 | { |
850 | unsigned int timeslot; | 850 | unsigned int timeslot; |