diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index cba0115a6a5792e02979b7cf4f8f004a785954fb..a1fe581febc0baf95066cf3bd76b3d33a8c2ca8c 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -3758,7 +3758,7 @@ static int __igb_maybe_stop_tx(struct igb_ring *tx_ring, int size)
 	return 0;
 }
 
-static int igb_maybe_stop_tx(struct igb_ring *tx_ring, int size)
+static inline int igb_maybe_stop_tx(struct igb_ring *tx_ring, int size)
 {
 	if (igb_desc_unused(tx_ring) >= size)
 		return 0;