All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] RDMA/core: make function rdma_user_mmap_entry_free static
@ 2019-11-06  3:24 zhengbin
  0 siblings, 0 replies; only message in thread
From: zhengbin @ 2019-11-06  3:24 UTC (permalink / raw)
  To: dledford, jgg, michal.kalderon, ariel.elior, linux-rdma; +Cc: zhengbin13

Fix sparse warnings:

drivers/infiniband/core/ib_core_uverbs.c:149:6: warning: symbol 'rdma_user_mmap_entry_free' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
---
 drivers/infiniband/core/ib_core_uverbs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/core/ib_core_uverbs.c b/drivers/infiniband/core/ib_core_uverbs.c
index 88d9d47..62eebad 100644
--- a/drivers/infiniband/core/ib_core_uverbs.c
+++ b/drivers/infiniband/core/ib_core_uverbs.c
@@ -146,7 +146,7 @@ rdma_user_mmap_entry_get(struct ib_ucontext *ucontext, u64 key,
 }
 EXPORT_SYMBOL(rdma_user_mmap_entry_get);

-void rdma_user_mmap_entry_free(struct kref *kref)
+static void rdma_user_mmap_entry_free(struct kref *kref)
 {
 	struct rdma_user_mmap_entry *entry =
 		container_of(kref, struct rdma_user_mmap_entry, ref);
--
2.7.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-06  3:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-06  3:24 [PATCH] RDMA/core: make function rdma_user_mmap_entry_free static zhengbin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.