Re: compile error on linux-next branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 13, 2018 at 04:56:39PM -0500, Steve Wise wrote:
> Hey,
> 
> I see a mlx5 compile error with the for-next branch:
> 
> drivers/net/ethernet/mellanox/mlx5/core/fs_core.c: In function
> 'mlx5_init_fs':
> drivers/net/ethernet/mellanox/mlx5/core/fs_core.c:2645:2: error: implicit
> declaration of function 'mlx5_accel_ipsec_device_caps'
> [-Werror=implicit-function-declaration]
>   if (mlx5_accel_ipsec_device_caps(steering->dev) &
>   ^
> drivers/net/ethernet/mellanox/mlx5/core/fs_core.c:2646:6: error:
> 'MLX5_ACCEL_IPSEC_DEVICE' undeclared (first use in this function)
>       MLX5_ACCEL_IPSEC_DEVICE) {
>       ^
> drivers/net/ethernet/mellanox/mlx5/core/fs_core.c:2646:6: note: each
> undeclared identifier is reported only once for each function it appears in
>   CC [M]  drivers/net/wireless/ath/carl9170/cmd.o
> cc1: some warnings being treated as errors
> make[5]: *** [drivers/net/ethernet/mellanox/mlx5/core/fs_core.o] Error 1
> make[5]: *** Waiting for unfinished jobs....
> 
> Is something missing?

The fix is waiting in wip/dl-for-next, it should merge over tomorrow.

cherry-pick this to fix it:

commit d83a69c2b1b17a8aedc7a75ba8b620bfd2057e93
Author: Saeed Mahameed <saeedm@xxxxxxxxxxxx>
Date:   Wed Mar 7 15:44:48 2018 -0800

    net/mlx5: Use MLX5_IPSEC_DEV macro for ipsec caps
    
    Fix build break of mlx5_accel_ipsec_device_caps is not defined when
    MLX5_ACCEL is not selected, use MLX5_IPSEC_DEV instead which handles
    such case.
    
    Signed-off-by: Saeed Mahameed <saeedm@xxxxxxxxxxxx>
    Reported-by: Doug Ledford <dledford@xxxxxxxxxx>

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux