net/mlx5: Fixed compilation issue when CONFIG_MLX5_ACCEL is disabled
authorAviad Yehezkel <[email protected]>
Thu, 22 Feb 2018 15:40:52 +0000 (17:40 +0200)
committerSaeed Mahameed <[email protected]>
Wed, 7 Mar 2018 06:06:08 +0000 (22:06 -0800)
IPSec init and cleanup functions also depends on linux/mlx5/driver.h.

Signed-off-by: Aviad Yehezkel <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
drivers/net/ethernet/mellanox/mlx5/core/accel/ipsec.h

index d6e20fea95544fb302c6bb141550e62a9c8cb7b9..67cda8871f5a575c58657ebe2f26ec2bc4de535a 100644 (file)
 #ifndef __MLX5_ACCEL_IPSEC_H__
 #define __MLX5_ACCEL_IPSEC_H__
 
-#ifdef CONFIG_MLX5_ACCEL
-
 #include <linux/mlx5/driver.h>
 
+#ifdef CONFIG_MLX5_ACCEL
+
 enum {
        MLX5_ACCEL_IPSEC_DEVICE = BIT(1),
        MLX5_ACCEL_IPSEC_IPV6 = BIT(2),