From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal/common: better likely() and unlikely() Date: Sat, 20 Jan 2018 17:28:21 +0100 Message-ID: <2159612.Yb9fnfsrWT@xps> References: <1511129764-23123-1-git-send-email-Aleksey.Baulin@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, stephen@networkplumber.org, Jim Thompson , keith.wiles@intel.com To: Aleksey Baulin Return-path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id DEA1A4B4B for ; Sat, 20 Jan 2018 17:28:57 +0100 (CET) In-Reply-To: <1511129764-23123-1-git-send-email-Aleksey.Baulin@gmail.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 19/11/2017 23:16, Aleksey Baulin: > A warning is issued when using an argument to likely() or unlikely() > builtins which is evaluated to a pointer value, as __builtin_expect() > expects a 'long int' type for its first argument. With this fix > a pointer value is converted to an integer with the value of 0 or 1. > > Signed-off-by: Aleksey Baulin After philosophical debates, Applied, thanks :)