[openib-general] [PATCH] trivial ucm sparse cleanup
Roland Dreier
rolandd at cisco.com
Tue Sep 27 14:08:10 PDT 2005
Just an FYI, I already checked in... just make two vars only used in a
single file static to appease sparse.
--- infiniband/core/ucm.c (revision 3579)
+++ infiniband/core/ucm.c (working copy)
@@ -113,8 +113,8 @@ static struct ib_client ucm_client = {
.remove = ib_ucm_remove_one
};
-DECLARE_MUTEX(ctx_id_mutex);
-DEFINE_IDR(ctx_id_table);
+static DECLARE_MUTEX(ctx_id_mutex);
+static DEFINE_IDR(ctx_id_table);
static DECLARE_BITMAP(dev_map, IB_UCM_MAX_DEVICES);
static struct ib_ucm_context *ib_ucm_ctx_get(struct ib_ucm_file *file, int id)
More information about the general
mailing list