From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: [PATCH] bus/dpaa: fix compilation issue with meson build Date: Mon, 4 Jun 2018 08:22:46 +0530 Message-ID: <20180604025246.25548-1-jerin.jacob@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain Cc: hemant.agrawal@nxp.com, thomas@monjalon.net, bruce.richardson@intel.com, Jerin Jacob , stable@dpdk.org To: dev@dpdk.org Return-path: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" ccache gcc -Idrivers/drivers@@tmp_rte_pmd_dpaa_sec@sta -Idrivers In file included from ../drivers/bus/dpaa/include/fsl_usd.h:11, from ../drivers/crypto/dpaa_sec/dpaa_sec.c:27: ../drivers/bus/dpaa/include/compat.h:53: error: "__packed" redefined [-Werror] #define __packed __rte_packed In file included from /usr/include/bsd/string.h:39, from ../lib/librte_eal/common/include/rte_string_fns.h:71, from ../drivers/crypto/dpaa_sec/dpaa_sec.c:25: /usr/include/bsd/sys/cdefs.h:120: note: this is the location of the previous definition # define __packed __attribute__((__packed__)) Cc: stable@dpdk.org Fixes: 39f373cf015a ("bus/dpaa: add compatibility and helper macros") Signed-off-by: Jerin Jacob --- drivers/bus/dpaa/include/compat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/bus/dpaa/include/compat.h b/drivers/bus/dpaa/include/compat.h index e4b570214..0b49ed5e4 100644 --- a/drivers/bus/dpaa/include/compat.h +++ b/drivers/bus/dpaa/include/compat.h @@ -50,7 +50,9 @@ /* Required compiler attributes */ #define __maybe_unused __rte_unused #define __always_unused __rte_unused +#ifndef __packed #define __packed __rte_packed +#endif #define noinline __attribute__((noinline)) #define L1_CACHE_BYTES 64 -- 2.17.1