[IBBUS] bus_port_mgr.c: resolve mysterious/unannounced port_guid_pkey --> port_guid_p...
authorstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 26 Aug 2008 00:20:11 +0000 (00:20 +0000)
committerstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 26 Aug 2008 00:20:11 +0000 (00:20 +0000)
bus_driver.c: missing function bus_rem_pkey() - hacked in missing stub routine in order to build.

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1506 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/bus/kernel/bus_driver.c
core/bus/kernel/bus_port_mgr.c

index 3ece07a..cdd2c43 100644 (file)
@@ -613,6 +613,24 @@ bus_add_pkey(cl_ioctl_handle_t                     h_ioctl)
        return status;\r
 }\r
 \r
+\r
+cl_status_t\r
+bus_rem_pkey(cl_ioctl_handle_t                 h_ioctl)\r
+{\r
+       PIO_STACK_LOCATION                      pIoStack;\r
+\r
+       pIoStack = IoGetCurrentIrpStackLocation(h_ioctl);\r
+       if ( (! h_ioctl->AssociatedIrp.SystemBuffer) || \r
+                pIoStack->Parameters.DeviceIoControl.InputBufferLength < sizeof (pkey_array_t))\r
+    {\r
+               BUS_TRACE_EXIT( BUS_DBG_ERROR, \r
+                       ("Invalid parameters.\n") );\r
+               return CL_INVALID_PARAMETER;\r
+       }\r
+       return CL_INVALID_PARAMETER;\r
+}\r
+\r
+\r
 static NTSTATUS\r
 bus_drv_sysctl(\r
        IN                              DEVICE_OBJECT                           *p_dev_obj,\r
index 3626b33..435c167 100644 (file)
@@ -62,7 +62,7 @@ typedef struct _bus_port_ext
 {\r
        bus_pdo_ext_t                   pdo;\r
 \r
-       port_guid_pkey                  port_guid;\r
+       port_guid_pkey_t                port_guid;\r
        uint32_t                                n_port;\r
 \r
        /* Number of references on the upper interface. */\r