bus/dpaa: fix build
The DPAA bus driver is defining some macros without prefix.
So it can conflict with other libraries like libbsd:
drivers/bus/dpaa/include/compat.h:53:
error: "__packed" redefined
/usr/include/bsd/sys/cdefs.h:120:
note: this is the location of the previous definition
Fixes: 39f373cf01
("bus/dpaa: add compatibility and helper macros")
Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
This commit is contained in:
parent
9d7ee7fc68
commit
ce819b8422
@ -48,9 +48,15 @@
|
||||
*/
|
||||
|
||||
/* Required compiler attributes */
|
||||
#ifndef __maybe_unused
|
||||
#define __maybe_unused __rte_unused
|
||||
#endif
|
||||
#ifndef __always_unused
|
||||
#define __always_unused __rte_unused
|
||||
#endif
|
||||
#ifndef __packed
|
||||
#define __packed __rte_packed
|
||||
#endif
|
||||
#define noinline __attribute__((noinline))
|
||||
|
||||
#define L1_CACHE_BYTES 64
|
||||
|
Loading…
Reference in New Issue
Block a user