Commit 8f52a931 authored by Tom Duffy's avatar Tom Duffy Committed by Linus Torvalds

[PATCH] IB: sparse fixes

Fix some sparse warnings by making sure we have appropriate "extern"
declarations visible.
Signed-off-by: default avatarTom Duffy <tduffy@sun.com>
Signed-off-by: Hal Rosenstock (<halr@voltaire.com>
Signed-off-by: default avatarRoland Dreier <roland@topspin.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 25b1bc67
......@@ -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
*/
......
......@@ -37,6 +37,8 @@
#include <linux/errno.h>
#include <linux/slab.h>
#include <ib_cache.h>
#include "core_priv.h"
struct ib_pkey_cache {
......
......@@ -192,4 +192,6 @@ struct ib_mad_port_private {
struct ib_mad_qp_info qp_info[IB_MAD_QPS_CORE];
};
extern kmem_cache_t *ib_mad_cache;
#endif /* __IB_MAD_PRIV_H__ */
......@@ -37,7 +37,7 @@
*/
#include <ib_smi.h>
#include "smi.h"
/*
* Fixup a directed route SMP for sending
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment