Skip to content

Commit

Permalink
Fix ixgbe compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed May 30, 2024
1 parent 978b3ba commit a19ffe6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions drivers/intel/ixgbe/ixgbe-5.19.6-zc/src/ixgbe_82599.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ STATIC s32 ixgbe_read_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset,
STATIC s32 ixgbe_write_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset,
u8 dev_addr, u8 data);

s32 ixgbe_ftqf_add_filter(struct ixgbe_hw *hw, u8 proto, u32 saddr, u16 sport, u32 daddr, u16 dport, u8 rx_queue, u8 filter_id);

void ixgbe_init_mac_link_ops_82599(struct ixgbe_hw *hw)
{
struct ixgbe_mac_info *mac = &hw->mac;
Expand Down
12 changes: 10 additions & 2 deletions drivers/intel/ixgbe/ixgbe-5.19.6-zc/src/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1368,6 +1368,14 @@ static void ixgbe_clean_tx_ring(struct ixgbe_ring *tx_ring);

static unsigned long ixgbe_get_completion_timeout(struct ixgbe_adapter *adapter);

void __ixgbe_enable_rx_queue(struct ixgbe_adapter *adapter, int i);
void __ixgbe_disable_rx_queue(struct ixgbe_adapter *adapter, int i);
int ring_is_not_empty(struct ixgbe_ring *rx_ring);
int wait_packet_function_ptr(void *data, int mode);
int wake_up_pfring_zc_socket(struct ixgbe_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);

void __ixgbe_enable_rx_queue(struct ixgbe_adapter *adapter, int i)
{
unsigned long wait_delay, delay_interval;
Expand Down Expand Up @@ -7046,7 +7054,7 @@ static void ixgbe_configure(struct ixgbe_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 @@ -7848,7 +7856,7 @@ void ixgbe_down(struct ixgbe_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 a19ffe6

Please sign in to comment.