From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 6CCE595DE for ; Thu, 28 Jan 2016 09:01:22 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 28 Jan 2016 00:01:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,357,1449561600"; d="scan'208";a="735641075" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 28 Jan 2016 00:01:23 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 28 Jan 2016 00:01:20 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.218]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.209]) with mapi id 14.03.0248.002; Thu, 28 Jan 2016 16:01:18 +0800 From: "Wang, Zhihong" To: "Qiu, Michael" Thread-Topic: [PATCH] lib/librte_eal: Fix compile issue with gcc 5.3.1 Thread-Index: AQHRWZ3ShiFQEdBHZE+3GeWH++uiIJ8QiN7w Date: Thu, 28 Jan 2016 08:01:17 +0000 Message-ID: <8F6C2BD409508844A0EFC19955BE0941033AB5E7@SHSMSX103.ccr.corp.intel.com> References: <1453966234-10577-1-git-send-email-michael.qiu@intel.com> In-Reply-To: <1453966234-10577-1-git-send-email-michael.qiu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNDg1MjEwMGUtODcxNS00ZDc0LWJmZWEtZWM0OGYyYWFmYjM0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjQuMTAuMTkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiVmxCMm9vSGErQzkyN0ZJOVhVUkFxTHo4dnJCeFRyaVA0WlRNejgxXC84S2M9In0= x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] lib/librte_eal: Fix compile issue with gcc 5.3.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jan 2016 08:01:23 -0000 > Subject: [PATCH] lib/librte_eal: Fix compile issue with gcc 5.3.1 >=20 > In fedora 22 with GCC version 5.3.1, when compile, > will result an error: >=20 > include/rte_memcpy.h:309:7: error: "RTE_MACHINE_CPUFLAG_AVX2" > is not defined [-Werror=3Dundef] > #elif RTE_MACHINE_CPUFLAG_AVX2 >=20 > Fixes: 9484092baad3 ("eal/x86: optimize memcpy for AVX512 platforms") >=20 > Signed-off-by: Michael Qiu > --- > app/test/test_memcpy_perf.c | 2 +- > lib/librte_eal/common/include/arch/x86/rte_memcpy.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) There's issue in the original code. #elif works with statements: #elif < statement: true or false> But what it meant is whether the identifier has been defined: #elif defined Thanks for correcting this! Acked-by: Wang, Zhihong