Message ID | 33205aa15efbafa9330a00f2f6f8651add551f49.1681026343.git.leonro@nvidia.com (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next] net/mlx5: Include proper PCI headers file to fix compilation error | expand |
On Sun, Apr 09, 2023 at 10:48:43AM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@nvidia.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@nvidia.com> > --- > drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c | 1 + > 1 file changed, 1 insertion(+) Actually, this patch is not needed. The fix is in PCI tree. https://lore.kernel.org/all/310ecc4815dae4174031062f525245f0755c70e2.1680119924.git.reinette.chatre@intel.com/ Thanks
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"