From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id B305CC3A4 for ; Thu, 28 Jan 2016 09:36:06 +0100 (CET) Received: by mail-wm0-f45.google.com with SMTP id r129so13740285wmr.0 for ; Thu, 28 Jan 2016 00:36:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=UrVEbNxedVBP5EAsDPMwkg/h4R5JgtgE5RkWWNsrEgU=; b=x5Fh3uxEf8X4lO6lojhPU7fXmrDSbhmmg6D4UtcxLgvPsE3KePXpPLLxJRHYzTUYAD CTH5eiri6DtwUVMmLQrSzcO3e/xlmnaQv2pQW94RHB9jCCN3TiePtZrFAFtJ01H8P0Jc Fgl67bpehC5DquYF6mIQvmcrzgq72aHlLzbKT5bNd45A1hGKx2h7Iy2F/zQdm9E+0XiV CfL5GMmhgaY5vKdsJITZ1s7pSTOb7yXDP9j8SjAP3o0WlEcteKLOJkWb8fsOz11TY3jF f6BT2AA0xxPcd4nHsBtW9yrIZkNWrz5kf71VFy/RPBcPnw19jQmhG6IUQ2x30Sacvv3c Hw9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=UrVEbNxedVBP5EAsDPMwkg/h4R5JgtgE5RkWWNsrEgU=; b=lJgKjfMfccaJmVl4KInr987LnblenKBBMosKX1/txLgofoIwW0WjTQHCPdoum1CExd T2Hg/eMrAggE8n0ksC7uERsN5D4eoCkJZ3y42ooGSkfuzddWBMOyIQ6ydLW34FfqMj47 B1UFL6eyiOQS80E70zTKOSiVcieI+7kpj17Ef4E3jaEyBP9H98oR0R2wXWTgE3HOC3PA M2bmJn3MyO8ap3IQsLbe1MWyR4jy0+cfukg+atKC4in4OKawo/6DBlFt+8VwFY1X9dw4 syPqU0X8e7rC8AVeUIuOYjFP5toJeEDN1vMpl53hiVgXgNJ1133m9V23rqEei8iUZhu4 rt5A== X-Gm-Message-State: AG10YOQULQBaT9YdtlOwOiCetYgAGtKAOkKHsoNtSV/Q0Ia48T1TEVbZMDWmmJBsJYTm14RY X-Received: by 10.28.125.147 with SMTP id y141mr1607978wmc.18.1453970166567; Thu, 28 Jan 2016 00:36:06 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id kw1sm9933341wjb.12.2016.01.28.00.36.05 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Jan 2016 00:36:05 -0800 (PST) From: Thomas Monjalon To: "Qiu, Michael" Date: Thu, 28 Jan 2016 09:34:55 +0100 Message-ID: <6157230.jKGj62o0dz@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <8F6C2BD409508844A0EFC19955BE0941033AB5E7@SHSMSX103.ccr.corp.intel.com> References: <1453966234-10577-1-git-send-email-michael.qiu@intel.com> <8F6C2BD409508844A0EFC19955BE0941033AB5E7@SHSMSX103.ccr.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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:36:06 -0000 2016-01-28 08:01, Wang, Zhihong: > > In fedora 22 with GCC version 5.3.1, when compile, > > will result an error: > > > > include/rte_memcpy.h:309:7: error: "RTE_MACHINE_CPUFLAG_AVX2" > > is not defined [-Werror=undef] > > #elif RTE_MACHINE_CPUFLAG_AVX2 > > > > Fixes: 9484092baad3 ("eal/x86: optimize memcpy for AVX512 platforms") > > > > Signed-off-by: Michael Qiu > > 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 Applied, thanks