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

ixgbe: fix static functions

Define functions as static added C=1 (sparse) to my make line
brought these to my attention.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

authored by

John Fastabend and committed by
Jeff Kirsher
b32c8dcc 11b1d38e

+5 -5
+1 -1
drivers/net/ixgbe/ixgbe_82599.c
··· 494 494 * 495 495 * Set the link speed in the AUTOC register and restarts link. 496 496 **/ 497 - s32 ixgbe_setup_mac_link_multispeed_fiber(struct ixgbe_hw *hw, 497 + static s32 ixgbe_setup_mac_link_multispeed_fiber(struct ixgbe_hw *hw, 498 498 ixgbe_link_speed speed, 499 499 bool autoneg, 500 500 bool autoneg_wait_to_complete)
+1 -1
drivers/net/ixgbe/ixgbe_dcb_82598.c
··· 289 289 * Configure queue statistics registers, all queues belonging to same traffic 290 290 * class uses a single set of queue statistics counters. 291 291 */ 292 - s32 ixgbe_dcb_config_tc_stats_82598(struct ixgbe_hw *hw) 292 + static s32 ixgbe_dcb_config_tc_stats_82598(struct ixgbe_hw *hw) 293 293 { 294 294 u32 reg = 0; 295 295 u8 i = 0;
+2 -2
drivers/net/ixgbe/ixgbe_main.c
··· 4566 4566 #ifdef CONFIG_IXGBE_DCB 4567 4567 4568 4568 /* ixgbe_get_first_reg_idx - Return first register index associated with ring */ 4569 - void ixgbe_get_first_reg_idx(struct ixgbe_adapter *adapter, u8 tc, 4570 - unsigned int *tx, unsigned int *rx) 4569 + static void ixgbe_get_first_reg_idx(struct ixgbe_adapter *adapter, u8 tc, 4570 + unsigned int *tx, unsigned int *rx) 4571 4571 { 4572 4572 struct net_device *dev = adapter->netdev; 4573 4573 struct ixgbe_hw *hw = &adapter->hw;
+1 -1
drivers/net/ixgbe/ixgbe_sriov.c
··· 110 110 return adapter->hw.mac.ops.set_vfta(&adapter->hw, vid, vf, (bool)add); 111 111 } 112 112 113 - void ixgbe_set_vf_lpe(struct ixgbe_adapter *adapter, u32 *msgbuf) 113 + static void ixgbe_set_vf_lpe(struct ixgbe_adapter *adapter, u32 *msgbuf) 114 114 { 115 115 struct ixgbe_hw *hw = &adapter->hw; 116 116 int new_mtu = msgbuf[1];