From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 21721960C for ; Sun, 19 Jun 2016 23:11:33 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id r201so36818665wme.1 for ; Sun, 19 Jun 2016 14:11:33 -0700 (PDT) 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:in-reply-to:references; bh=3KIJB0tiFoXJiWwIylo6r+ONChmrHKJR32rhp+tPW9s=; b=O6cXUdcwtfmHP1jZWUf8Tdnf0+8qKecRFrqFxdFeqwUiA0QLeLvGWNUfxKyrZ7Qynu GnUxjDq7QfkI5zl6+bEqZktMnTiQfpk3Fhbur+Eqbp1feIxmG132Kn0gUQv8Mk/3zMWQ 71O1ZsPiY6GB4FlR8TaaOX+/8NiyLZkSg+JiyrXELy3+eh4QC1O0R+5Bos5or2XMYArd ekct+mtY2iMIYOEx7uyJ+7HXhV4/EnXMyTluwXkXUO3AXFkJuuj2UlO88sKWTKianR0N YGI9yKm8CTQRlUO7qG3nSkXPkylPTtczIWD+dLOuWT97nSGoK2txpEye4V4WYvIGPgcg QLXA== 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:in-reply-to :references; bh=3KIJB0tiFoXJiWwIylo6r+ONChmrHKJR32rhp+tPW9s=; b=CgCW46PD/ruoEThVss/tPTJYQdk+lDJ3MWcSCR177i+VKJGX6JISHem6kZ3BUWXClU Kltt7YUBqkNAAl4nDoXddS/6syvyKMa/go/QzAgAZeXX6Rf9tQMsg8YLqqkDERJ7bNwv qzLmGiY4YcvFNxga/FsD4pYeQLWxE9zBUY7EKlJnDCzlZh/10+nR7YdkfdaVVboc7XkV T4zDGnqK9MWFR5xEVZtZZ9OIod72zvsRUc1UKv+4zf4rbeyFen+KANMk65ccLdA/efp3 qrfdxjkBQJNTG9OaGrwjCxFGfhNFHRykI1ScbK6MUovnX7z/Fv27qjrqMD6+yKxhYyhk SM7Q== X-Gm-Message-State: ALyK8tLWVCx29TT6DzmR32IikCC5act+KtKx06O773dfq03I2kGSGbYpzrC/DyaxxeIwNCov X-Received: by 10.194.153.98 with SMTP id vf2mr11292067wjb.72.1466370692761; Sun, 19 Jun 2016 14:11:32 -0700 (PDT) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id u64sm10224118wmd.8.2016.06.19.14.11.31 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 19 Jun 2016 14:11:31 -0700 (PDT) From: Thomas Monjalon To: david.marchand@6wind.com Cc: dev@dpdk.org Date: Sun, 19 Jun 2016 23:11:10 +0200 Message-Id: <1466370670-20981-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <2401799.KuipojHmpA@xps13> References: <2401799.KuipojHmpA@xps13> Subject: [dpdk-dev] [PATCH] eal/linux: fix build with glibc < 2.12 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: Sun, 19 Jun 2016 21:11:33 -0000 The function rte_thread_setname needs glibc 2.12, otherwise it returns -1 without using any parameter. The macro RTE_SET_USED avoids an "unused parameter" warning. Fixes: 3901ed99c2f8 ("eal: fix thread naming on FreeBSD") Signed-off-by: Thomas Monjalon --- lib/librte_eal/linuxapp/eal/eal_thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_eal/linuxapp/eal/eal_thread.c b/lib/librte_eal/linuxapp/eal/eal_thread.c index 8c3bf03..9f88530 100644 --- a/lib/librte_eal/linuxapp/eal/eal_thread.c +++ b/lib/librte_eal/linuxapp/eal/eal_thread.c @@ -206,5 +206,7 @@ int rte_thread_setname(pthread_t id, const char *name) ret = pthread_setname_np(id, name); #endif #endif + RTE_SET_USED(id); + RTE_SET_USED(name); return ret; } -- 2.7.0