net/mlx5: Add missing include file to lib/crypto.c
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 15 Aug 2019 19:46:08 +0000 (19:46 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 20 Aug 2019 20:53:58 +0000 (13:53 -0700)
Add missing include file to avoid compiler warnings:
drivers/net/ethernet/mellanox/mlx5/core//lib/crypto.c:6:5:
warning: no previous prototype for ‘mlx5_create_encryption_key’
    6 | int mlx5_create_encryption_key(struct mlx5_core_dev *mdev,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core//lib/crypto.c:60:6:
 warning: no previous prototype for ‘mlx5_destroy_encryption_key’
   60 | void mlx5_destroy_encryption_key(struct mlx5_core_dev *mdev, ...

Fixes: 45d3b55dc665 ("net/mlx5: Add crypto library to support create/destroy encryption key")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/crypto.c

index ea9ee88491e5d13e120efed9556af2241eec92c6..22bc45c831d2be22c1159958ac71465b6e9708b7 100644 (file)
@@ -2,6 +2,7 @@
 // Copyright (c) 2019 Mellanox Technologies.
 
 #include "mlx5_core.h"
+#include "lib/mlx5.h"
 
 int mlx5_create_encryption_key(struct mlx5_core_dev *mdev,
                               void *key, u32 sz_bytes,