Skip to content

Commit

Permalink
bus/dpaa: fix C++ include guard
Browse files Browse the repository at this point in the history
[ upstream commit 1785d9e ]

Supplement the missing half of braces for the extern "C" block,
or remove the incomplete guard in internal header.

Fixes: 6d6b4f4 ("bus/dpaa: add FMAN hardware operations")
Fixes: 919eeac ("bus/dpaa: introduce NXP DPAA bus driver skeleton")

Signed-off-by: Weiguo Li <liwg06@foxmail.com>
  • Loading branch information
liwg06 authored and bluca committed Feb 17, 2022
1 parent d3f8892 commit 8650a0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/bus/dpaa/include/fsl_fman.h
Expand Up @@ -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.
*/
Expand Down
4 changes: 4 additions & 0 deletions drivers/bus/dpaa/rte_dpaa_bus.h
Expand Up @@ -17,6 +17,10 @@
#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
Expand Down

0 comments on commit 8650a0c

Please sign in to comment.