From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id D5D35B430 for ; Wed, 18 Feb 2015 18:19:01 +0100 (CET) Received: by mail-wg0-f51.google.com with SMTP id y19so2430880wgg.10 for ; Wed, 18 Feb 2015 09:19:01 -0800 (PST) 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=kvDpN41bQmiHpax54mK6QIjt7dWbp5fy0hT+6zjFNTk=; b=aLMdS8Nkfkt4peCvCveNUwBNH09iVtov4MQaAFqTKi2lzUQw6fHpf7Y2ESt/+WwW/x ip+EJbGqkMIxzI9gZ8Rveizzdt26zLDZ7ykTe5hMI4yDUFb7IrIYfIMYfADOTXfddL6G hZtsCyA5V2oJCQV5/9F3VWmlfxj8u3v/6geVE/amGQTZMmRJGwYknvDkDV698fm3840U ZiuPYFjQCwMvGtD4fBfwi2ji3q5No27ANbGI46v3RzMf78qH8xUxlXWfwkbaxRQq3T8r TvcenZhjPuG8Sdmzx/yEhoDXOH0yfFSEe99D0XmXST8HhqUseHYlgZntWc5NZoReVMzw AcAQ== X-Gm-Message-State: ALoCoQmWTuyArxlzOVF6E58mkk1CIYv4ZBKCX3X1t/rE3Cgegb0hQTeY7+tJLj/+/+m0bN17gvq6 X-Received: by 10.180.95.165 with SMTP id dl5mr6582857wib.0.1424279940215; Wed, 18 Feb 2015 09:19:00 -0800 (PST) Received: from xps13.localnet (178.16.90.92.rev.sfr.net. [92.90.16.178]) by mx.google.com with ESMTPSA id hm6sm33531007wjb.32.2015.02.18.09.18.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Feb 2015 09:18:59 -0800 (PST) From: Thomas Monjalon To: "Wiles, Keith" Date: Wed, 18 Feb 2015 18:18:27 +0100 Message-ID: <4252267.lcD9EdtIU9@xps13> Organization: 6WIND User-Agent: KMail/4.14.4 (Linux/3.18.4-1-ARCH; KDE/4.14.4; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] fm10k_rxtx.c does not compile 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: Wed, 18 Feb 2015 17:19:02 -0000 Hi Keith, 2015-02-18 17:01, Wiles, Keith: > I just pulled the code and found a unused function error =E2=80=98dum= p_rxd()=E2=80=99 >=20 > I had to add the ifdef around the function and remove the ifdef insid= e the function: >=20 > #ifdef RTE_LIBRTE_FM10K_DEBUG_RX > static inline void dump_rxd(union fm10k_rx_desc *rxd) > { > RTE_SET_USED(rxd); > PMD_RX_LOG(DEBUG, "+----------------|----------------+"); > PMD_RX_LOG(DEBUG, "| GLORT | PKT HDR & TYPE |"); > PMD_RX_LOG(DEBUG, "| 0x%08x | 0x%08x |", rxd->d.glort, > rxd->d.data); > PMD_RX_LOG(DEBUG, "+----------------|----------------+"); > PMD_RX_LOG(DEBUG, "| VLAN & LEN | STATUS |"); > PMD_RX_LOG(DEBUG, "| 0x%08x | 0x%08x |", rxd->d.vlan_len, > rxd->d.staterr); > PMD_RX_LOG(DEBUG, "+----------------|----------------+"); > PMD_RX_LOG(DEBUG, "| RESERVED | RSS_HASH |"); > PMD_RX_LOG(DEBUG, "| 0x%08x | 0x%08x |", 0, rxd->d.rss); > PMD_RX_LOG(DEBUG, "+----------------|----------------+"); > PMD_RX_LOG(DEBUG, "| TIME TAG |"); > PMD_RX_LOG(DEBUG, "| 0x%016lx |", rxd->q.timestamp); > PMD_RX_LOG(DEBUG, "+----------------|----------------+"); > } > #endif >=20 > Also clang on Ubuntu 14.04 does not like the option: > CC fm10k_pf.o > error: unknown warning option '-Wno-unused-but-set-variable'; did you= mean '-Wno-unused-const-variable'? [-Werror,-Wunknown-warning-option] Thanks for reporting. I have no error with GCC 4.9.2. Please could you try to send a patch?