[IB] ucm: quiet sparse warnings
authorRoland Dreier <rolandd@cisco.com>
Mon, 17 Oct 2005 22:38:50 +0000 (15:38 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 17 Oct 2005 22:38:50 +0000 (15:38 -0700)
Make ctx_id_mutex and ctx_id_table static to quiet sparse warnings.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/ucm.c

index d208ea29e07acd38b738063b4065726dcdefdf52..02ca642089bdac7c760f532626cbadd3e25f5963 100644 (file)
@@ -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)