[PATCH][3/11] IB: sparse fixes

2005-03-02 Thread Roland Dreier
From: Tom Duffy <[EMAIL PROTECTED]>

Fix some sparse warnings by making sure we have appropriate "extern"
declarations visible.

Signed-off-by: Tom Duffy <[EMAIL PROTECTED]>
Signed-off-by: Hal Rosenstock (<[EMAIL PROTECTED]>
Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>


--- linux-export.orig/drivers/infiniband/core/agent.c   2005-03-02 
20:26:10.599187430 -0800
+++ linux-export/drivers/infiniband/core/agent.c2005-03-02 
20:26:11.456001445 -0800
@@ -45,14 +45,11 @@
 #include "smi.h"
 #include "agent_priv.h"
 #include "mad_priv.h"
-
+#include "agent.h"
 
 spinlock_t ib_agent_port_list_lock;
 static LIST_HEAD(ib_agent_port_list);
 
-extern kmem_cache_t *ib_mad_cache;
-
-
 /*
  * Caller must hold ib_agent_port_list_lock
  */
--- linux-export.orig/drivers/infiniband/core/cache.c   2005-03-02 
20:26:03.085818330 -0800
+++ linux-export/drivers/infiniband/core/cache.c2005-03-02 
20:26:11.456001445 -0800
@@ -37,6 +37,8 @@
 #include 
 #include 
 
+#include 
+
 #include "core_priv.h"
 
 struct ib_pkey_cache {
--- linux-export.orig/drivers/infiniband/core/mad_priv.h2005-03-02 
20:26:10.980104746 -0800
+++ linux-export/drivers/infiniband/core/mad_priv.h 2005-03-02 
20:26:11.457001228 -0800
@@ -192,4 +192,6 @@
struct ib_mad_qp_info qp_info[IB_MAD_QPS_CORE];
 };
 
+extern kmem_cache_t *ib_mad_cache;
+
 #endif /* __IB_MAD_PRIV_H__ */
--- linux-export.orig/drivers/infiniband/core/smi.c 2005-03-02 
20:26:03.085818330 -0800
+++ linux-export/drivers/infiniband/core/smi.c  2005-03-02 20:26:11.458001011 
-0800
@@ -37,7 +37,7 @@
  */
 
 #include 
-
+#include "smi.h"
 
 /*
  * Fixup a directed route SMP for sending

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH][3/11] IB: sparse fixes

2005-03-02 Thread Roland Dreier
From: Tom Duffy [EMAIL PROTECTED]

Fix some sparse warnings by making sure we have appropriate extern
declarations visible.

Signed-off-by: Tom Duffy [EMAIL PROTECTED]
Signed-off-by: Hal Rosenstock ([EMAIL PROTECTED]
Signed-off-by: Roland Dreier [EMAIL PROTECTED]


--- linux-export.orig/drivers/infiniband/core/agent.c   2005-03-02 
20:26:10.599187430 -0800
+++ linux-export/drivers/infiniband/core/agent.c2005-03-02 
20:26:11.456001445 -0800
@@ -45,14 +45,11 @@
 #include smi.h
 #include agent_priv.h
 #include mad_priv.h
-
+#include agent.h
 
 spinlock_t ib_agent_port_list_lock;
 static LIST_HEAD(ib_agent_port_list);
 
-extern kmem_cache_t *ib_mad_cache;
-
-
 /*
  * Caller must hold ib_agent_port_list_lock
  */
--- linux-export.orig/drivers/infiniband/core/cache.c   2005-03-02 
20:26:03.085818330 -0800
+++ linux-export/drivers/infiniband/core/cache.c2005-03-02 
20:26:11.456001445 -0800
@@ -37,6 +37,8 @@
 #include linux/errno.h
 #include linux/slab.h
 
+#include ib_cache.h
+
 #include core_priv.h
 
 struct ib_pkey_cache {
--- linux-export.orig/drivers/infiniband/core/mad_priv.h2005-03-02 
20:26:10.980104746 -0800
+++ linux-export/drivers/infiniband/core/mad_priv.h 2005-03-02 
20:26:11.457001228 -0800
@@ -192,4 +192,6 @@
struct ib_mad_qp_info qp_info[IB_MAD_QPS_CORE];
 };
 
+extern kmem_cache_t *ib_mad_cache;
+
 #endif /* __IB_MAD_PRIV_H__ */
--- linux-export.orig/drivers/infiniband/core/smi.c 2005-03-02 
20:26:03.085818330 -0800
+++ linux-export/drivers/infiniband/core/smi.c  2005-03-02 20:26:11.458001011 
-0800
@@ -37,7 +37,7 @@
  */
 
 #include ib_smi.h
-
+#include smi.h
 
 /*
  * Fixup a directed route SMP for sending

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/