lkml.org 
[lkml]   [2005]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH][3/11] IB: sparse fixes
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.209 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site