Subject: Re: [PATCH net-next] net/mlx5: Include proper PCI headers file to fix compilation error

From: Leon Romanovsky <[email-masked]>
Date: Sun, 9 Apr 2023 13:10:16 +0300

On Sun, Apr 09, 2023 at 10:48:43AM +0300, Leon Romanovsky wrote:
> From: Leon Romanovsky <[email-masked]>
> 
> 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 <[email-masked]>
> ---
>  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/310ecc4[email-masked]/

Thanks