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

Message ID tencent_A098141E9853F4085D1DA16FA5110991C007@qq.com (mailing list archive)
State Superseded, archived
Headers
Series [1/6] bus/dpaa: fix the curly braces mismatch problem |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Weiguo Li Feb. 6, 2022, 12:44 a.m. UTC
  Supplement the second half of braces for the extern "C" block

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

Signed-off-by: Weiguo Li <liwg06@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(+)
  

Patch

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__ */