summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-05-15 00:45:22 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-15 04:52:51 +0200
commitce528c4c20f94b48781a9bb9e32435d2b9782995 (patch)
tree0564ed86b32c566092d8640376037a202c6a5822
parenteventfd: present id to userspace via fdinfo (diff)
downloadlinux-ce528c4c20f94b48781a9bb9e32435d2b9782995.tar.xz
linux-ce528c4c20f94b48781a9bb9e32435d2b9782995.zip
fs/eventfd.c: make eventfd_ida static
Fix sparse warning: fs/eventfd.c:26:1: warning: symbol 'eventfd_ida' was not declared. Should it be static? Link: http://lkml.kernel.org/r/20190413142348.34716-1-yuehaibing@huawei.com Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--fs/eventfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/eventfd.c b/fs/eventfd.c
index ce8fa15cebe5..93b1fa7bb298 100644
--- a/fs/eventfd.c
+++ b/fs/eventfd.c
@@ -23,7 +23,7 @@
#include <linux/seq_file.h>
#include <linux/idr.h>
-DEFINE_IDA(eventfd_ida);
+static DEFINE_IDA(eventfd_ida);
struct eventfd_ctx {
struct kref kref;