Skip to contentSkip to conversation

common/mlx5: fix the curly braces mismatch problem

PATCH In review Weiguo Li 3 participants 7 messages Feb 7, 2022 1 message not in the archive Network drivers

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Weiguo Li

author
#1 lore raw

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

Remove the incomplete cplusplus guard in internal headers.

Fixes 7525ebd8ebb0 ("common/mlx5: add glue functions on Windows")
---
 drivers/common/mlx5/windows/mlx5_win_defs.h | 4 ----
 drivers/common/mlx5/windows/mlx5_win_ext.h  | 4 ----
 2 files changed, 8 deletions(-)
drivers/common/mlx5/windows/mlx5_win_defs.h +0 -4
index 9f709ff30d..3554e4a7ff 100644
@@ -5,10 +5,6 @@
 #ifndef __MLX5_WIN_DEFS_H__
 #define __MLX5_WIN_DEFS_H__
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 enum {
 	MLX5_CQE_OWNER_MASK	= 1,
 	MLX5_CQE_REQ		= 0,
drivers/common/mlx5/windows/mlx5_win_ext.h +0 -4
index b5d4484a13..6f69329a6f 100644
@@ -5,10 +5,6 @@
 #ifndef __MLX5_WIN_ETX_H__
 #define __MLX5_WIN_ETX_H__
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include "mlx5_prm.h"
 #include "mlx5devx.h"
 
Signature · 1 line
2.25.1
author
#2 lore raw

PATCH v2 3/6 net/cxgbe: fix the curly braces mismatch problem

In reply to a message not in the archive

Remove the incomplete cplusplus guard in internal header.

Fixes 3bd122eef2cc ("cxgbe/base: add hardware API for Chelsio T5 series adapters")
---
 drivers/net/cxgbe/base/common.h | 4 ----
 1 file changed, 4 deletions(-)
drivers/net/cxgbe/base/common.h +0 -4
index 58d7d7a8f2..af987b0d5d 100644
@@ -12,10 +12,6 @@
 #include "t4_chip_type.h"
 #include "t4fw_interface.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #define CXGBE_PAGE_SIZE RTE_PGSIZE_4K
 
 #define T4_MEMORY_WRITE 0
Signature · 1 line
2.25.1
author
#3 lore raw

PATCH v2 4/6 net/dpaa2: fix the curly braces mismatch problem

In reply to a message not in the archive

Remove the incomplete cplusplus guard in internal headers.

Fixes 72ec7a678e70 ("net/dpaa2: add soft parser driver")
---
 drivers/net/dpaa2/dpaa2_sparser.h | 4 ----
 1 file changed, 4 deletions(-)
drivers/net/dpaa2/dpaa2_sparser.h +0 -4
index 365b8062a9..ed0897928b 100644
@@ -13,10 +13,6 @@
 #ifndef _DPAA2_SPARSER_H
 #define _DPAA2_SPARSER_H
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #define WRIOP_SS_INITIALIZER(priv)				\
 do {								\
 	/* Base offset of parse profile memory in WRIOP */	\
Signature · 1 line
2.25.1
author
#4 lore raw

PATCH v2 5/6 eal/windows: fix the curly braces mismatch problem

In reply to a message not in the archive

Remove the incomplete cplusplus guard in internal header.

Fixes 6e1ed4cbbe99 ("eal/windows: add dirent implementation")
---
 lib/eal/windows/include/dirent.h | 3 ---
 1 file changed, 3 deletions(-)
lib/eal/windows/include/dirent.h +0 -3
index 34eb077f8c..b522424403 100644
@@ -658,7 +658,4 @@ dirent_set_errno(int error)
 #endif
 }
 
-#ifdef __cplusplus
-}
-#endif
 #endif /*DIRENT_H*/
Signature · 1 line
2.25.1
author
#7 lore raw

PATCH v2 6/6 eventdev: remove cplusplus guard in private header file

In reply to a message not in the archive

This private header contains an incomplete cplusplus guard, just remove it.

Fixes d35e61322de52 ("eventdev: move inline APIs into separate structure")
---
 lib/eventdev/eventdev_pmd.h | 4 ----
 1 file changed, 4 deletions(-)
lib/eventdev/eventdev_pmd.h +0 -4
index d0b0c00a60..b05ffce549 100644
@@ -1366,8 +1366,4 @@ void
 event_dev_fp_ops_set(struct rte_event_fp_ops *fp_ops,
 		     const struct rte_eventdev *dev);
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* _RTE_EVENTDEV_PMD_H_ */
Signature · 1 line
2.25.1