ixgbe: fix compilation with gcc-3.4
Subsystems (2)
PATCH 1/1 ixgbe: fix compilation with gcc-3.4
From: Alexey Dobriyan <[email protected]>
CC [M] drivers/net/ixgbe/ixgbe_main.odrivers/net/ixgbe/ixgbe_main.c: In function `ixgbe_intr':drivers/net/ixgbe/ixgbe_main.c:1290: sorry, unimplemented: inlining failed in call to 'ixgbe_irq_enable': function body not available drivers/net/ixgbe/ixgbe_main.c:1312: sorry, unimplemented: called from here
make[4]: *** [drivers/net/ixgbe/ixgbe_main.o] Error 1
---
drivers/net/ixgbe/ixgbe_main.c | 62 +++++++++++++++++++--------------------- 1 files changed, 30 insertions(+), 32 deletions(-)
drivers/net/ixgbe/ixgbe_main.c +30 -32
@@ -1307,7 +1307,36 @@ static void ixgbe_set_itr(struct ixgbe_adapter *adapter)return ; } -static inline void ixgbe_irq_enable (struct ixgbe_adapter *adapter); +/** +* ixgbe_irq_disable - Mask off interrupt generation on the NIC +* @adapter: board private structure +**/ +static inline void ixgbe_irq_disable (struct ixgbe_adapter *adapter) +{ +IXGBE_WRITE_REG (&adapter->hw,IXGBE_EIMC , ~0 ); +IXGBE_WRITE_FLUSH (&adapter->hw); +if (adapter->flags &IXGBE_FLAG_MSIX_ENABLED ) { +int i; +for (i =0 ; i < adapter->num_msix_vectors; i++) +synchronize_irq (adapter->msix_entries[i].vector); + }else { +synchronize_irq (adapter->pdev->irq); + } +} + +/** +* ixgbe_irq_enable - Enable default interrupt generation settings +* @adapter: board private structure +**/ +static inline void ixgbe_irq_enable (struct ixgbe_adapter *adapter) +{ +u32 mask; + mask =IXGBE_EIMS_ENABLE_MASK ; +if (adapter->flags &IXGBE_FLAG_FAN_FAIL_CAPABLE ) + mask |=IXGBE_EIMS_GPI_SDP1 ; +IXGBE_WRITE_REG (&adapter->hw,IXGBE_EIMS , mask); +IXGBE_WRITE_FLUSH (&adapter->hw); +}/** * ixgbe_intr - legacy mode Interrupt Handler
@@ -1416,37 +1445,6 @@ static void ixgbe_free_irq(struct ixgbe_adapter *adapter) }/** -* ixgbe_irq_disable - Mask off interrupt generation on the NIC -* @adapter: board private structure -**/ -static inline void ixgbe_irq_disable (struct ixgbe_adapter *adapter) -{ -IXGBE_WRITE_REG (&adapter->hw,IXGBE_EIMC , ~0 ); -IXGBE_WRITE_FLUSH (&adapter->hw); -if (adapter->flags &IXGBE_FLAG_MSIX_ENABLED ) { -int i; -for (i =0 ; i < adapter->num_msix_vectors; i++) -synchronize_irq (adapter->msix_entries[i].vector); - }else { -synchronize_irq (adapter->pdev->irq); - } -} - -/** -* ixgbe_irq_enable - Enable default interrupt generation settings -* @adapter: board private structure -**/ -static inline void ixgbe_irq_enable (struct ixgbe_adapter *adapter) -{ -u32 mask; - mask =IXGBE_EIMS_ENABLE_MASK ; -if (adapter->flags &IXGBE_FLAG_FAN_FAIL_CAPABLE ) - mask |=IXGBE_EIMS_GPI_SDP1 ; -IXGBE_WRITE_REG (&adapter->hw,IXGBE_EIMS , mask); -IXGBE_WRITE_FLUSH (&adapter->hw); -} - -/** * ixgbe_configure_msi_and_legacy - Initialize PIN (INTA...) and MSI interrupts * **/
David Miller
maintainerFrom: Jeff Kirsher <[email protected]>
Date: Mon, 17 Nov 2008 17:04:17 -0800
Quoted 11 lines
From: Alexey Dobriyan <[email protected]>
CC [M]
drivers/net/ixgbe/ixgbe_main.odrivers/net/ixgbe/ixgbe_main.c: In function `ixgbe_intr':drivers/net/ixgbe/ixgbe_main.c:1290: sorry, unimplemented: inlining failed in call to 'ixgbe_irq_enable': function body not availabledrivers/net/ixgbe/ixgbe_main.c:1312: sorry, unimplemented: called from here
make[4]: *** [drivers/net/ixgbe/ixgbe_main.o] Error 1Signed-off-by Alexey Dobriyan <[email protected]>Signed-off-by Jeff Kirsher <[email protected]>
Already in my net-2.6 tree.