common/cnxk: add include for macro definition
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 15 Jun 2022 17:10:13 +0000 (18:10 +0100)
committerJerin Jacob <jerinj@marvell.com>
Fri, 17 Jun 2022 13:15:19 +0000 (15:15 +0200)
commit3d171da6e700901a82bfdbf676a82c299ef50f38
treee1dc05e896b3427585e7079a159c4daf5a31aae8
parent22d9d34882158556ea6e67dc9dd7081f92c989ef
common/cnxk: add include for macro definition

The header file "roc_io.h" uses the "__plt_always_inline" macro but
don't include "roc_platform.h" to get the definition of it. This
inclusion is not necessary for compilation, but the lack of it can
confuse some indexers - such as those in eclipse, which reports the
lines:

"static __plt_always_inline uint64_t"

as possible definitions of a variable called "uint64_t". This confusion
leads to uint64_t being flagged as an unknown type in all other parts of
the project being indexed, e.g. across all of DPDK code.

Adding in the include of roc_platform.h makes it clear to the indexer
that those lines are  part of a function definition, and that allows
eclipse to correctly recognise uint64_t as a type from stdint.h

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_io.h