ixgbe: Resolve warnings produced in W=2 builds
[deliverable/linux.git] / drivers / net / ethernet / intel / ixgbe / ixgbe_main.c
index 166dc0015a5e91b21ff2d03ac8cf7764732ecbdd..87613806ee880b66560a0b6279d61d652481f142 100644 (file)
@@ -440,7 +440,7 @@ static const struct ixgbe_reg_info ixgbe_reg_info_tbl[] = {
        {IXGBE_TXDCTL(0), "TXDCTL"},
 
        /* List Terminator */
-       {}
+       { .name = NULL }
 };
 
 
@@ -5186,15 +5186,15 @@ int ixgbe_setup_tx_resources(struct ixgbe_ring *tx_ring)
 {
        struct device *dev = tx_ring->dev;
        int orig_node = dev_to_node(dev);
-       int numa_node = -1;
+       int ring_node = -1;
        int size;
 
        size = sizeof(struct ixgbe_tx_buffer) * tx_ring->count;
 
        if (tx_ring->q_vector)
-               numa_node = tx_ring->q_vector->numa_node;
+               ring_node = tx_ring->q_vector->numa_node;
 
-       tx_ring->tx_buffer_info = vzalloc_node(size, numa_node);
+       tx_ring->tx_buffer_info = vzalloc_node(size, ring_node);
        if (!tx_ring->tx_buffer_info)
                tx_ring->tx_buffer_info = vzalloc(size);
        if (!tx_ring->tx_buffer_info)
@@ -5206,7 +5206,7 @@ int ixgbe_setup_tx_resources(struct ixgbe_ring *tx_ring)
        tx_ring->size = tx_ring->count * sizeof(union ixgbe_adv_tx_desc);
        tx_ring->size = ALIGN(tx_ring->size, 4096);
 
-       set_dev_node(dev, numa_node);
+       set_dev_node(dev, ring_node);
        tx_ring->desc = dma_alloc_coherent(dev,
                                           tx_ring->size,
                                           &tx_ring->dma,
@@ -5270,15 +5270,15 @@ int ixgbe_setup_rx_resources(struct ixgbe_ring *rx_ring)
 {
        struct device *dev = rx_ring->dev;
        int orig_node = dev_to_node(dev);
-       int numa_node = -1;
+       int ring_node = -1;
        int size;
 
        size = sizeof(struct ixgbe_rx_buffer) * rx_ring->count;
 
        if (rx_ring->q_vector)
-               numa_node = rx_ring->q_vector->numa_node;
+               ring_node = rx_ring->q_vector->numa_node;
 
-       rx_ring->rx_buffer_info = vzalloc_node(size, numa_node);
+       rx_ring->rx_buffer_info = vzalloc_node(size, ring_node);
        if (!rx_ring->rx_buffer_info)
                rx_ring->rx_buffer_info = vzalloc(size);
        if (!rx_ring->rx_buffer_info)
@@ -5290,7 +5290,7 @@ int ixgbe_setup_rx_resources(struct ixgbe_ring *rx_ring)
        rx_ring->size = rx_ring->count * sizeof(union ixgbe_adv_rx_desc);
        rx_ring->size = ALIGN(rx_ring->size, 4096);
 
-       set_dev_node(dev, numa_node);
+       set_dev_node(dev, ring_node);
        rx_ring->desc = dma_alloc_coherent(dev,
                                           rx_ring->size,
                                           &rx_ring->dma,
This page took 0.037019 seconds and 5 git commands to generate.