summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-05-14 15:45:22 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-14 19:52:51 -0700
commitce528c4c20f94b48781a9bb9e32435d2b9782995 (patch)
tree0564ed86b32c566092d8640376037a202c6a5822
parentb556db17b0e7c439bb6113b6dc7185bd0b1bbbb4 (diff)
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;