[ofw] [PATCH] Cleanup XXX_PTR64 macros from IBBus

Fab Tillier ftillier at windows.microsoft.com
Thu Jun 26 23:54:48 PDT 2008


This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from IBBus.

Signed-off-by: Fab Tillier <ftillier at microsoft.com>

Index: core/bus/kernel/bus_iou_mgr.h
===================================================================
--- core/bus/kernel/bus_iou_mgr.h       (revision 1300)
+++ core/bus/kernel/bus_iou_mgr.h       (working copy)
@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2005 SilverStorm Technologies.  All rights reserved.
+ * Portions Copyright (c) 2008 Microsoft Corporation.  All rights reserved.
  *
  * This software is available to you under the OpenIB.org BSD license
  * below:
@@ -42,7 +43,7 @@
 typedef struct _iou_mgr
 {
        cl_obj_t                                        obj;
-TO_LONG_PTR(   ib_pnp_handle_t ,                               h_pnp) ;        /* Handle for iou PnP events */
+       ib_pnp_handle_t                         h_pnp;  /* Handle for iou PnP events */

        /* Mutex protects both pointer vectors. */
        cl_mutex_t                                      pdo_mutex;
Index: core/bus/kernel/bus_port_mgr.h
===================================================================
--- core/bus/kernel/bus_port_mgr.h      (revision 1300)
+++ core/bus/kernel/bus_port_mgr.h      (working copy)
@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2005 SilverStorm Technologies.  All rights reserved.
+ * Portions Copyright (c) 2008 Microsoft Corporation.  All rights reserved.
  *
  * This software is available to you under the OpenIB.org BSD license
  * below:
@@ -42,7 +43,7 @@
 typedef struct _port_mgr
 {
        cl_obj_t                                        obj;
-TO_LONG_PTR(   ib_pnp_handle_t ,                               h_pnp) ;        /* Handle for port PnP events */
+       ib_pnp_handle_t                         h_pnp;  /* Handle for port PnP events */

        /* Mutex protects both pointer vectors. */
        cl_mutex_t                                      pdo_mutex;
Index: core/bus/kernel/bus_driver.h
===================================================================
--- core/bus/kernel/bus_driver.h        (revision 1300)
+++ core/bus/kernel/bus_driver.h        (working copy)
@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2005 SilverStorm Technologies.  All rights reserved.
+ * Portions Copyright (c) 2008 Microsoft Corporation.  All rights reserved.
  *
  * This software is available to you under the OpenIB.org BSD license
  * below:
@@ -133,7 +134,7 @@
        cl_list_item_t                  list_item;

        /* All reported PDOs are children of an HCA. */
-TO_LONG_PTR(   ib_ca_handle_t ,                        h_ca) ;
+       ib_ca_handle_t                  h_ca;

        /*
         * CA GUID copy - in case we get IRPs after the CA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ibbus.patch
Type: application/octet-stream
Size: 2222 bytes
Desc: ibbus.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080626/014bc3ca/attachment.obj>


More information about the ofw mailing list