Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/net/wan/z85230.c: fix sparse warnings: un-EXPORT symbols

The symbols are only references within the translation unit they are
defined in, so un-EXPORT them und make them 'static'.

Fix this sparse warnings:

drivers/net/wan/z85230.c:604:25: warning: symbol 'z8530_dma_sync' was not declared. Should it be static?
drivers/net/wan/z85230.c:613:25: warning: symbol 'z8530_txdma_sync' was not declared. Should it be static?

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Hannes Eder and committed by
David S. Miller
62c5345d 7b3dfa11

+2 -8
+2 -8
drivers/net/wan/z85230.c
··· 601 601 write_zsctrl(chan, RES_H_IUS); 602 602 } 603 603 604 - struct z8530_irqhandler z8530_dma_sync= 605 - { 604 + static struct z8530_irqhandler z8530_dma_sync = { 606 605 z8530_dma_rx, 607 606 z8530_dma_tx, 608 607 z8530_dma_status 609 608 }; 610 609 611 - EXPORT_SYMBOL(z8530_dma_sync); 612 - 613 - struct z8530_irqhandler z8530_txdma_sync= 614 - { 610 + static struct z8530_irqhandler z8530_txdma_sync = { 615 611 z8530_rx, 616 612 z8530_dma_tx, 617 613 z8530_dma_status 618 614 }; 619 - 620 - EXPORT_SYMBOL(z8530_txdma_sync); 621 615 622 616 /** 623 617 * z8530_rx_clear - Handle RX events from a stopped chip