From patchwork Wed Apr 29 05:26:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Haiyue" X-Patchwork-Id: 69511 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DE5F8A00BE; Wed, 29 Apr 2020 07:41:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 45BDE1D8C9; Wed, 29 Apr 2020 07:41:31 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id A7D481D737 for ; Wed, 29 Apr 2020 07:41:29 +0200 (CEST) IronPort-SDR: jIeRfVO+dCZO2n85PDhKZKgpEIh8M1FuD2y3WegJPpzI9k4uQey2cAyI6uQdZGg7tspXQMrC6z h2UTSpzZTvQw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2020 22:41:27 -0700 IronPort-SDR: cN2FGHUcrdGaJqLAZNR16NItMf4SHXmHoFizTuyFiBXDiBBsvH1yVu4/WTzs4DWnvBW9pF9HCT GCXNBJ2MzS/A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,330,1583222400"; d="scan'208";a="276068627" Received: from npg-dpdk-haiyue-2.sh.intel.com ([10.67.119.70]) by orsmga002.jf.intel.com with ESMTP; 28 Apr 2020 22:41:26 -0700 From: Haiyue Wang To: dev@dpdk.org, bruce.richardson@intel.com, konstantin.ananyev@intel.com, ian.stokes@intel.com Cc: Haiyue Wang Date: Wed, 29 Apr 2020 13:26:24 +0800 Message-Id: <20200429052624.20742-1-haiyue.wang@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v1] eal: ignore alignment warnings for x86 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" There several alignment warnings when including rte_memcpy header file externally like OVS for x86. Signed-off-by: Haiyue Wang --- lib/librte_eal/x86/include/rte_memcpy.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_eal/x86/include/rte_memcpy.h b/lib/librte_eal/x86/include/rte_memcpy.h index ba44c4a32..6f5e0feb4 100644 --- a/lib/librte_eal/x86/include/rte_memcpy.h +++ b/lib/librte_eal/x86/include/rte_memcpy.h @@ -22,6 +22,10 @@ extern "C" { #endif +#ifndef __INTEL_COMPILER +#pragma GCC diagnostic ignored "-Wcast-align" +#endif + /** * Copy bytes from one location to another. The locations must not overlap. *