[openib-general] [PATCH] GSI: Move some temporary definitions

Hal Rosenstock halr at voltaire.com
Fri Aug 13 13:34:09 PDT 2004


Move some temporary definitions

Index: access/gsi_main.c
===================================================================
--- access/gsi_main.c	(revision 636)
+++ access/gsi_main.c	(working copy)
@@ -71,6 +71,7 @@
 #include "gsi_redir.h"
 #endif
 #include "ib_core.h"
+#include "ib_core_types.h"
 #include "vversion.h"
 #include "vv_list.h"
 #include  "rmpp/rmpp_api.h"
Index: include/ib_core.h
===================================================================
--- include/ib_core.h	(revision 634)
+++ include/ib_core.h	(working copy)
@@ -27,6 +27,17 @@
 struct ib_device *ib_device_get_by_name(const char *name);
 struct ib_device *ib_device_get_by_index(int index);
 
+enum {
+	IB_DEVICE_NOTIFIER_ADD,
+	IB_DEVICE_NOTIFIER_REMOVE
+};
+
+struct ib_device_notifier {
+	void (*notifier) (struct ib_device_notifier * self,
+			  struct ib_device * device, int event);
+	struct list_head list;
+};
+
 int ib_device_notifier_register(struct ib_device_notifier *notifier);
 int ib_device_notifier_deregister(struct ib_device_notifier *notifier);
 
Index: include/ib_core_types.h
===================================================================
--- include/ib_core_types.h	(revision 634)
+++ include/ib_core_types.h	(working copy)
@@ -22,17 +22,6 @@
 #ifndef _IB_CORE_TYPES_H
 #define _IB_CORE_TYPES_H
 
-enum {
-	IB_DEVICE_NOTIFIER_ADD,
-	IB_DEVICE_NOTIFIER_REMOVE
-};
-
-struct ib_device_notifier {
-	void (*notifier) (struct ib_device_notifier * self,
-			  struct ib_device * device, int event);
-	struct list_head list;
-};
-
 struct ib_grh {
 	u8 ip_version;
 	u8 traffic_class;





More information about the general mailing list