projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07d357d
)
[IB] ucm: quiet sparse warnings
author
Roland Dreier
<rolandd@cisco.com>
Mon, 17 Oct 2005 22:38:50 +0000
(15:38 -0700)
committer
Roland 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/infiniband/core/ucm.c
b/drivers/infiniband/core/ucm.c
index d208ea29e07acd38b738063b4065726dcdefdf52..02ca642089bdac7c760f532626cbadd3e25f5963 100644
(file)
--- a/
drivers/infiniband/core/ucm.c
+++ b/
drivers/infiniband/core/ucm.c
@@
-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)