mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
gve: Fix warnings reported for DQO patchset
https://patchwork.kernel.org/project/netdevbpf/list/?series=506637&state=* - Remove unused variable - Use correct integer type for string formatting. - Remove `inline` in C files Fixes:9c1a59a2f4
("gve: DQO: Add ring allocation and initialization") Fixes:a57e5de476
("gve: DQO: Add TX path") Signed-off-by: Bailey Forrest <bcf@google.com> Reviewed-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1ed1fe2417
commit
e8192476de
@ -696,7 +696,7 @@ static int gve_destroy_rings(struct gve_priv *priv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void gve_rx_free_rings(struct gve_priv *priv)
|
||||
static void gve_rx_free_rings(struct gve_priv *priv)
|
||||
{
|
||||
if (gve_is_gqi(priv))
|
||||
gve_rx_free_rings_gqi(priv);
|
||||
|
@ -261,7 +261,7 @@ void gve_tx_free_rings_dqo(struct gve_priv *priv)
|
||||
}
|
||||
|
||||
/* Returns the number of slots available in the ring */
|
||||
static inline u32 num_avail_tx_slots(const struct gve_tx_ring *tx)
|
||||
static u32 num_avail_tx_slots(const struct gve_tx_ring *tx)
|
||||
{
|
||||
u32 num_used = (tx->dqo_tx.tail - tx->dqo_tx.head) & tx->mask;
|
||||
|
||||
@ -727,9 +727,8 @@ static void remove_from_list(struct gve_tx_ring *tx,
|
||||
struct gve_index_list *list,
|
||||
struct gve_tx_pending_packet_dqo *pending_packet)
|
||||
{
|
||||
s16 index, prev_index, next_index;
|
||||
s16 prev_index, next_index;
|
||||
|
||||
index = pending_packet - tx->dqo.pending_packets;
|
||||
prev_index = pending_packet->prev;
|
||||
next_index = pending_packet->next;
|
||||
|
||||
@ -890,9 +889,9 @@ static void remove_miss_completions(struct gve_priv *priv,
|
||||
dev_kfree_skb_any(pending_packet->skb);
|
||||
pending_packet->skb = NULL;
|
||||
tx->dropped_pkt++;
|
||||
net_err_ratelimited("%s: No reinjection completion was received for: %ld.\n",
|
||||
net_err_ratelimited("%s: No reinjection completion was received for: %d.\n",
|
||||
priv->dev->name,
|
||||
(pending_packet - tx->dqo.pending_packets));
|
||||
(int)(pending_packet - tx->dqo.pending_packets));
|
||||
|
||||
pending_packet->state = GVE_PACKET_STATE_TIMED_OUT_COMPL;
|
||||
pending_packet->timeout_jiffies =
|
||||
|
Loading…
Reference in New Issue
Block a user