[openib-general] [PATCH][3/11] IB: sparse fixes
Roland Dreier
roland at topspin.com
Wed Mar 2 21:31:22 PST 2005
From: Tom Duffy <tduffy at sun.com>
Fix some sparse warnings by making sure we have appropriate "extern"
declarations visible.
Signed-off-by: Tom Duffy <tduffy at sun.com>
Signed-off-by: Hal Rosenstock (<halr at voltaire.com>
Signed-off-by: Roland Dreier <roland at topspin.com>
--- linux-export.orig/drivers/infiniband/core/agent.c 2005-03-02 20:26:10.599187430 -0800
+++ linux-export/drivers/infiniband/core/agent.c 2005-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.c 2005-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.h 2005-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
More information about the general
mailing list