From: Anatoly Burakov Date: Fri, 5 Jul 2019 13:10:31 +0000 (+0100) Subject: eal: remove packed attribute from mcfg structure X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0d6e584247379c0a76db29073954d3e11c659660;p=dpdk.git eal: remove packed attribute from mcfg structure There is no reason to pack the memconfig structure, and doing so gives out warnings in some static analyzers. Fix it by removing the packed attributed. Signed-off-by: Anatoly Burakov Acked-by: Stephen Hemminger Acked-by: David Marchand --- diff --git a/lib/librte_eal/common/eal_memcfg.h b/lib/librte_eal/common/eal_memcfg.h index 74f6159c64..e5b90e31d2 100644 --- a/lib/librte_eal/common/eal_memcfg.h +++ b/lib/librte_eal/common/eal_memcfg.h @@ -67,7 +67,7 @@ struct rte_mem_config { /**< stored single file segments parameter. */ uint8_t dma_maskbits; /**< Keeps the more restricted dma mask. */ -} __attribute__((packed)); +}; static inline void rte_eal_mcfg_wait_complete(struct rte_mem_config *mcfg)