From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 5F1839223 for ; Thu, 26 Nov 2015 22:02:24 +0100 (CET) Received: by wmec201 with SMTP id c201so35759776wme.1 for ; Thu, 26 Nov 2015 13:02:24 -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=D+JYbfWOnwaMlVzIeCU4nn9ZyXLvX7gearnh8WhsK2E=; b=ZuOd42as2Uiyy2yzKc2bFGg0DwLj55xlEqOq9VxHCExEdpyXAtARx1N39YQ7s4Wjt2 aRVXFuO8Iua3RkVUc+dkdMmzyDPcVCBd52n6+sk/+7wKPiRmE32+vnJte0NMGIqL7lM2 3Pvj83EMhWyr0pElzq2Wv8ReNTlc4Gf+ntwVuU47wsuwZOH+9D3TdofwqQMyKU4Mu8kv ynJUbEY0j4p1nU/HZ0kagWdM720zOa0Opa3CJuqnfRmjUIpyq6bhpuD4A56XM86qEyH9 d7QZqiSQh2KTYnvPAX0XlpZ2be4S/PpUi9ZgrTUL/dFgVTRPDebD5awt2lU0t69ePD6y BqOw== 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=D+JYbfWOnwaMlVzIeCU4nn9ZyXLvX7gearnh8WhsK2E=; b=FKU1tTRlt1ITy5tOojVkSmHgueWHx3IT6ZBAGbFL2/tYgq9qGfzQWLiMW1+neFd/7H k5UQGBtSj31ZxBCjIkLVu2TMaSopbW1yhbi6GTCo5XMC7DfDNvAnvhCSy1/qfsQ95BNL +JQnKmB+/dtgXWb1UNEzyTudX37kq4A0K3per9xMvdehOMQee9D553PmCXpldi1YxH4s fFePg1DdJJBDJZ717ydkTDQzKlyj/MEi2MvOhiD+nVHyJ85VwhBepApHvc2eh/qSbbVZ G3Qd11YneBLL4EkeRXAMZLR7+d90pNjcyCjBhw1ZB8Tp7g+6NtswDV0J/y/JcUn+ZEdn t7yQ== X-Gm-Message-State: ALoCoQnNyUYOcIkQ3MXrt54F63pN1jROXmZJxNIECraKLAeWdRnziWbd84VKnjSug2KGSKr0SHzM X-Received: by 10.28.176.70 with SMTP id z67mr6295207wme.5.1448571744179; Thu, 26 Nov 2015 13:02:24 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id pc2sm29690180wjb.11.2015.11.26.13.02.23 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Nov 2015 13:02:23 -0800 (PST) From: Thomas Monjalon To: Michael Qiu Date: Thu, 26 Nov 2015 22:01:05 +0100 Message-ID: <11169404.uYeKUpALP3@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1448501706-21718-1-git-send-email-michael.qiu@intel.com> References: <1448501706-21718-1-git-send-email-michael.qiu@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 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: Thu, 26 Nov 2015 21:02:24 -0000 2015-11-26 09:35, Michael Qiu: > 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 *". [...] > - _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); With clang: error: cast from 'const void *' to 'void *' drops const qualifier