From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 3BEE7DE0 for ; Tue, 26 Nov 2013 12:07:53 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 26 Nov 2013 03:08:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,773,1378882800"; d="scan'208";a="415037375" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by orsmga001.jf.intel.com with ESMTP; 26 Nov 2013 03:08:27 -0800 Received: from irsmsx153.ger.corp.intel.com (163.33.192.75) by IRSMSX104.ger.corp.intel.com (163.33.3.159) with Microsoft SMTP Server (TLS) id 14.3.123.3; Tue, 26 Nov 2013 11:07:53 +0000 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.66]) by IRSMSX153.ger.corp.intel.com ([169.254.9.129]) with mapi id 14.03.0123.003; Tue, 26 Nov 2013 11:07:53 +0000 From: "Richardson, Bruce" To: "dev@dpdk.org" Thread-Topic: [PATCH] compilation fixes for ICC Thread-Index: Ac7ql58iKy8wT5E8TESljZRNiCMHaA== Date: Tue, 26 Nov 2013 11:07:52 +0000 Message-ID: <59AF69C657FD0841A61C55336867B5B01A977905@IRSMSX103.ger.corp.intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] compilation fixes for ICC 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: Tue, 26 Nov 2013 11:07:53 -0000 Compilation fixes for ICC ICC requires an initializer be given for the static variables, so adding one in cases where one wasn't previously given. --- lib/librte_pmd_e1000/igb_rxtx.c | 6 ++++-- lib/librte_pmd_ixgbe/ixgbe_rxtx.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/librte_pmd_e1000/igb_rxtx.c b/lib/librte_pmd_e1000/igb_rxt= x.c index 90c3227..68716b0 100644 --- a/lib/librte_pmd_e1000/igb_rxtx.c +++ b/lib/librte_pmd_e1000/igb_rxtx.c @@ -1134,7 +1134,8 @@ igb_reset_tx_queue_stat(struct igb_tx_queue *txq) static void igb_reset_tx_queue(struct igb_tx_queue *txq, struct rte_eth_dev *dev) { - static const union e1000_adv_tx_desc zeroed_desc; + static const union e1000_adv_tx_desc zeroed_desc =3D { .read =3D { + .buffer_addr =3D 0}}; struct igb_tx_entry *txe =3D txq->sw_ring; uint16_t i, prev; struct e1000_hw *hw; @@ -1296,7 +1297,8 @@ eth_igb_rx_queue_release(void *rxq) static void igb_reset_rx_queue(struct igb_rx_queue *rxq) { - static const union e1000_adv_rx_desc zeroed_desc; + static const union e1000_adv_rx_desc zeroed_desc =3D { .read =3D { + .pkt_addr =3D 0}}; unsigned i; /* Zero out HW ring memory */ diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c b/lib/librte_pmd_ixgbe/ixgbe= _rxtx.c index ae9eda8..6eda8bc 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c @@ -1799,7 +1799,8 @@ ixgbe_dev_tx_queue_release(void *txq) static void ixgbe_reset_tx_queue(struct igb_tx_queue *txq) { - static const union ixgbe_adv_tx_desc zeroed_desc; + static const union ixgbe_adv_tx_desc zeroed_desc =3D { .read =3D { + .buffer_addr =3D 0}}; struct igb_tx_entry *txe =3D txq->sw_ring; uint16_t prev, i; @@ -2094,7 +2095,8 @@ check_rx_burst_bulk_alloc_preconditions(__rte_unused = struct igb_rx_queue *rxq) static void ixgbe_reset_rx_queue(struct igb_rx_queue *rxq) { - static const union ixgbe_adv_rx_desc zeroed_desc; + static const union ixgbe_adv_rx_desc zeroed_desc =3D { .read =3D { + .pkt_addr =3D 0}}; unsigned i; uint16_t len; -- 1.7.7.6