net/mlx5: Fixed compilation issue when CONFIG_MLX5_ACCEL is disabled
authorAviad Yehezkel <aviadye@mellanox.com>
Thu, 22 Feb 2018 15:40:52 +0000 (17:40 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
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 <aviadye@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/accel/ipsec.h

index d6e20fe..67cda88 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),