From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 011C8A00BE; Wed, 29 Apr 2020 10:29:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C77491D967; Wed, 29 Apr 2020 10:29:11 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 210761D966 for ; Wed, 29 Apr 2020 10:29:09 +0200 (CEST) IronPort-SDR: aiafgD+iZ1Qm2nKbXp4F12aTw+Fd2VdG3BputTZMNdHFmTK2t4bQ+cbQGNSWncdPqg0lLlaMap tapy31Efu1tw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 01:29:09 -0700 IronPort-SDR: K16Zqx/QL+lz5jhC/6TY9tXaMPRydNcYkZiEbILCv4AKzGL4aHCRspLaCUisDYuNhpOBnUCHkp W7P2sf6rsVZw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,330,1583222400"; d="scan'208";a="261365505" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga006.jf.intel.com with ESMTP; 29 Apr 2020 01:29:09 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 29 Apr 2020 01:29:09 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 29 Apr 2020 16:29:06 +0800 Received: from shsmsx603.ccr.corp.intel.com ([10.109.6.143]) by SHSMSX603.ccr.corp.intel.com ([10.109.6.143]) with mapi id 15.01.1713.004; Wed, 29 Apr 2020 16:29:05 +0800 From: "Wang, Haiyue" To: "dev@dpdk.org" , "Richardson, Bruce" , "Ananyev, Konstantin" , "Stokes, Ian" Thread-Topic: [PATCH v2] eal: ignore alignment warnings for x86 vector Thread-Index: AQHWHfRpMPj8Al1E8ECKIH5FYelLm6iPxFRQ Date: Wed, 29 Apr 2020 08:29:05 +0000 Message-ID: References: <20200429052624.20742-1-haiyue.wang@intel.com> <20200429064906.11496-1-haiyue.wang@intel.com> In-Reply-To: <20200429064906.11496-1-haiyue.wang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Dropped this patch, it is better to let the application to decide the warning level. BR, Haiyue > -----Original Message----- > From: Wang, Haiyue > Sent: Wednesday, April 29, 2020 14:49 > To: dev@dpdk.org; Richardson, Bruce ; Ananyev= , Konstantin > ; Stokes, Ian > Cc: Wang, Haiyue > Subject: [PATCH v2] eal: ignore alignment warnings for x86 vector >=20 > There several alignment warnings when including rte_memcpy header file > externally like OVS for x86. >=20 > 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(+) >=20 > 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 >=20 > +#ifdef __GNUC__ > +#pragma GCC diagnostic ignored "-Wcast-align" > +#endif > + > /** > * Copy bytes from one location to another. The locations must not overl= ap. > * > -- > 2.26.2