From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <keith.wiles@intel.com>
Received: from mga09.intel.com (mga09.intel.com [134.134.136.24])
 by dpdk.org (Postfix) with ESMTP id 1E127B47E
 for <dev@dpdk.org>; Wed, 18 Feb 2015 18:29:35 +0100 (CET)
Received: from orsmga003.jf.intel.com ([10.7.209.27])
 by orsmga102.jf.intel.com with ESMTP; 18 Feb 2015 09:25:04 -0800
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.09,603,1418112000"; d="scan'208";a="529368792"
Received: from orsmsx101.amr.corp.intel.com ([10.22.225.128])
 by orsmga003.jf.intel.com with ESMTP; 18 Feb 2015 09:20:25 -0800
Received: from orsmsx114.amr.corp.intel.com (10.22.240.10) by
 ORSMSX101.amr.corp.intel.com (10.22.225.128) with Microsoft SMTP Server (TLS)
 id 14.3.195.1; Wed, 18 Feb 2015 09:29:03 -0800
Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by
 ORSMSX114.amr.corp.intel.com (10.22.240.10) with Microsoft SMTP Server (TLS)
 id 14.3.195.1; Wed, 18 Feb 2015 09:29:03 -0800
Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.112]) by
 FMSMSX119.amr.corp.intel.com ([169.254.14.200]) with mapi id 14.03.0195.001;
 Wed, 18 Feb 2015 09:29:02 -0800
From: "Wiles, Keith" <keith.wiles@intel.com>
To: Thomas Monjalon <thomas.monjalon@6wind.com>
Thread-Topic: [dpdk-dev] fm10k_rxtx.c does not compile
Thread-Index: AQHQS5yQvwGACHfZe0qdwBzhlVF8W5z3LLOA//+eX4A=
Date: Wed, 18 Feb 2015 17:29:02 +0000
Message-ID: <D10A27E5.13C8E%keith.wiles@intel.com>
References: <D10A2192.13C81%keith.wiles@intel.com> <4252267.lcD9EdtIU9@xps13>
In-Reply-To: <4252267.lcD9EdtIU9@xps13>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.255.34.223]
Content-Type: text/plain; charset="Windows-1252"
Content-ID: <E0F9FDD377BD0F458CDDA08951161DBA@intel.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "dev@dpdk.org" <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 <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Feb 2015 17:29:36 -0000

I believe Jeff @ Intel is going to submit a patch soon.


On 2/18/15, 11:18 AM, "Thomas Monjalon" <thomas.monjalon@6wind.com> wrote:

>Hi Keith,
>
>2015-02-18 17:01, Wiles, Keith:
>> I just pulled the code and found a unused function error =8Cdump_rxd()=
=B9
>>=20
>> I had to add the ifdef around the function and remove the ifdef inside
>>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?