]> git.droids-corp.org - dpdk.git/commitdiff
bus/dpaa: fix C++ include guard
authorWeiguo Li <liwg06@foxmail.com>
Mon, 7 Feb 2022 12:36:56 +0000 (20:36 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 8 Feb 2022 15:59:23 +0000 (16:59 +0100)
Supplement the missing half of braces for the extern "C" block,
or remove the incomplete guard in internal header.

Fixes: 6d6b4f49a155 ("bus/dpaa: add FMAN hardware operations")
Fixes: 919eeaccb2ba ("bus/dpaa: introduce NXP DPAA bus driver skeleton")
Signed-off-by: Weiguo Li <liwg06@foxmail.com>
drivers/bus/dpaa/include/fsl_fman.h
drivers/bus/dpaa/rte_dpaa_bus.h

index acb344584fe09fb745e2270ae81fb9a5bdba57ec..20690f83299a63bba491c4a0717cc94b2dfd60c4 100644 (file)
@@ -9,10 +9,6 @@
 
 #include <rte_compat.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 /* Status field in FD is updated on Rx side by FMAN with following information.
  * Refer to field description in FM BG.
  */
index 31a5ea3fca921a45ff693133e96cf35b887b2e15..54bb1436fdbeb9a43cf09a70db661b0708f432ec 100644 (file)
 #include <fsl_bman.h>
 #include <netcfg.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* This sequence number field is used to store event entry index for
  * driver specific usage. For parallel mode queues, invalid
  * index will be set and for atomic mode queues, valid value