From patchwork Wed Sep 30 23:21:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hefty, Sean" X-Patchwork-Id: 50791 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8UNLqQd015319 for ; Wed, 30 Sep 2009 23:21:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754632AbZI3XVq (ORCPT ); Wed, 30 Sep 2009 19:21:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754657AbZI3XVq (ORCPT ); Wed, 30 Sep 2009 19:21:46 -0400 Received: from mga11.intel.com ([192.55.52.93]:20759 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754632AbZI3XVq (ORCPT ); Wed, 30 Sep 2009 19:21:46 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 30 Sep 2009 16:09:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,482,1249282800"; d="scan'208";a="498639441" Received: from mshefty-mobl2.amr.corp.intel.com (HELO msheftyMOBL2) ([10.24.91.232]) by fmsmga002.fm.intel.com with ESMTP; 30 Sep 2009 16:13:35 -0700 From: "Sean Hefty" To: "linux-rdma" , "'Sasha Khapyorsky'" , "Hefty, Sean" Subject: [PATCH 1/2] libibmad/rpc: fix build warning casting from uint32 to uint8 Date: Wed, 30 Sep 2009 16:21:38 -0700 Message-ID: MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcpCJMI/5rIcFU5VQ6e2wviJ6uNsfg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/libibmad/src/rpc.c b/libibmad/src/rpc.c index 026575d..1ea9a52 100644 --- a/libibmad/src/rpc.c +++ b/libibmad/src/rpc.c @@ -195,7 +195,7 @@ static int redirect_port(ib_portid_t * port, uint8_t * mad) port->qp = mad_get_field(mad, 64, IB_CPI_REDIRECT_QP_F); port->qkey = mad_get_field(mad, 64, IB_CPI_REDIRECT_QKEY_F); - port->sl = mad_get_field(mad, 64, IB_CPI_REDIRECT_SL_F); + port->sl = (uint8_t) mad_get_field(mad, 64, IB_CPI_REDIRECT_SL_F); /* TODO: Reverse map redirection P_Key to P_Key index */