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

pch_gbe: make local functions static

Make routines that are only used in one file static.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

stephen hemminger and committed by
David S. Miller
191cc687 ae316bb5

+17 -15
+1 -3
drivers/net/pch_gbe/pch_gbe.h
··· 644 644 extern void pch_gbe_free_rx_resources(struct pch_gbe_adapter *adapter, 645 645 struct pch_gbe_rx_ring *rx_ring); 646 646 extern void pch_gbe_update_stats(struct pch_gbe_adapter *adapter); 647 - extern int pch_gbe_mdio_read(struct net_device *netdev, int addr, int reg); 648 - extern void pch_gbe_mdio_write(struct net_device *netdev, int addr, int reg, 649 - int data); 647 + 650 648 /* pch_gbe_param.c */ 651 649 extern void pch_gbe_check_options(struct pch_gbe_adapter *adapter); 652 650
+1 -1
drivers/net/pch_gbe/pch_gbe_api.c
··· 97 97 * pch_gbe_plat_init_function_pointers - Init func ptrs 98 98 * @hw: Pointer to the HW structure 99 99 */ 100 - void pch_gbe_plat_init_function_pointers(struct pch_gbe_hw *hw) 100 + static void pch_gbe_plat_init_function_pointers(struct pch_gbe_hw *hw) 101 101 { 102 102 /* Set PHY parameter */ 103 103 hw->phy.reset_delay_us = PCH_GBE_PHY_RESET_DELAY_US;
+15 -11
drivers/net/pch_gbe/pch_gbe_main.c
··· 85 85 86 86 static unsigned int copybreak __read_mostly = PCH_GBE_COPYBREAK_DEFAULT; 87 87 88 + static int pch_gbe_mdio_read(struct net_device *netdev, int addr, int reg); 89 + static void pch_gbe_mdio_write(struct net_device *netdev, int addr, int reg, 90 + int data); 88 91 /** 89 92 * pch_gbe_mac_read_mac_addr - Read MAC address 90 93 * @hw: Pointer to the HW structure ··· 117 114 * @reg: Pointer of register 118 115 * @busy: Busy bit 119 116 */ 120 - void pch_gbe_wait_clr_bit(void *reg, u32 bit) 117 + static void pch_gbe_wait_clr_bit(void *reg, u32 bit) 121 118 { 122 119 u32 tmp; 123 120 /* wait busy */ ··· 133 130 * @addr: Pointer to the MAC address 134 131 * @index: MAC address array register 135 132 */ 136 - void pch_gbe_mac_mar_set(struct pch_gbe_hw *hw, u8 * addr, u32 index) 133 + static void pch_gbe_mac_mar_set(struct pch_gbe_hw *hw, u8 * addr, u32 index) 137 134 { 138 135 u32 mar_low, mar_high, adrmask; 139 136 ··· 164 161 * pch_gbe_mac_reset_hw - Reset hardware 165 162 * @hw: Pointer to the HW structure 166 163 */ 167 - void pch_gbe_mac_reset_hw(struct pch_gbe_hw *hw) 164 + static void pch_gbe_mac_reset_hw(struct pch_gbe_hw *hw) 168 165 { 169 166 /* Read the MAC address. and store to the private data */ 170 167 pch_gbe_mac_read_mac_addr(hw); ··· 183 180 * @hw: Pointer to the HW structure 184 181 * @mar_count: Receive address registers 185 182 */ 186 - void pch_gbe_mac_init_rx_addrs(struct pch_gbe_hw *hw, u16 mar_count) 183 + static void pch_gbe_mac_init_rx_addrs(struct pch_gbe_hw *hw, u16 mar_count) 187 184 { 188 185 u32 i; 189 186 ··· 209 206 * @mar_used_count: The first MAC Address register free to program 210 207 * @mar_total_num: Total number of supported MAC Address Registers 211 208 */ 212 - void pch_gbe_mac_mc_addr_list_update(struct pch_gbe_hw *hw, 213 - u8 *mc_addr_list, u32 mc_addr_count, 214 - u32 mar_used_count, u32 mar_total_num) 209 + static void pch_gbe_mac_mc_addr_list_update(struct pch_gbe_hw *hw, 210 + u8 *mc_addr_list, u32 mc_addr_count, 211 + u32 mar_used_count, u32 mar_total_num) 215 212 { 216 213 u32 i, adrmask; 217 214 ··· 288 285 * @hw: Pointer to the HW structure 289 286 * @wu_evt: Wake up event 290 287 */ 291 - void pch_gbe_mac_set_wol_event(struct pch_gbe_hw *hw, u32 wu_evt) 288 + static void pch_gbe_mac_set_wol_event(struct pch_gbe_hw *hw, u32 wu_evt) 292 289 { 293 290 u32 addr_mask; 294 291 ··· 362 359 * pch_gbe_mac_set_pause_packet - Set pause packet 363 360 * @hw: Pointer to the HW structure 364 361 */ 365 - void pch_gbe_mac_set_pause_packet(struct pch_gbe_hw *hw) 362 + static void pch_gbe_mac_set_pause_packet(struct pch_gbe_hw *hw) 366 363 { 367 364 unsigned long tmp2, tmp3; 368 365 ··· 485 482 * 0: Successfully 486 483 * Negative value: Failed 487 484 */ 488 - int pch_gbe_mdio_read(struct net_device *netdev, int addr, int reg) 485 + static int pch_gbe_mdio_read(struct net_device *netdev, int addr, int reg) 489 486 { 490 487 struct pch_gbe_adapter *adapter = netdev_priv(netdev); 491 488 struct pch_gbe_hw *hw = &adapter->hw; ··· 501 498 * @reg: Access location 502 499 * @data: Write data 503 500 */ 504 - void pch_gbe_mdio_write(struct net_device *netdev, int addr, int reg, int data) 501 + static void pch_gbe_mdio_write(struct net_device *netdev, 502 + int addr, int reg, int data) 505 503 { 506 504 struct pch_gbe_adapter *adapter = netdev_priv(netdev); 507 505 struct pch_gbe_hw *hw = &adapter->hw;