From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id 7E5DA2E8A for ; Mon, 30 Jan 2017 17:14:51 +0100 (CET) Received: by mail-wm0-f53.google.com with SMTP id v77so53798773wmv.0 for ; Mon, 30 Jan 2017 08:14:51 -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:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=2tlvVJog4mMxzLDY41RhYzIfaJXt9XKBtsPeRN1TX6k=; b=MXQtw8HUC4qZvgryHb/XuWBmzESBzBL7W15/g2A/GU82m+9mlpYZ0oHqYikt39MI15 jPNLvFS/LtBvwVbzBmXH6oNBFasE7C1ovvpL3AI1y3AmA1T2Y1mlxU8qf5rh01p6ep7Y DUyYHH09i12N99/OpTKGvpYgD01AhRfVfRE+i1uCB2HjAzOSUH+ZIIMmzjHVr73utoNn Io7egyh556JqUFQ7H6NW5t7AcDyYXo7RWkxVNRbLUZbZTBKa83TpEvSeMtuyTWytyVlW 17mj8eiAr0B+hgbA1KAhn+rAiCiIZJ4bqlzdUFI9HJ/W9CDHFE8p7Xp4v1Cbl/EVEF6s X8Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=2tlvVJog4mMxzLDY41RhYzIfaJXt9XKBtsPeRN1TX6k=; b=chjnebZkr6kcEhT/BhoNw8+xmi9LFxLKzJUM1Wux9ZjusC0aBDFYG+W5dVvHhXwfU3 dtxVlwCb0bjBN1+76KBAtlBgN0/ZNespO3QqBYzRtWFNrSWiBXPexv6qDQTGH4cbIxvi iMakbeIni5Aq06dkY6iQhHepys5mM5zBtRneRCR5x2VAW3994G2ENIhqzLICwo7Tl20d sKJKe6W+at9MTsfHyuKGk6W81cPD1KsTy98PE2bf/+OOwC9rtyTAHb8Rq7cORGWfNMZu CsOgNqJhSltz9lL7OhRLyRp+F4U/ayp+XkMhJka3+7TshB4yRaucVQm5Qc7B/TdCdlXG NxnQ== X-Gm-Message-State: AIkVDXIi3mhE0ofUXTkpeFeHmt/CqpLqZAar9L7zOUOw3MoRQ7hx83a2jbDL9K6kCJXkRlgX X-Received: by 10.28.107.141 with SMTP id a13mr16018280wmi.61.1485792891116; Mon, 30 Jan 2017 08:14:51 -0800 (PST) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id w126sm23938062wmw.0.2017.01.30.08.14.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jan 2017 08:14:50 -0800 (PST) From: Thomas Monjalon To: Pablo de Lara Cc: dev@dpdk.org, byron.marohn@intel.com Date: Mon, 30 Jan 2017 17:14:49 +0100 Message-ID: <3954309.lYGbWXjxrN@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1485343758-179761-1-git-send-email-pablo.de.lara.guarch@intel.com> References: <1485343758-179761-1-git-send-email-pablo.de.lara.guarch@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] app/test: fix overflow in EFD test X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 16:14:51 -0000 2017-01-25 11:29, Pablo de Lara: > When RTE_EFD_VALUE_NUM_BITS is 32, there was a compilation issue > because of an overflow: > > app/test/test_efd.c:157:55: error: overflow in expression; > result is 2147483647 with type 'int' [-Werror,-Winteger-overflow] > data[0] = mrand48() & ((1 << RTE_EFD_VALUE_NUM_BITS) - 1); > > This commit fixes the issue by using a setting a different > macro VALUE_BITMASK with a conditional > > Fixes: 0e925aef2779 ("app/test: add EFD functional and perf tests") > > Reported-by: Yong Liu > Signed-off-by: Pablo de Lara Applied, thanks