]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
igb: make local functions static
authorStephen Hemminger <shemminger@vyatta.com>
Wed, 18 Jan 2012 22:13:26 +0000 (22:13 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 13:07:08 +0000 (21:07 +0800)
Sparse caught two functions that were only being used in one file.

(cherry picked from commit c50b52a0c7ec8522983f5021c0b0952b4d678adf)
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/igb/e1000_mac.c
drivers/net/igb/igb_main.c

index 73aac082c44dbe5b3cbbbbca2d01a225c3440df0..36450d35f6214190a25d95797c504f1fcaeac54c 100644 (file)
@@ -151,7 +151,7 @@ void igb_clear_vfta_i350(struct e1000_hw *hw)
  *  Writes value at the given offset in the register array which stores
  *  the VLAN filter table.
  **/
-void igb_write_vfta_i350(struct e1000_hw *hw, u32 offset, u32 value)
+static void igb_write_vfta_i350(struct e1000_hw *hw, u32 offset, u32 value)
 {
        int i;
 
index f0a3099121f22bb2d917fd0c5c523023ad214099..0850b928e54b5b44015653a7b35a0de5bb976cb3 100644 (file)
@@ -4001,8 +4001,8 @@ set_itr_now:
        }
 }
 
-void igb_tx_ctxtdesc(struct igb_ring *tx_ring, u32 vlan_macip_lens,
-                    u32 type_tucmd, u32 mss_l4len_idx)
+static void igb_tx_ctxtdesc(struct igb_ring *tx_ring, u32 vlan_macip_lens,
+                           u32 type_tucmd, u32 mss_l4len_idx)
 {
        struct e1000_adv_tx_context_desc *context_desc;
        u16 i = tx_ring->next_to_use;
@@ -5619,7 +5619,7 @@ static irqreturn_t igb_intr(int irq, void *data)
        return IRQ_HANDLED;
 }
 
-void igb_ring_irq_enable(struct igb_q_vector *q_vector)
+static void igb_ring_irq_enable(struct igb_q_vector *q_vector)
 {
        struct igb_adapter *adapter = q_vector->adapter;
        struct e1000_hw *hw = &adapter->hw;