From 1785d9eb62eea2b32c08ea30bfdd318e45b8120c Mon Sep 17 00:00:00 2001 From: Weiguo Li Date: Mon, 7 Feb 2022 20:36:56 +0800 Subject: [PATCH] bus/dpaa: fix C++ include guard 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 --- drivers/bus/dpaa/include/fsl_fman.h | 4 ---- drivers/bus/dpaa/rte_dpaa_bus.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/bus/dpaa/include/fsl_fman.h b/drivers/bus/dpaa/include/fsl_fman.h index acb344584f..20690f8329 100644 --- a/drivers/bus/dpaa/include/fsl_fman.h +++ b/drivers/bus/dpaa/include/fsl_fman.h @@ -9,10 +9,6 @@ #include -#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. */ diff --git a/drivers/bus/dpaa/rte_dpaa_bus.h b/drivers/bus/dpaa/rte_dpaa_bus.h index 31a5ea3fca..54bb1436fd 100644 --- a/drivers/bus/dpaa/rte_dpaa_bus.h +++ b/drivers/bus/dpaa/rte_dpaa_bus.h @@ -17,6 +17,10 @@ #include #include +#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