Due to the missing __packed definition, compiler treating
it as as global variable.
#grep "Allocating common symbols" -A 100 build/app/testacl.map
__packed 0x8 /build/lib/librte_pmd_dpaa2.a(dpaa2_rxtx.o)
Fixes: a5fc38d422a7 ("net/dpaa2: support Rx packet parsing")
Cc: [email protected]
Signed-off-by: Jerin Jacob <[email protected]>
---
drivers/net/dpaa2/base/dpaa2_hw_dpni_annot.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni_annot.h
b/drivers/net/dpaa2/base/dpaa2_hw_dpni_annot.h
index 41931e858..779cdf2b2 100644
--- a/drivers/net/dpaa2/base/dpaa2_hw_dpni_annot.h
+++ b/drivers/net/dpaa2/base/dpaa2_hw_dpni_annot.h
@@ -37,7 +37,7 @@ struct dpaa2_fas {
uint8_t ppid;
__le16 ifpid;
__le32 status;
-} __packed;
+} __attribute__((__packed__));
/**
* HW Packet Annotation Register structures
--
2.16.1