[DPDK] /driver/bus/ifpga: Fix a brackets unmatch

Message ID 1547445668-15578-1-git-send-email-andy.pei@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers
Series [DPDK] /driver/bus/ifpga: Fix a brackets unmatch |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Pei, Andy Jan. 14, 2019, 6:01 a.m. UTC
  The code

extern "C" {

miss a related

}

fixes: 05fa3d4a6539
cc: rosen.xu@intel.com
cc: tianfei.zhang@intel.com
cc: andy.pei@intel.com

Signed-off-by: AndyPei <andy.pei@intel.com>
---
 drivers/bus/ifpga/rte_bus_ifpga.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
  

Comments

Xu, Rosen Jan. 16, 2019, 11:29 a.m. UTC | #1
Hi,

The subject should be started with bus/ifpga.

> -----Original Message-----
> From: Pei, Andy
> Sent: Monday, January 14, 2019 14:01
> To: dev@dpdk.org
> Cc: Xu, Rosen <rosen.xu@intel.com>; Zhang, Tianfei
> <tianfei.zhang@intel.com>; Pei, Andy <andy.pei@intel.com>
> Subject: [DPDK] /driver/bus/ifpga: Fix a brackets unmatch
> 
> The code
> 
> extern "C" {
> 
> miss a related
> 
> }
> 
> fixes: 05fa3d4a6539
> cc: rosen.xu@intel.com
> cc: tianfei.zhang@intel.com
> cc: andy.pei@intel.com
> 
> Signed-off-by: AndyPei <andy.pei@intel.com>
> ---
>  drivers/bus/ifpga/rte_bus_ifpga.h | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/bus/ifpga/rte_bus_ifpga.h
> b/drivers/bus/ifpga/rte_bus_ifpga.h
> index d53c0f4..0bf43ba 100644
> --- a/drivers/bus/ifpga/rte_bus_ifpga.h
> +++ b/drivers/bus/ifpga/rte_bus_ifpga.h
> @@ -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_ */
> --
> 1.8.3.1
  

Patch

diff --git a/drivers/bus/ifpga/rte_bus_ifpga.h b/drivers/bus/ifpga/rte_bus_ifpga.h
index d53c0f4..0bf43ba 100644
--- a/drivers/bus/ifpga/rte_bus_ifpga.h
+++ b/drivers/bus/ifpga/rte_bus_ifpga.h
@@ -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_ */