From 0d6e584247379c0a76db29073954d3e11c659660 Mon Sep 17 00:00:00 2001 From: Anatoly Burakov Date: Fri, 5 Jul 2019 14:10:31 +0100 Subject: [PATCH] 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 --- lib/librte_eal/common/eal_memcfg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.20.1