Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, HK_RANDOM_FROM,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E8BAC83004 for ; Wed, 29 Apr 2020 07:04:14 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id EBDF42076B for ; Wed, 29 Apr 2020 07:04:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EBDF42076B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3B3F01D8E1; Wed, 29 Apr 2020 09:04:13 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 94C7C1D8DB for ; Wed, 29 Apr 2020 09:04:11 +0200 (CEST) IronPort-SDR: U24Qt2jA/nLAhe54S7Wt6+CQenSC4ciLrbqt87m53wTzUJvxGYnEgOGaKZmoj04fKmd1hwuyE6 edDuXT0/7vlw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 00:04:10 -0700 IronPort-SDR: 7iKzU9ojDPHTPOlqWqb5162WA7AZDV2aB0iz/7LN3hcRBIA+tTox3/ZVm54TPAC3Xp7ORDMqco 2ZbYZxcGdsCQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,330,1583222400"; d="scan'208";a="432463898" Received: from npg-dpdk-haiyue-2.sh.intel.com ([10.67.119.70]) by orsmga005.jf.intel.com with ESMTP; 29 Apr 2020 00:04:08 -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 14:49:06 +0800 Message-Id: <20200429064906.11496-1-haiyue.wang@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200429052624.20742-1-haiyue.wang@intel.com> References: <20200429052624.20742-1-haiyue.wang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2] eal: ignore alignment warnings for x86 vector 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 --- v2: Use __GUNC__ macro to apply for suppressing the warning. --- 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..d4cfe8dd5 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 +#ifdef __GNUC__ +#pragma GCC diagnostic ignored "-Wcast-align" +#endif + /** * Copy bytes from one location to another. The locations must not overlap. * -- 2.26.2