From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: fm10k_rxtx.c does not compile Date: Wed, 18 Feb 2015 18:18:27 +0100 Message-ID: <4252267.lcD9EdtIU9@xps13> References: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: dev-VfR2kkLFssw@public.gmane.org To: "Wiles, Keith" Return-path: In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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?