From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 04B4D68CE for ; Thu, 25 Sep 2014 04:07:58 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 24 Sep 2014 19:14:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="lo'?scan'208,49,50?gz'208,49,50,50?log'208,49,50,50";a="391265090" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 24 Sep 2014 19:08:13 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 24 Sep 2014 19:14:11 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 24 Sep 2014 19:14:10 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.204]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.190]) with mapi id 14.03.0195.001; Thu, 25 Sep 2014 10:13:34 +0800 From: "Tang, HaifengX" To: "Richardson, Bruce" Thread-Topic: [dpdk-dev] [PATCH] ixgbe: fix compile error with gcc4.4 (used RHEL 6) Thread-Index: AQHP0y8xl1DqiSYUX02tYZo+ScrjRZwRJUtw Date: Thu, 25 Sep 2014 02:13:33 +0000 Message-ID: References: <1411037752-8000-1-git-send-email-bruce.richardson@intel.com> In-Reply-To: <1411037752-8000-1-git-send-email-bruce.richardson@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] ixgbe: fix compile error with gcc4.4 (used RHEL 6) 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: Thu, 25 Sep 2014 02:08:02 -0000 Tested-by: Haifeng Tang This patch just includes one file, and has been tested by Intel. Please see the detail information from the attachment. -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Bruce Richardson Sent: Thursday, September 18, 2014 6:56 PM To: dev@dpdk.org Subject: [dpdk-dev] [PATCH] ixgbe: fix compile error with gcc4.4 (used RHEL= 6) The refcnt field is contained within an anonymous union within the mbuf dat= a structure, and gcc 4.4 gives an error about an unknown field unless the i= nitialiser for the field is contained within extra braces. Signed-off-by: Bruce Richardson --- lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c b/lib/librte_pmd_ixgbe/i= xgbe_rxtx_vec.c index a6f7fdf..203ddf7 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c @@ -723,7 +723,7 @@ ixgbe_rxq_vec_setup(struct igb_rx_queue *rxq) .nb_segs =3D 1, .data_off =3D RTE_PKTMBUF_HEADROOM, #ifdef RTE_MBUF_REFCNT - .refcnt =3D 1, + { .refcnt =3D 1, } #endif }; =20 -- 1.9.3