From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id C8BDF2B8C for ; Fri, 14 Oct 2016 22:22:57 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id c78so2074121wme.0 for ; Fri, 14 Oct 2016 13:22:57 -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:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=slu69i0cOCOlNnSvEbkl36zA82LBet3GKlWzCBMFXVY=; b=d7FXvcs+TLOtY2LGFiCa0hhgRR1ipZ9BEsZFQVAAj4pqw5wQ7AQgHnDNcq6BbMjQaA ues+sxUGGpFLqDd+i43KSvBVyJdUEpLIjxr7shTRKeNLDuNpAmgUo0kUK3yWDsAq3fuM LWB+zhtc6HDjeyDK/NEaFFtt0OZuwUMFZgL+egvuljMQr5p+NpcoDHrnk1aJ0RJGYco1 /N4rhsy7ANIcPMmNvipiLm1kX2U1VwVYHAF6W812//XdWLD5jcPloCxgJ7oCWN9HvPHB Ci36cOaQ5GIBhjDW4DI26UGYwijGQuJycgQ3KFmUduGUbnyQk0v7EkZ3PD2xWnMlEWXo lGig== 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:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=slu69i0cOCOlNnSvEbkl36zA82LBet3GKlWzCBMFXVY=; b=GQQ4p4IXTpd3dAAct+Hj6pIicBa/86ibflbJSTMKtwXErlm0ChAJne/pOelL8UrGWt DH/nwPgxC+HJsl1Q2G7VRetR8fPNJuhYeE9NGN56qSLWYI8hoKT8pl1V2TEoDw2qCQSj 0fizdOE+4B4t0v7bQ+Tnh7Ay9a5N4nyr8da+gaoCH1/G8/bv/6Hnli8lADF4ba/HQQ6q uUeb77hUfO/6z9H43QAAPBhwPbnjaQSeOAhgmhmuezFaj42J7l9QFe/FYeM1xMAN9Kmo 1b1VB6zadqAu6Mko85A4dQEndOKqHUew4Eo7XNcSh+Tk1+YjpR+sWhBmpK3rSQZk+FjE CPXQ== X-Gm-Message-State: AA6/9RmXK/JnJYvKUxj/qNed2AI0U/uaV0qndR58pAP7tTkM01t9n0YpIxUL2xikFDoD13Hp X-Received: by 10.194.203.6 with SMTP id km6mr3304185wjc.226.1476476577576; Fri, 14 Oct 2016 13:22:57 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id z192sm158562wmz.12.2016.10.14.13.22.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Oct 2016 13:22:56 -0700 (PDT) From: Thomas Monjalon To: Ferruh Yigit Cc: dev@dpdk.org Date: Fri, 14 Oct 2016 22:22:56 +0200 Message-ID: <1755693.fe9D4NNMX6@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <20161014164154.26015-1-ferruh.yigit@intel.com> References: <7457537.60EcOXE9kS@xps13> <20161014164154.26015-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Subject: Re: [dpdk-dev] [PATCH v2] kni: fix unused variable compile error 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: Fri, 14 Oct 2016 20:22:58 -0000 2016-10-14 17:41, Ferruh Yigit: > compile error: > CC [M] .../lib/librte_eal/linuxapp/kni/kni_misc.o > cc1: warnings being treated as errors > .../lib/librte_eal/linuxapp/kni/kni_misc.c: In function =E2=80=98kni_= exit_net=E2=80=99: > .../lib/librte_eal/linuxapp/kni/kni_misc.c:113:18: > error: unused variable =E2=80=98knet=E2=80=99 >=20 > For kernel versions < v3.1 mutex_destroy() is a macro and does nothin= g, > this cause an unused variable warning for knet which used in the > mutex_destroy() >=20 > mutex_destroy() converted into static inline function with commit: > Linux: 4582c0a4866e ("mutex: Make mutex_destroy() an inline function"= ) >=20 > To fix the warning unused attribute added to the knet variable. >=20 > Fixes: 93a298b34e1b ("kni: support core id parameter in single thread= ed mode") >=20 > Signed-off-by: Ferruh Yigit Applied, thanks