From patchwork Thu May 30 17:55:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arlin Davis X-Patchwork-Id: 2638491 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id C109140077 for ; Thu, 30 May 2013 17:55:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935582Ab3E3Rzl (ORCPT ); Thu, 30 May 2013 13:55:41 -0400 Received: from mga09.intel.com ([134.134.136.24]:60556 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935570Ab3E3Rzk (ORCPT ); Thu, 30 May 2013 13:55:40 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 30 May 2013 10:53:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,772,1363158000"; d="scan'208";a="345843057" Received: from orsmsx102.amr.corp.intel.com ([10.22.225.129]) by orsmga002.jf.intel.com with ESMTP; 30 May 2013 10:55:30 -0700 Received: from orsmsx110.amr.corp.intel.com (10.22.240.8) by ORSMSX102.amr.corp.intel.com (10.22.225.129) with Microsoft SMTP Server (TLS) id 14.3.123.3; Thu, 30 May 2013 10:55:30 -0700 Received: from orsmsx101.amr.corp.intel.com ([169.254.8.64]) by ORSMSX110.amr.corp.intel.com ([169.254.3.227]) with mapi id 14.03.0123.003; Thu, 30 May 2013 10:55:30 -0700 From: "Davis, Arlin R" To: "linux-rdma@vger.kernel.org" , "ofw@lists.openfabrics.org" Subject: [PATCH 1/3] uDAPL: dapltest: ppc64 endian issue with exchanged mem handle and address Thread-Topic: [PATCH 1/3] uDAPL: dapltest: ppc64 endian issue with exchanged mem handle and address Thread-Index: Ac5cyqM/WdHGPbVbTf2edS8+w0aBEw== Date: Thu, 30 May 2013 17:55:29 +0000 Message-ID: <54347E5A035A054EAE9D05927FB467F972D531F6@ORSMSX101.amr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.22.254.140] MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Pradeep Satyanarayana Acked-by: Arlin Davis --- test/dapltest/common/dapl_endian.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) -- 1.7.3 diff --git a/test/dapltest/common/dapl_endian.c b/test/dapltest/common/dapl_endian.c index d93fbb9..c77f2f2 100644 --- a/test/dapltest/common/dapl_endian.c +++ b/test/dapltest/common/dapl_endian.c @@ -77,8 +77,6 @@ DAT_UINT64 DT_Endian64(DAT_UINT64 val) DAT_UINT32 DT_EndianMemHandle(DAT_UINT32 val) { - if (DT_local_is_little_endian) - return val; val = ((val & c1a32) << 8) | ((val & c1b32) >> 8); val = ((val & c2a32) << 16) | ((val & c2b32) >> 16); return (val); @@ -88,8 +86,6 @@ DAT_UINT64 DT_EndianMemAddress(DAT_UINT64 val) { DAT_UINT64 val64; - if (DT_local_is_little_endian) - return val; val64 = val; val64 = ((val64 & c1a64) << 8) | ((val64 & c1b64) >> 8); val64 = ((val64 & c2a64) << 16) | ((val64 & c2b64) >> 16);