[PATCH 2/6] common/mlx5: fix the curly braces mismatch problem

Weiguo Li liwg06 at foxmail.com
Sun Feb 6 01:44:10 CET 2022


Supplement the second half of braces for the extern "C" block

Fixes: 7525ebd8ebb0 ("common/mlx5: add glue functions on Windows")
Cc: talshn at nvidia.com

Signed-off-by: Weiguo Li <liwg06 at foxmail.com>
---
 drivers/common/mlx5/windows/mlx5_win_defs.h | 5 +++++
 drivers/common/mlx5/windows/mlx5_win_ext.h  | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/drivers/common/mlx5/windows/mlx5_win_defs.h b/drivers/common/mlx5/windows/mlx5_win_defs.h
index 9f709ff30d..14b2b5d3b3 100644
--- a/drivers/common/mlx5/windows/mlx5_win_defs.h
+++ b/drivers/common/mlx5/windows/mlx5_win_defs.h
@@ -262,4 +262,9 @@ enum {
 	MLX5_MATCH_MISC_PARAMETERS      = 1 << 1,
 	MLX5_MATCH_INNER_HEADERS        = 1 << 2,
 };
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __MLX5_WIN_DEFS_H__ */
diff --git a/drivers/common/mlx5/windows/mlx5_win_ext.h b/drivers/common/mlx5/windows/mlx5_win_ext.h
index b5d4484a13..7cb7ce5e58 100644
--- a/drivers/common/mlx5/windows/mlx5_win_ext.h
+++ b/drivers/common/mlx5/windows/mlx5_win_ext.h
@@ -44,4 +44,8 @@ struct mlx5_devx_clock {
 #define GET_DEVX_CTX(ctx) (((mlx5_context_st *)ctx)->devx_ctx)
 #define GET_OBJ_CTX(obj)  (((mlx5_devx_obj_st *)obj)->devx_ctx)
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __MLX5_WIN_ETX_H__ */
-- 
2.25.1



More information about the dev mailing list