net/dpaa2: remove unused global variable
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Sat, 10 Feb 2018 11:57:36 +0000 (17:27 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 13 Feb 2018 15:42:11 +0000 (16:42 +0100)
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: stable@dpdk.org
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/net/dpaa2/base/dpaa2_hw_dpni_annot.h

index 41931e8..779cdf2 100644 (file)
@@ -37,7 +37,7 @@ struct dpaa2_fas {
        uint8_t ppid;
        __le16 ifpid;
        __le32 status;
-} __packed;
+}  __attribute__((__packed__));
 
 /**
  * HW Packet Annotation  Register structures