[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <33205aa15efbafa9330a00f2f6f8651add551f49.1681026343.git.leonro@nvidia.com>
Date: Sun, 9 Apr 2023 10:48:43 +0300
From: Leon Romanovsky <leon@...nel.org>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Leon Romanovsky <leonro@...dia.com>, Eli Cohen <elic@...dia.com>,
Eric Dumazet <edumazet@...gle.com>,
Jacob Keller <jacob.e.keller@...el.com>,
netdev@...r.kernel.org, Paolo Abeni <pabeni@...hat.com>,
Saeed Mahameed <saeedm@...dia.com>,
Shay Drory <shayd@...dia.com>
Subject: [PATCH net-next] net/mlx5: Include proper PCI headers file to fix compilation error
From: Leon Romanovsky <leonro@...dia.com>
Fix the following compilation error, which happens due to missing pci.h
include.
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c:148:31: error: implicit declaration of function
'pci_msix_can_alloc_dyn' [-Werror=implicit-function-declaration]
Fixes: 3354822cde5a ("net/mlx5: Use dynamic msix vectors allocation")
Signed-off-by: Leon Romanovsky <leonro@...dia.com>
---
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c b/drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
index e12e528c09f5..bb97d6ff8135 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
@@ -5,6 +5,7 @@
#include <linux/notifier.h>
#include <linux/mlx5/driver.h>
#include <linux/mlx5/vport.h>
+#include <linux/pci.h>
#include "mlx5_core.h"
#include "mlx5_irq.h"
#include "pci_irq.h"
--
2.39.2
Powered by blists - more mailing lists