diff options
author | Hannes Eder <hannes@hanneseder.net> | 2008-12-26 03:03:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-26 03:03:59 -0500 |
commit | e855aac805dd9c68b6fabe395cbc8e05f0eda6e4 (patch) | |
tree | 9717cd063ecd0e50a05dc163722a51f90101a430 | |
parent | 0e49e64526ccd8cb78d7c4b4a732024ff221d4d0 (diff) |
drivers/net/ixgbe: fix sparse warnings: make symbols static
Fix this sparse warnings:
drivers/net/ixgbe/ixgbe_82598.c:180:5: warning: symbol 'ixgbe_get_copper_link_capabilities_82598' was not declared. Should it be static?
drivers/net/ixgbe/ixgbe_82598.c:245:5: warning: symbol 'ixgbe_setup_fc_82598' was not declared. Should it be static?
drivers/net/ixgbe/ixgbe_82598.c:729:5: warning: symbol 'ixgbe_set_vmdq_82598' was not declared. Should it be static?
drivers/net/ixgbe/ixgbe_82598.c:773:5: warning: symbol 'ixgbe_set_vfta_82598' was not declared. Should it be static?
drivers/net/ixgbe/ixgbe_82598.c:897:5: warning: symbol 'ixgbe_read_analog_reg8_82598' was not declared. Should it be static?
drivers/net/ixgbe/ixgbe_82598.c:919:5: warning: symbol 'ixgbe_write_analog_reg8_82598' was not declared. Should it be static?
drivers/net/ixgbe/ixgbe_82598.c:940:5: warning: symbol 'ixgbe_read_i2c_eeprom_82598' was not declared. Should it be static?
drivers/net/ixgbe/ixgbe_82598.c:1000:5: warning: symbol 'ixgbe_get_supported_physical_layer_82598' was not declared. Should it be static?
drivers/net/ixgbe/ixgbe_dcb_82598.c:100:5: warning: symbol 'ixgbe_dcb_config_packet_buffers_82598' 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/net/ixgbe/ixgbe_82598.c | 24 | ||||
-rw-r--r-- | drivers/net/ixgbe/ixgbe_dcb_82598.c | 4 |
2 files changed, 14 insertions, 14 deletions
diff --git a/drivers/net/ixgbe/ixgbe_82598.c b/drivers/net/ixgbe/ixgbe_82598.c index 7e09dab0c29..ad5699d9ab0 100644 --- a/drivers/net/ixgbe/ixgbe_82598.c +++ b/drivers/net/ixgbe/ixgbe_82598.c | |||
@@ -177,9 +177,9 @@ static s32 ixgbe_get_link_capabilities_82598(struct ixgbe_hw *hw, | |||
177 | * | 177 | * |
178 | * Determines the link capabilities by reading the AUTOC register. | 178 | * Determines the link capabilities by reading the AUTOC register. |
179 | **/ | 179 | **/ |
180 | s32 ixgbe_get_copper_link_capabilities_82598(struct ixgbe_hw *hw, | 180 | static s32 ixgbe_get_copper_link_capabilities_82598(struct ixgbe_hw *hw, |
181 | ixgbe_link_speed *speed, | 181 | ixgbe_link_speed *speed, |
182 | bool *autoneg) | 182 | bool *autoneg) |
183 | { | 183 | { |
184 | s32 status = IXGBE_ERR_LINK_SETUP; | 184 | s32 status = IXGBE_ERR_LINK_SETUP; |
185 | u16 speed_ability; | 185 | u16 speed_ability; |
@@ -242,7 +242,7 @@ static enum ixgbe_media_type ixgbe_get_media_type_82598(struct ixgbe_hw *hw) | |||
242 | * Configures the flow control settings based on SW configuration. This | 242 | * Configures the flow control settings based on SW configuration. This |
243 | * function is used for 802.3x flow control configuration only. | 243 | * function is used for 802.3x flow control configuration only. |
244 | **/ | 244 | **/ |
245 | s32 ixgbe_setup_fc_82598(struct ixgbe_hw *hw, s32 packetbuf_num) | 245 | static s32 ixgbe_setup_fc_82598(struct ixgbe_hw *hw, s32 packetbuf_num) |
246 | { | 246 | { |
247 | u32 frctl_reg; | 247 | u32 frctl_reg; |
248 | u32 rmcs_reg; | 248 | u32 rmcs_reg; |
@@ -726,7 +726,7 @@ static s32 ixgbe_reset_hw_82598(struct ixgbe_hw *hw) | |||
726 | * @rar: receive address register index to associate with a VMDq index | 726 | * @rar: receive address register index to associate with a VMDq index |
727 | * @vmdq: VMDq set index | 727 | * @vmdq: VMDq set index |
728 | **/ | 728 | **/ |
729 | s32 ixgbe_set_vmdq_82598(struct ixgbe_hw *hw, u32 rar, u32 vmdq) | 729 | static s32 ixgbe_set_vmdq_82598(struct ixgbe_hw *hw, u32 rar, u32 vmdq) |
730 | { | 730 | { |
731 | u32 rar_high; | 731 | u32 rar_high; |
732 | 732 | ||
@@ -770,8 +770,8 @@ static s32 ixgbe_clear_vmdq_82598(struct ixgbe_hw *hw, u32 rar, u32 vmdq) | |||
770 | * | 770 | * |
771 | * Turn on/off specified VLAN in the VLAN filter table. | 771 | * Turn on/off specified VLAN in the VLAN filter table. |
772 | **/ | 772 | **/ |
773 | s32 ixgbe_set_vfta_82598(struct ixgbe_hw *hw, u32 vlan, u32 vind, | 773 | static s32 ixgbe_set_vfta_82598(struct ixgbe_hw *hw, u32 vlan, u32 vind, |
774 | bool vlan_on) | 774 | bool vlan_on) |
775 | { | 775 | { |
776 | u32 regindex; | 776 | u32 regindex; |
777 | u32 bitindex; | 777 | u32 bitindex; |
@@ -894,7 +894,7 @@ static s32 ixgbe_blink_led_stop_82598(struct ixgbe_hw *hw, u32 index) | |||
894 | * | 894 | * |
895 | * Performs read operation to Atlas analog register specified. | 895 | * Performs read operation to Atlas analog register specified. |
896 | **/ | 896 | **/ |
897 | s32 ixgbe_read_analog_reg8_82598(struct ixgbe_hw *hw, u32 reg, u8 *val) | 897 | static s32 ixgbe_read_analog_reg8_82598(struct ixgbe_hw *hw, u32 reg, u8 *val) |
898 | { | 898 | { |
899 | u32 atlas_ctl; | 899 | u32 atlas_ctl; |
900 | 900 | ||
@@ -916,7 +916,7 @@ s32 ixgbe_read_analog_reg8_82598(struct ixgbe_hw *hw, u32 reg, u8 *val) | |||
916 | * | 916 | * |
917 | * Performs write operation to Atlas analog register specified. | 917 | * Performs write operation to Atlas analog register specified. |
918 | **/ | 918 | **/ |
919 | s32 ixgbe_write_analog_reg8_82598(struct ixgbe_hw *hw, u32 reg, u8 val) | 919 | static s32 ixgbe_write_analog_reg8_82598(struct ixgbe_hw *hw, u32 reg, u8 val) |
920 | { | 920 | { |
921 | u32 atlas_ctl; | 921 | u32 atlas_ctl; |
922 | 922 | ||
@@ -937,8 +937,8 @@ s32 ixgbe_write_analog_reg8_82598(struct ixgbe_hw *hw, u32 reg, u8 val) | |||
937 | * | 937 | * |
938 | * Performs byte read operation to SFP module's EEPROM over I2C interface. | 938 | * Performs byte read operation to SFP module's EEPROM over I2C interface. |
939 | **/ | 939 | **/ |
940 | s32 ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset, | 940 | static s32 ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset, |
941 | u8 *eeprom_data) | 941 | u8 *eeprom_data) |
942 | { | 942 | { |
943 | s32 status = 0; | 943 | s32 status = 0; |
944 | u16 sfp_addr = 0; | 944 | u16 sfp_addr = 0; |
@@ -997,7 +997,7 @@ out: | |||
997 | * | 997 | * |
998 | * Determines physical layer capabilities of the current configuration. | 998 | * Determines physical layer capabilities of the current configuration. |
999 | **/ | 999 | **/ |
1000 | s32 ixgbe_get_supported_physical_layer_82598(struct ixgbe_hw *hw) | 1000 | static s32 ixgbe_get_supported_physical_layer_82598(struct ixgbe_hw *hw) |
1001 | { | 1001 | { |
1002 | s32 physical_layer = IXGBE_PHYSICAL_LAYER_UNKNOWN; | 1002 | s32 physical_layer = IXGBE_PHYSICAL_LAYER_UNKNOWN; |
1003 | 1003 | ||
diff --git a/drivers/net/ixgbe/ixgbe_dcb_82598.c b/drivers/net/ixgbe/ixgbe_dcb_82598.c index fce6867a451..2c046b0b5d2 100644 --- a/drivers/net/ixgbe/ixgbe_dcb_82598.c +++ b/drivers/net/ixgbe/ixgbe_dcb_82598.c | |||
@@ -97,8 +97,8 @@ s32 ixgbe_dcb_get_pfc_stats_82598(struct ixgbe_hw *hw, | |||
97 | * | 97 | * |
98 | * Configure packet buffers for DCB mode. | 98 | * Configure packet buffers for DCB mode. |
99 | */ | 99 | */ |
100 | s32 ixgbe_dcb_config_packet_buffers_82598(struct ixgbe_hw *hw, | 100 | static s32 ixgbe_dcb_config_packet_buffers_82598(struct ixgbe_hw *hw, |
101 | struct ixgbe_dcb_config *dcb_config) | 101 | struct ixgbe_dcb_config *dcb_config) |
102 | { | 102 | { |
103 | s32 ret_val = 0; | 103 | s32 ret_val = 0; |
104 | u32 value = IXGBE_RXPBSIZE_64KB; | 104 | u32 value = IXGBE_RXPBSIZE_64KB; |