From patchwork Thu Oct 1 22:41:21 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Smith, Stan" X-Patchwork-Id: 51041 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 n91MgIDg015197 for ; Thu, 1 Oct 2009 22:42:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753734AbZJAWle (ORCPT ); Thu, 1 Oct 2009 18:41:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753858AbZJAWld (ORCPT ); Thu, 1 Oct 2009 18:41:33 -0400 Received: from mga02.intel.com ([134.134.136.20]:61214 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753871AbZJAWla (ORCPT ); Thu, 1 Oct 2009 18:41:30 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 01 Oct 2009 15:26:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,489,1249282800"; d="scan'208";a="453827326" Received: from scsmith-mobl1.amr.corp.intel.com (HELO scsmithMOBL1) ([10.7.151.78]) by orsmga002.jf.intel.com with ESMTP; 01 Oct 2009 15:47:14 -0700 From: "Stan C. Smith" To: "'Sasha Khapyorsky'" Cc: , "'linux-rdma'" Subject: [PATCH] typeof() not supported in Windows WDK compiler Date: Thu, 1 Oct 2009 15:41:21 -0700 Message-ID: MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcpC6ExCnHIp6treSdGtgCwjO76kEA== 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/opensm/opensm/osm_drop_mgr.c b/opensm/opensm/osm_drop_mgr.c index 4f98cc9..8fe5129 100644 --- a/opensm/opensm/osm_drop_mgr.c +++ b/opensm/opensm/osm_drop_mgr.c @@ -209,8 +209,13 @@ static void drop_mgr_remove_port(osm_sm_t * sm, IN osm_port_t * p_port) drop_mgr_clean_physp(sm, p_port->p_physp); while (!cl_is_qlist_empty(&p_port->mcm_list)) { +#ifndef __WIN__ mcm_port = cl_item_obj(cl_qlist_head(&p_port->mcm_list), mcm_port, list_item); +#else + mcm_port = cl_item_obj(cl_qlist_head(&p_port->mcm_list), + mcm_port, list_item, (osm_mcm_port_t*) ); +#endif osm_mgrp_delete_port(sm->p_subn, sm->p_log, mcm_port->mgrp, p_port->guid); } diff --git a/opensm/opensm/osm_state_mgr.c b/opensm/opensm/osm_state_mgr.c index 185c700..a260b8a 100644 --- a/opensm/opensm/osm_state_mgr.c +++ b/opensm/opensm/osm_state_mgr.c @@ -503,7 +503,11 @@ Exit: static void query_sm_info(cl_map_item_t * item, void *cxt) { osm_madw_context_t context; +#ifndef __WIN__ osm_remote_sm_t *r_sm = cl_item_obj(item, r_sm, map_item); +#else + osm_remote_sm_t *r_sm = cl_item_obj(item, r_sm, map_item,(osm_remote_sm_t *)); +#endif osm_sm_t *sm = cxt; ib_api_status_t ret; diff --git a/opensm/opensm/osm_ucast_mgr.c b/opensm/opensm/osm_ucast_mgr.c index 39d825c..a1f5c72 100644 --- a/opensm/opensm/osm_ucast_mgr.c +++ b/opensm/opensm/osm_ucast_mgr.c @@ -388,7 +388,11 @@ static void ucast_mgr_process_tbl(IN cl_map_item_t * p_map_item, cl_list_item_t *item; for (item = cl_qlist_head(list); item != cl_qlist_end(list); item = cl_qlist_next(item)) { +#ifndef __WIN__ osm_port_t *port = cl_item_obj(item, port, list_item); +#else + osm_port_t *port = cl_item_obj(item, port, list_item,(osm_port_t*)); +#endif ucast_mgr_process_port(p_mgr, p_sw, port, i); } }