Skip to contentSkip to conversation

/driver/bus/ifpga: Fix a brackets unmatch

DPDK Applied AndyPei 4 participants 6 messages Jan 14, 2019 – Jan 18, 2019

lore
Share & tools
lore

AndyPei

author
#0 lore raw

The code

extern "C" {

miss a related

}

---
 drivers/bus/ifpga/rte_bus_ifpga.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/bus/ifpga/rte_bus_ifpga.h +5 -1
index d53c0f4..0bf43ba 100644
@@ -13,7 +13,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif
+#endif /* __cplusplus */
 
 #include <rte_bus.h>
 #include <rte_pci.h>
@@ -143,4 +143,8 @@ struct rte_afu_driver {
 #define RTE_PMD_REGISTER_AFU_ALIAS(nm, alias)\
 static const char *afudrvinit_ ## nm ## _alias = RTE_STR(alias)
 
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
 #endif /* _RTE_BUS_IFPGA_H_ */
Signature · 1 line
1.8.3.1
#1 lore raw

Hi,

The subject should be started with bus/ifpga.

Quoted 51 lines

-----Original Message-----
From: Pei, Andy
Sent: Monday, January 14, 2019 14:01
To: [email protected]
Cc: Xu, Rosen <[email protected]>; Zhang, Tianfei <[email protected]>; Pei, Andy <[email protected]>
Subject: [DPDK] /driver/bus/ifpga: Fix a brackets unmatch

The code

extern "C" {

miss a related

}

---
 drivers/bus/ifpga/rte_bus_ifpga.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/bus/ifpga/rte_bus_ifpga.h +1 -1
index d53c0f4..0bf43ba 100644
@@ -13,7 +13,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif
+#endif /* __cplusplus */
 
 #include <rte_bus.h>
 #include <rte_pci.h>
@@ -143,4 +143,8 @@ struct rte_afu_driver {  #define

RTE_PMD_REGISTER_AFU_ALIAS(nm, alias)\ static const char *afudrvinit_ ## nm ## _alias = RTE_STR(alias)

drivers/bus/ifpga/rte_bus_ifpga.h +4 -1
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
 #endif /* _RTE_BUS_IFPGA_H_ */
--

1.8.3.1

author
#2 lore raw

[DPDK] bus/ifpga: fix a brackets unmatch

In reply to AndyPei

The code

extern "C" {

miss a related

}

Fixes 05fa3d4a6539 ("bus/ifpga: add Intel FPGA bus library")
---
 drivers/bus/ifpga/rte_bus_ifpga.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/bus/ifpga/rte_bus_ifpga.h +5 -1
index d53c0f4..0bf43ba 100644
@@ -13,7 +13,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif
+#endif /* __cplusplus */
 
 #include <rte_bus.h>
 #include <rte_pci.h>
@@ -143,4 +143,8 @@ struct rte_afu_driver {
 #define RTE_PMD_REGISTER_AFU_ALIAS(nm, alias)\
 static const char *afudrvinit_ ## nm ## _alias = RTE_STR(alias)
 
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
 #endif /* _RTE_BUS_IFPGA_H_ */
Signature · 1 line
1.8.3.1
#3 lore raw

Re: [DPDK] bus/ifpga: fix a brackets unmatch

Hi,

Quoted 7 lines

-----Original Message-----
From: Pei, Andy
Sent: Thursday, January 17, 2019 13:32
To: [email protected]
Cc: Xu, Rosen <[email protected]>; Pei, Andy <[email protected]>; [email protected]
Subject: [DPDK] bus/ifpga: fix a brackets unmatch

I think it's v2 patch, so pls identify it.
For the title, I think this one could be better.

C linkage names declaration brackets mismatch

Quoted 7 lines

The code

extern "C" {

miss a related

}

Pls descript it in detail not in demo code.

Quoted 35 lines
Fixes 05fa3d4a6539 ("bus/ifpga: add Intel FPGA bus library")
---
 drivers/bus/ifpga/rte_bus_ifpga.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/bus/ifpga/rte_bus_ifpga.h +1 -1
index d53c0f4..0bf43ba 100644
@@ -13,7 +13,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif
+#endif /* __cplusplus */
 
 #include <rte_bus.h>
 #include <rte_pci.h>
@@ -143,4 +143,8 @@ struct rte_afu_driver {  #define

RTE_PMD_REGISTER_AFU_ALIAS(nm, alias)\ static const char *afudrvinit_ ## nm ## _alias = RTE_STR(alias)

drivers/bus/ifpga/rte_bus_ifpga.h +4 -1
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
 #endif /* _RTE_BUS_IFPGA_H_ */
--

1.8.3.1

#4 lore raw

PATCH v2 1/1 bus/ifpga: fix build for cpp applications

In reply to Andy Pei

From: Andy Pei <[email protected]>

Brackets unmatch when __cplusplus defined.

Fixes 05fa3d4a6539 ("bus/ifpga: add Intel FPGA bus library")

---
Cc: [email protected]

---
 drivers/bus/ifpga/rte_bus_ifpga.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/bus/ifpga/rte_bus_ifpga.h +5 -1
index d53c0f483..0bf43ba88 100644
@@ -13,7 +13,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif
+#endif /* __cplusplus */
 
 #include <rte_bus.h>
 #include <rte_pci.h>
@@ -143,4 +143,8 @@ RTE_PMD_EXPORT_NAME(nm, __COUNTER__)
 #define RTE_PMD_REGISTER_AFU_ALIAS(nm, alias)\
 static const char *afudrvinit_ ## nm ## _alias = RTE_STR(alias)
 
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
 #endif /* _RTE_BUS_IFPGA_H_ */
Signature · 1 line
2.17.2