From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 714F51DB1 for ; Fri, 27 Nov 2015 02:16:26 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 26 Nov 2015 17:16:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,349,1444719600"; d="scan'208";a="860187767" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga002.jf.intel.com with ESMTP; 26 Nov 2015 17:16:25 -0800 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 26 Nov 2015 17:16:24 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 26 Nov 2015 17:16:24 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.83]) by shsmsx102.ccr.corp.intel.com ([169.254.2.42]) with mapi id 14.03.0248.002; Fri, 27 Nov 2015 09:16:22 +0800 From: "Wan, Qun" To: "Qiu, Michael" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 1/2] examples/distributor: Fix compile issue Thread-Index: AQHRJ+q/eQAf6nl3JUCxBHe9CpKCfZ6vEreQ Date: Fri, 27 Nov 2015 01:16:22 +0000 Message-ID: <17AD763A69C1A24CA48C89AF567166204A5E3616@SHSMSX101.ccr.corp.intel.com> References: <1448501706-21718-1-git-send-email-michael.qiu@intel.com> In-Reply-To: <1448501706-21718-1-git-send-email-michael.qiu@intel.com> Accept-Language: en-IE, 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 Subject: Re: [dpdk-dev] [PATCH 1/2] examples/distributor: Fix compile issue 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: Fri, 27 Nov 2015 01:16:26 -0000 Acked and verified. -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michael Qiu Sent: Thursday, November 26, 2015 9:35 AM To: dev@dpdk.org Subject: [dpdk-dev] [PATCH 1/2] examples/distributor: Fix compile issue examples/distributor/main.c(338): error #167: argument of type "struct rte_mbuf *" is incompatible with parameter of type "const char *" _mm_prefetch(bufs[0], 0); The first param of _mm_prefetch should be "const char *" and need convert "= struct rte_mbuf *" to "const void *". Signed-off-by: Michael Qiu --- examples/distributor/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/distributor/main.c b/examples/distributor/main.c inde= x 972bddb..a4d8e34 100644 --- a/examples/distributor/main.c +++ b/examples/distributor/main.c @@ -335,13 +335,13 @@ lcore_tx(struct rte_ring *in_r) =20 /* for traffic we receive, queue it up for transmit */ uint16_t i; - _mm_prefetch(bufs[0], 0); - _mm_prefetch(bufs[1], 0); - _mm_prefetch(bufs[2], 0); + _mm_prefetch((const void *)bufs[0], 0); + _mm_prefetch((const void *)bufs[1], 0); + _mm_prefetch((const void *)bufs[2], 0); for (i =3D 0; i < nb_rx; i++) { struct output_buffer *outbuf; uint8_t outp; - _mm_prefetch(bufs[i + 3], 0); + _mm_prefetch((const void *)bufs[i + 3], 0); /* * workers should update in_port to hold the * output port value -- 1.9.3