From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] librte_sched: fix compile error on unused parameter red Date: Tue, 14 Jun 2016 17:20:18 +0200 Message-ID: <4622404.xEesXogHM8@xps13> References: <1464863290-216968-1-git-send-email-jasvinder.singh@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org, cristian.dumitrescu@intel.com To: Jasvinder Singh Return-path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id C7B348E88 for ; Tue, 14 Jun 2016 17:20:19 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id n184so126705063wmn.1 for ; Tue, 14 Jun 2016 08:20:19 -0700 (PDT) In-Reply-To: <1464863290-216968-1-git-send-email-jasvinder.singh@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-06-02 11:28, Jasvinder Singh: > This commit fixes the following compile error messages when > CONFIG_RTE_SCHED_RED=3Dn and CONFIG_RTE_SCHED_COLLECT_STATS=3Dy; >=20 > rte_sched.c: In function =E2=80=98rte_sched_port_update_subport_stats= _on_drop=E2=80=99: > rte_sched.c:1090:41: error: unused parameter =E2=80=98red=E2=80=99 [-= Werror=3Dunused-parameter] > =09=09struct rte_mbuf *pkt, uint32_t red) > ^ > rte_sched.c: In function =E2=80=98rte_sched_port_update_queue_stats_o= n_drop=E2=80=99: > rte_sched.c:1116:39: error: unused parameter =E2=80=98red=E2=80=99 [-= Werror=3Dunused-parameter] > =09=09struct rte_mbuf *pkt, uint32_t red) >=20 > Fixes: 4d51afb5cdb6 ("sched: keep track of RED drops") >=20 > Signed-off-by: Jasvinder Singh > Acked-by: Cristian Dumitrescu Applied, thanks