Commit 0e49e64526ccd8cb78d7c4b4a732024ff221d4d0
Committed by
David S. Miller
1 parent
678c610b5a
Exists in
master
and in
7 other branches
drivers/net/irda: fix sparse warnings: make symbols static
Fix this sparse warnings: drivers/net/irda/ma600-sir.c:239:5: warning: symbol 'ma600_reset' was not declared. Should it be static? drivers/net/irda/smsc-ircc2.c:875:5: warning: symbol 'smsc_ircc_hard_xmit_sir' was not declared. Should it be static? drivers/net/irda/smsc-ircc2.c:1131:6: warning: symbol 'smsc_ircc_set_sir_speed' was not declared. Should it be static? drivers/net/irda/smsc-ircc2.c:1897:6: warning: symbol 'smsc_ircc_sir_start' was not declared. Should it be static? drivers/net/irda/w83977af_ir.c:150:5: warning: symbol 'w83977af_open' was not declared. Should it be static? drivers/net/irda/w83977af_ir.c:313:5: warning: symbol 'w83977af_probe' was not declared. Should it be static? drivers/net/irda/w83977af_ir.c:412:6: warning: symbol 'w83977af_change_speed' was not declared. Should it be static? drivers/net/irda/w83977af_ir.c:492:5: warning: symbol 'w83977af_hard_xmit' was not declared. Should it be static? drivers/net/irda/w83977af_ir.c:734:5: warning: symbol 'w83977af_dma_receive' was not declared. Should it be static? drivers/net/irda/w83977af_ir.c:806:5: warning: symbol 'w83977af_dma_receive_complete' was not declared. Should it be static? Signed-off-by: Hannes Eder <hannes@hanneseder.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 3 changed files with 11 additions and 11 deletions Side-by-side Diff
drivers/net/irda/ma600-sir.c
drivers/net/irda/smsc-ircc2.c
... | ... | @@ -872,7 +872,7 @@ |
872 | 872 | * waits until the next transmit interrupt, and continues until the |
873 | 873 | * frame is transmitted. |
874 | 874 | */ |
875 | -int smsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev) | |
875 | +static int smsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev) | |
876 | 876 | { |
877 | 877 | struct smsc_ircc_cb *self; |
878 | 878 | unsigned long flags; |
... | ... | @@ -1128,7 +1128,7 @@ |
1128 | 1128 | * Set speed of IrDA port to specified baudrate |
1129 | 1129 | * |
1130 | 1130 | */ |
1131 | -void smsc_ircc_set_sir_speed(struct smsc_ircc_cb *self, __u32 speed) | |
1131 | +static void smsc_ircc_set_sir_speed(struct smsc_ircc_cb *self, __u32 speed) | |
1132 | 1132 | { |
1133 | 1133 | int iobase; |
1134 | 1134 | int fcr; /* FIFO control reg */ |
... | ... | @@ -1894,7 +1894,7 @@ |
1894 | 1894 | * This function *must* be called with spinlock held, because it may |
1895 | 1895 | * be called from the irq handler (via smsc_ircc_change_speed()). - Jean II |
1896 | 1896 | */ |
1897 | -void smsc_ircc_sir_start(struct smsc_ircc_cb *self) | |
1897 | +static void smsc_ircc_sir_start(struct smsc_ircc_cb *self) | |
1898 | 1898 | { |
1899 | 1899 | struct net_device *dev; |
1900 | 1900 | int fir_base, sir_base; |
drivers/net/irda/w83977af_ir.c
... | ... | @@ -147,8 +147,8 @@ |
147 | 147 | * Open driver instance |
148 | 148 | * |
149 | 149 | */ |
150 | -int w83977af_open(int i, unsigned int iobase, unsigned int irq, | |
151 | - unsigned int dma) | |
150 | +static int w83977af_open(int i, unsigned int iobase, unsigned int irq, | |
151 | + unsigned int dma) | |
152 | 152 | { |
153 | 153 | struct net_device *dev; |
154 | 154 | struct w83977af_ir *self; |
... | ... | @@ -310,7 +310,7 @@ |
310 | 310 | return 0; |
311 | 311 | } |
312 | 312 | |
313 | -int w83977af_probe( int iobase, int irq, int dma) | |
313 | +static int w83977af_probe(int iobase, int irq, int dma) | |
314 | 314 | { |
315 | 315 | int version; |
316 | 316 | int i; |
... | ... | @@ -409,7 +409,7 @@ |
409 | 409 | return -1; |
410 | 410 | } |
411 | 411 | |
412 | -void w83977af_change_speed(struct w83977af_ir *self, __u32 speed) | |
412 | +static void w83977af_change_speed(struct w83977af_ir *self, __u32 speed) | |
413 | 413 | { |
414 | 414 | int ir_mode = HCR_SIR; |
415 | 415 | int iobase; |
... | ... | @@ -489,7 +489,7 @@ |
489 | 489 | * Sets up a DMA transfer to send the current frame. |
490 | 490 | * |
491 | 491 | */ |
492 | -int w83977af_hard_xmit(struct sk_buff *skb, struct net_device *dev) | |
492 | +static int w83977af_hard_xmit(struct sk_buff *skb, struct net_device *dev) | |
493 | 493 | { |
494 | 494 | struct w83977af_ir *self; |
495 | 495 | __s32 speed; |
... | ... | @@ -731,7 +731,7 @@ |
731 | 731 | * if it starts to receive a frame. |
732 | 732 | * |
733 | 733 | */ |
734 | -int w83977af_dma_receive(struct w83977af_ir *self) | |
734 | +static int w83977af_dma_receive(struct w83977af_ir *self) | |
735 | 735 | { |
736 | 736 | int iobase; |
737 | 737 | __u8 set; |
... | ... | @@ -803,7 +803,7 @@ |
803 | 803 | * Finished with receiving a frame |
804 | 804 | * |
805 | 805 | */ |
806 | -int w83977af_dma_receive_complete(struct w83977af_ir *self) | |
806 | +static int w83977af_dma_receive_complete(struct w83977af_ir *self) | |
807 | 807 | { |
808 | 808 | struct sk_buff *skb; |
809 | 809 | struct st_fifo *st_fifo; |