Skip to content

Commit

Permalink
Fix ixgbevf compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed May 30, 2024
1 parent a19ffe6 commit 64e0f67
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions drivers/intel/ixgbevf/ixgbevf-4.18.9-zc/src/ixgbevf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,12 @@ static void ixgbevf_configure_tx_ring(struct ixgbevf_adapter *adapter, struct ix
static void ixgbevf_clean_rx_ring(struct ixgbevf_ring *rx_ring);
static void ixgbevf_clean_tx_ring(struct ixgbevf_ring *tx_ring);

int ring_is_not_empty(struct ixgbevf_ring *rx_ring);
int wait_packet_function_ptr(void *data, int mode);
int wake_up_pfring_zc_socket(struct ixgbevf_ring *rx_ring);
int notify_function_ptr(void *rx_data, void *tx_data, u_int8_t device_in_use);
zc_dev_model pfring_zc_dev_model(struct ixgbe_hw *hw);

int ring_is_not_empty(struct ixgbevf_ring *rx_ring) {
union ixgbe_adv_rx_desc *rx_desc;
u32 staterr;
Expand Down Expand Up @@ -3035,7 +3041,7 @@ static void ixgbevf_configure(struct ixgbevf_adapter *adapter)
rx_ring->netdev,
rx_ring->dev, /* for DMA mapping */
pfring_zc_dev_model(hw),
rx_ring->netdev->dev_addr,
(unsigned char *)rx_ring->netdev->dev_addr,
&rx_ring->pfring_zc.rx_tx.rx.packet_waitqueue,
&rx_ring->pfring_zc.rx_tx.rx.interrupt_received,
(void *) rx_ring,
Expand Down Expand Up @@ -3382,7 +3388,7 @@ void ixgbevf_down(struct ixgbevf_adapter *adapter)
adapter->rx_ring[i]->netdev,
adapter->rx_ring[i]->dev, /* for DMA mapping */
pfring_zc_dev_model(hw),
adapter->rx_ring[i]->netdev->dev_addr,
(unsigned char *)adapter->rx_ring[i]->netdev->dev_addr,
&adapter->rx_ring[i]->pfring_zc.rx_tx.rx.packet_waitqueue,
&adapter->rx_ring[i]->pfring_zc.rx_tx.rx.interrupt_received,
(void *) adapter->rx_ring[i],
Expand Down

0 comments on commit 64e0f67

Please sign in to comment.