From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id DB6D85957 for ; Mon, 27 Jun 2016 18:30:03 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP; 27 Jun 2016 09:30:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,537,1459839600"; d="scan'208";a="129326887" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga004.fm.intel.com with ESMTP; 27 Jun 2016 09:30:01 -0700 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 27 Jun 2016 09:30:00 -0700 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.58]) by fmsmsx118.amr.corp.intel.com ([169.254.1.112]) with mapi id 14.03.0248.002; Mon, 27 Jun 2016 09:30:00 -0700 From: "Wiles, Keith" To: "Richardson, Bruce" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2 2/2] fix building with clang-3.8.0 compiler Thread-Index: AQHRz8MXEkbKBjwtP0+gzvUOHxHaMp/9drWA///ynwCAADr2AA== Date: Mon, 27 Jun 2016 16:29:59 +0000 Message-ID: <850EC958-78ED-47B1-9D5C-3D06CE5D0B04@intel.com> References: <1757902E-701B-4C42-BF80-285F37F50526@intel.com> <1466956452-91772-2-git-send-email-keith.wiles@intel.com> <20160627084649.GB19588@bricha3-MOBL3> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.89.98] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2 2/2] fix building with clang-3.8.0 compiler 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: Mon, 27 Jun 2016 16:30:04 -0000 T24gNi8yNy8xNiwgNzo1OCBBTSwgImRldiBvbiBiZWhhbGYgb2YgV2lsZXMsIEtlaXRoIiA8ZGV2 LWJvdW5jZXNAZHBkay5vcmcgb24gYmVoYWxmIG9mIGtlaXRoLndpbGVzQGludGVsLmNvbT4gd3Jv dGU6DQoNCj4NCj5PbiA2LzI3LzE2LCAzOjQ2IEFNLCAiUmljaGFyZHNvbiwgQnJ1Y2UiIDxicnVj ZS5yaWNoYXJkc29uQGludGVsLmNvbT4gd3JvdGU6DQo+DQo+Pk9uIFN1biwgSnVuIDI2LCAyMDE2 IGF0IDEwOjU0OjEyQU0gLTA1MDAsIEtlaXRoIFdpbGVzIHdyb3RlOg0KPj4+IExhdGVzdCBjbGFu ZyBjb21waWxlciAzLjguMCBvbiBsYXRlc3QgdXBkYXRlIG9mIFVidW50dQ0KPj4+IGNyZWF0ZXMg YSBmZXcgbW9yZSB3YXJuaW5ncyBvbiAtV2FycmF5LWJvdW5kcyBhbmQgZXh0cmENCj4+PiAoKSBh cm91bmQgJ2lmJyBleHByZXNzaW9ucy4NCj4+PiANCj4+PiBTaWduZWQtb2ZmLWJ5OiBLZWl0aCBX aWxlcyA8a2VpdGgud2lsZXNAaW50ZWwuY29tPg0KPj4+IC0tLQ0KPj4+ICBhcHAvdGVzdC1wbWQv TWFrZWZpbGUgICAgICAgICAgICAgICAgfCAzICsrKw0KPj4+ICBhcHAvdGVzdC9NYWtlZmlsZSAg ICAgICAgICAgICAgICAgICAgfCAzICsrKw0KPj4+ICBkcml2ZXJzL25ldC9ib25kaW5nL01ha2Vm aWxlICAgICAgICAgfCA0ICsrKysNCj4+PiAgZHJpdmVycy9uZXQvZm0xMGsvTWFrZWZpbGUgICAg ICAgICAgIHwgMiArKw0KPj4+ICBkcml2ZXJzL25ldC9pNDBlL01ha2V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gPiAwICYmIF9fcmVzdWx0ID09IDApIHsgX19yZXN1bHQgPSAoKChjb25zdCB1bnNp Z25lZCBjaGFyICopIChjb25zdCBjaGFyICopIChyZXMtPnByb3RvKSlbMV0gLSBfX3MyWzFdKTsg aWYgKF9fczFfbGVuID4gMSAmJiBfX3Jlc3VsdCA9PSAwKSB7IF9fcmVzdWx0ID0gKCgoY29uc3Qg dW5zaWduZWQgY2hhciAqKSAoY29uc3QgY2hhciAqKSAocmVzLT5wcm90bykpWzJdIC0gX19zMlsy XSk7IGlmIChfX3MxX2xlbiA+IDIgJiYgX19yZXN1bHQgPT0gMCkgX19yZXN1bHQgPSAoKChjb25z dCB1bnNpZ25lZCBjaGFyICopIChjb25zdCBjaGFyICopIChyZXMtPnByb3RvKSlbM10gLSBfX3My WzNdKTsgfSB9IF9fcmVzdWx0OyB9KSkpIDogKF9fYnVpbHRpbl9jb25zdGFudF9wICgiaXAiKSAm JiAoKHNpemVfdCkoY29uc3Qgdm9pZCAqKSgoImlwIikgKyAxKSAtIChzaXplX3QpKGNvbnN0IHZv aWQgKikoImlwIikgPT0gMSkgJiYgKF9fczJfbGVuID0gX19idWlsdGluX3N0cmxlbiAoImlwIiks IF9fczJfbGVuIDwgNCkgPyAoX19idWlsdGluX2NvbnN0YW50X3AgKHJlcy0+cHJvdG8pICYmICgo c2l6ZV90KShjb25zdCB2b2lkICopKChyZXMtPnByb3RvKSArIDEpIC0gKHNpemVfdCkoY29uc3Qg dm9pZCAqKShyZXMtPnByb3RvKSA9PSAxKSA/IF9fYnVpbHRpbl9zdHJjbXAgKHJlcy0+cHJvdG8s ICJpcCIpIDogKC0gKF9fZXh0ZW5zaW9uX18gKHsgY29uc3QgdW5zaWduZWQgY2hhciAqX19zMiA9 IChjb25zdCB1bnNpZ25lZCBjaGFyICopIChjb25zdCBjaGFyICopIChyZXMtPnByb3RvKTsgaW50 IF9fcmVzdWx0ID0gKCgoY29uc3QgdW5zaWduZWQgY2hhciAqKSAoY29uc3QgY2h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