From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 7885F5B26 for ; Tue, 23 Oct 2018 11:06:13 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 17A41220C9; Tue, 23 Oct 2018 05:06:13 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 23 Oct 2018 05:06:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=yAbQfD2Ps5mlYa5K1WNULRcTodrYnzVaeOK4dnCAQ6A=; b=YZZAy/ArVzKq 1kRu62zFL+3aYs+iOSUHNfts+d/u9ryWK0ijOTrQkSvH+8GGrkeFTl5sWrWzxQ9g wVsQBK8Rs6m66F9CpCAwpytCRj1WkLdAo6hGgnw4Mo36jUD4ky7Vws29jvb5GD/I ULWzoyckhSxD0c6SaL5TgcI6TbUeoLY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=yAbQfD2Ps5mlYa5K1WNULRcTodrYnzVaeOK4dnCAQ 6A=; b=RNiDy7eYDXofOKvKUhh9h8ykxCZXvb9xziNfWeYU/+jqw0koIwU6hn8N/ qdCfECwNHs4t4StkRODk+pmGYCaoRr6wudkFBV+FpDG1CXOPq2W7KMrGNesEnQ0x o8G6qBVq/m9GOL0NWjIvpTw/JcK0ORmq0VWcALHblAngbQRxnuNsbMd9seDMRvH5 RDHLeyPc5tXBnhjrfU5aHt3LiXiB2E0pCHMhYdYdKS9oapaLdbcORu4uBE+HhEBr 5ija306LGhC3VqnSpmj05qdymKTrVy6V3RsWkfP+an05C3ZcphiTW+RYhn+QNZBI 4DNiJOF12RRIIl9GEFzrTNt7FhQJA== X-ME-Sender: X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id D99F2E48BD; Tue, 23 Oct 2018 05:06:11 -0400 (EDT) From: Thomas Monjalon To: Ali Alnubani Cc: dev@dpdk.org Date: Tue, 23 Oct 2018 11:06:14 +0200 Message-ID: <1620738.05UcecG66J@xps> In-Reply-To: <20181023073535.16441-1-alialnu@mellanox.com> References: <20181023073535.16441-1-alialnu@mellanox.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] test/test_external_mem: fix loop initialization 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: Tue, 23 Oct 2018 09:06:13 -0000 23/10/2018 09:35, Ali Alnubani: > Loop initial declarations are only allowed in C99 mode, > which causes a compilation failure on non C99 compliant systems: >=20 > test/test/test_external_mem.c: In function =E2=80=98test_external_mem=E2= =80=99: > test/test/test_external_mem.c:375:2: error: =E2=80=98for=E2=80=99 > loop initial declarations are only allowed in C99 mode > for (int i =3D 0; i < n_pages; i++) { > ^ >=20 > Reproduces on RHEL 7.4 with GCC 4.8.5 20150623 (Red Hat 4.8.5-16). >=20 > Fixes: b270daa43b3d ("test: support external memory") > Cc: anatoly.burakov@intel.com >=20 > Signed-off-by: Ali Alnubani There was already a patch from Dan Gora: http://patches.dpdk.org/patch/46921/