From: Jerin Jacob <jerin.jacob@caviumnetworks.com>
To: dev@dpdk.org
Cc: hemant.agrawal@nxp.com, thomas@monjalon.net,
bruce.richardson@intel.com,
Jerin Jacob <jerin.jacob@caviumnetworks.com>,
stable@dpdk.org
Subject: [dpdk-dev] [PATCH] bus/dpaa: fix compilation issue with meson build
Date: Mon, 4 Jun 2018 08:22:46 +0530 [thread overview]
Message-ID: <20180604025246.25548-1-jerin.jacob@caviumnetworks.com> (raw)
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 <jerin.jacob@caviumnetworks.com>
---
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
next reply other threads:[~2018-06-04 2:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-04 2:52 Jerin Jacob [this message]
2018-06-05 6:20 ` Shreyansh Jain
2018-06-21 8:25 ` [dpdk-dev] [dpdk-stable] " Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180604025246.25548-1-jerin.jacob@caviumnetworks.com \
--to=jerin.jacob@caviumnetworks.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=hemant.agrawal@nxp.com \
--cc=stable@dpdk.org \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).