Skip to content

Commit

Permalink
linux/ena: Add static to check_cdesc_in_tx_cq
Browse files Browse the repository at this point in the history
Starting with certain compiler versions, driver
compilation outputs the following warning:

warning: no previous prototype for
‘check_cdesc_in_tx_cq’ [-Wmissing-prototypes]

The reason for this warning is that the function
is used only in that .c file, therefore, it should be
static.

In some configurations, this warning is treated as
an error.

This patch resolves the issue.

Signed-off-by: David Arinzon <darinzon@amazon.com>
  • Loading branch information
davidarinzon committed May 23, 2024
1 parent c77d43c commit a9a137e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/linux/ena/ena_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -4037,8 +4037,8 @@ static int check_for_rx_interrupt_queue(struct ena_adapter *adapter,
return 0;
}

enum ena_regs_reset_reason_types check_cdesc_in_tx_cq(struct ena_adapter *adapter,
struct ena_ring *tx_ring)
static enum ena_regs_reset_reason_types check_cdesc_in_tx_cq(struct ena_adapter *adapter,
struct ena_ring *tx_ring)
{
struct net_device *netdev = adapter->netdev;
u16 req_id;
Expand Down

0 comments on commit a9a137e

Please sign in to comment.