From patchwork Fri Apr 27 02:43:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 39077 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D1ADA7CFF; Fri, 27 Apr 2018 04:43:52 +0200 (CEST) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 137797CDA for ; Fri, 27 Apr 2018 04:43:49 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 6F08C21C74; Thu, 26 Apr 2018 22:43:49 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 26 Apr 2018 22:43:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=mesmtp; bh=GxfdKO4i79JAUd RG3G0tIvc90wlcZsx9j1Ll8hYSop4=; b=UqPL5N6yBDGQZldCB6vX+jz4Gda6Ad idrPk8Du5D2r924+eNdMT4L8bU1m1Rum4SzhsN39lqkTnYNyFXE7UVtLj/1y4LbP nWwreFUAIYAy19yCu4epJqeNbR3Vu4b5JCzQWBlge2SxQJs+Vdt5ABygUl95OEky fBID9cmZGTQDk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=GxfdKO4i79JAUdRG3G0tIvc90wlcZsx9j1Ll8hYSop4=; b=XGGijh3C 0dWpGkjgxo1e5GEI2Nc47r1MorEW6OXMO4SfNC8QoSPnAOsdc24rk77R2vMYxaio w3d9nf8s97CzS98prFSPuAEwfcjPEf+9w/FrcO9/SmkH4+e2+15VoZPYbeVxsfL8 NxQ82sirkH+5L3aU/w9YILbptB4CEeunt48weo08lRmhEmGEfqOYCPIqBWQAghTN ZRTc4MYk4vUq7IyqAvRDaJk0DsEuV0hrk8CF73wa4Oox34SWaqkYk+sdVeeYcpAf OKJgbHpnmo+iY8FzM0j8tc54H8fNVGg4EHotbHGodS/pBBMAZl9i1CW4qiOTt4px Ivh+mIGCp+b1Vw== X-ME-Sender: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id BB68DE498C; Thu, 26 Apr 2018 22:43:48 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: aconole@redhat.com, tredaelli@redhat.com Date: Fri, 27 Apr 2018 04:43:41 +0200 Message-Id: <20180427024342.24054-2-thomas@monjalon.net> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180427024342.24054-1-thomas@monjalon.net> References: <20180427024342.24054-1-thomas@monjalon.net> Subject: [dpdk-dev] [PATCH 1/2] eal: fix build with glibc < 2.16 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The fake getauxval function does not use its parameter. So the compiler raised this error: lib/librte_eal/common/eal_common_cpuflags.c:25:25: error: unused parameter 'type' Fixes: 2ed9bf330709 ("eal: abstract away the auxiliary vector") Cc: aconole@redhat.com Cc: tredaelli@redhat.com Signed-off-by: Thomas Monjalon Acked-by: Aaron Conole --- lib/librte_eal/common/eal_common_cpuflags.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/eal_common_cpuflags.c b/lib/librte_eal/common/eal_common_cpuflags.c index a09667563..6a9dbaeb1 100644 --- a/lib/librte_eal/common/eal_common_cpuflags.c +++ b/lib/librte_eal/common/eal_common_cpuflags.c @@ -22,7 +22,7 @@ #ifndef HAS_AUXV static unsigned long -getauxval(unsigned long type) +getauxval(unsigned long type __rte_unused) { errno = ENOTSUP; return 0;