[PATCH][3/11] IB: sparse fixes
From: Roland Dreier (roland_at_topspin.com)
Date: 03/03/05
- Previous message: Evgeniy Polyakov: "Re: [PATCH 2.6.11-rc4-mm1] connector: Add a fork connector"
- In reply to: Roland Dreier: "[PATCH][2/11] IB: fix vendor MAD deregistration"
- Next in thread: Roland Dreier: "[PATCH][4/11] IB/mthca: add missing break"
- Reply: Roland Dreier: "[PATCH][4/11] IB/mthca: add missing break"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 2 Mar 2005 21:31:22 -0800 To: akpm@osdl.org
From: Tom Duffy <tduffy@sun.com>
Fix some sparse warnings by making sure we have appropriate "extern"
declarations visible.
Signed-off-by: Tom Duffy <tduffy@sun.com>
Signed-off-by: Hal Rosenstock (<halr@voltaire.com>
Signed-off-by: Roland Dreier <roland@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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Evgeniy Polyakov: "Re: [PATCH 2.6.11-rc4-mm1] connector: Add a fork connector"
- In reply to: Roland Dreier: "[PATCH][2/11] IB: fix vendor MAD deregistration"
- Next in thread: Roland Dreier: "[PATCH][4/11] IB/mthca: add missing break"
- Reply: Roland Dreier: "[PATCH][4/11] IB/mthca: add missing break"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|