From patchwork Fri May 20 14:35:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 803792 X-Patchwork-Delegate: alexne@voltaire.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4KEaEtT031708 for ; Fri, 20 May 2011 14:36:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934955Ab1ETOgM (ORCPT ); Fri, 20 May 2011 10:36:12 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:53808 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933843Ab1ETOgL (ORCPT ); Fri, 20 May 2011 10:36:11 -0400 Received: by wwa36 with SMTP id 36so4088687wwa.1 for ; Fri, 20 May 2011 07:36:08 -0700 (PDT) Received: by 10.227.205.14 with SMTP id fo14mr4319107wbb.79.1305902157145; Fri, 20 May 2011 07:35:57 -0700 (PDT) Received: from [192.168.1.103] (c-71-192-10-85.hsd1.ma.comcast.net [71.192.10.85]) by mx.google.com with ESMTPS id bi13sm2328640wbb.59.2011.05.20.07.35.54 (version=SSLv3 cipher=OTHER); Fri, 20 May 2011 07:35:55 -0700 (PDT) Message-ID: <4DD67C42.30105@dev.mellanox.co.il> Date: Fri, 20 May 2011 10:35:46 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Alex Netes CC: "linux-rdma@vger.kernel.org" Subject: [PATCH] opensm/osm_pkey_mgr.c: Fix cast Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 20 May 2011 14:36:14 +0000 (UTC) introduced by commit 2c5148408d562d86e1dd5d90939a58533ddebbe6 to eliminate compiler warning: osm_pkey_mgr.c: In function 'osm_pkey_mgr_process': osm_pkey_mgr.c:561: warning: assignment from incompatible pointer type Signed-off-by: Hal Rosenstock --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/opensm/osm_pkey_mgr.c b/opensm/osm_pkey_mgr.c index 31e14aa..5d4a2fe 100644 --- a/opensm/osm_pkey_mgr.c +++ b/opensm/osm_pkey_mgr.c @@ -558,7 +558,7 @@ int osm_pkey_mgr_process(IN osm_opensm_t * p_osm) p_tbl = &p_osm->subn.sw_guid_tbl; p_next = cl_qmap_head(p_tbl); while (p_next != cl_qmap_end(p_tbl)) { - p_sw = (osm_switch_t * *) p_next; + p_sw = (osm_switch_t *) p_next; p_next = cl_qmap_next(p_next); for (i = 1; i < p_sw->num_ports; i++) { p_physp = osm_node_get_physp_ptr(p_sw->p_node, i);