From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id BF5D18DA2 for ; Mon, 2 Nov 2015 03:18:40 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 01 Nov 2015 18:18:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,232,1444719600"; d="scan'208";a="840758593" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga002.fm.intel.com with ESMTP; 01 Nov 2015 18:18:39 -0800 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 1 Nov 2015 18:18:39 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 1 Nov 2015 18:18:39 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.96]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.194]) with mapi id 14.03.0248.002; Mon, 2 Nov 2015 10:18:38 +0800 From: "Xie, Huawei" To: Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH v6 5/8] virtio: virtio vec rx Thread-Index: AdEVFMgj4FG6RsTIQZua6Xgs5ian1A== Date: Mon, 2 Nov 2015 02:18:37 +0000 Message-ID: References: <1443537953-23917-1-git-send-email-huawei.xie@intel.com> <1446130409-8217-1-git-send-email-huawei.xie@intel.com> <1446130409-8217-6-git-send-email-huawei.xie@intel.com> <27298667.Vrp1X8IJFV@xps13> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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 v6 5/8] virtio: virtio vec rx 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: Mon, 02 Nov 2015 02:18:41 -0000 On 10/31/2015 2:21 AM, Thomas Monjalon wrote:=0A= > Sorry, there is a clang error.=0A= >=0A= > 2015-10-29 22:53, Huawei Xie:=0A= >> + _mm_prefetch((const void *)rused, _MM_HINT_T0);=0A= > virtio_rxtx_simple.c:197:2: error: cast from 'const void *' to=0A= > 'void *' drops const qualifier=0A= This is weird. This conversion is actually from 'void *' to 'const void=0A= *', not the opposite, so there should be no error.=0A= I checked clang build, it doesn't report error.=0A= clang version 3.3 (tags/RELEASE_33/rc2)=0A= =0A=