Linux-RDMA Archive on
 help / color / 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 <>
Signed-off-by: zhengbin <>
 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,

-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);

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

only message in thread, back to index

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

Linux-RDMA Archive on

Archives are clonable:
	git clone --mirror linux-rdma/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-rdma linux-rdma/ \
	public-inbox-index linux-rdma

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone