/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 +5 -1
@@ -13,7 +13,7 @@#ifdef __cplusplusextern "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
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 unmatchThe code
extern "C" {
miss a related
}
Signed-off-by AndyPei <[email protected]>--- drivers/bus/ifpga/rte_bus_ifpga.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)drivers/bus/ifpga/rte_bus_ifpga.h +1
-1@@ -13,7 +13,7 @@#ifdef __cplusplusextern "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
[DPDK] bus/ifpga: fix a brackets unmatch
In reply to AndyPeiThe 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
@@ -13,7 +13,7 @@#ifdef __cplusplusextern "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
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")Signed-off-by Andy Pei <[email protected]>--- drivers/bus/ifpga/rte_bus_ifpga.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)drivers/bus/ifpga/rte_bus_ifpga.h +1
-1@@ -13,7 +13,7 @@#ifdef __cplusplusextern "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
PATCH v2 1/1 bus/ifpga: fix build for cpp applications
In reply to Andy PeiFrom: Andy Pei <[email protected]>
Brackets unmatch when __cplusplus defined.
---
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
@@ -13,7 +13,7 @@#ifdef __cplusplusextern "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
Thomas Monjalon
AppliedRe: [dpdk-stable] [PATCH v2] bus/ifpga: fix build for cpp applications
18/01/2019 12:09, Ferruh Yigit:
Quoted 9 lines
From: Andy Pei <[email protected]>
Brackets unmatch when
__cplusplusdefined.Fixes 05fa3d4a6539 ("bus/ifpga: add Intel FPGA bus library")Signed-off-by Andy Pei <[email protected]>Reviewed-by Ferruh Yigit <[email protected]>
Applied, thanks