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

drivers/net/atlx: fix sparse warnings: make symbols static

Fix this sparse warnings:

drivers/net/atlx/atl1.c:198:16: warning: symbol 'atl1_check_options' was not declared. Should it be static?
drivers/net/atlx/atl1.c:526:5: warning: symbol 'atl1_read_mac_addr' 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
9dc20f55 888432f6

+2 -2
+2 -2
drivers/net/atlx/atl1.c
··· 195 195 * value exists, a default value is used. The final value is stored 196 196 * in a variable in the adapter structure. 197 197 */ 198 - void __devinit atl1_check_options(struct atl1_adapter *adapter) 198 + static void __devinit atl1_check_options(struct atl1_adapter *adapter) 199 199 { 200 200 struct pci_dev *pdev = adapter->pdev; 201 201 int bd = adapter->bd_number; ··· 523 523 * Reads the adapter's MAC address from the EEPROM 524 524 * hw - Struct containing variables accessed by shared code 525 525 */ 526 - s32 atl1_read_mac_addr(struct atl1_hw *hw) 526 + static s32 atl1_read_mac_addr(struct atl1_hw *hw) 527 527 { 528 528 u16 i; 529 529