diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-05-15 01:45:22 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-15 05:52:51 +0300 |
commit | ce528c4c20f94b48781a9bb9e32435d2b9782995 (patch) | |
tree | 0564ed86b32c566092d8640376037a202c6a5822 /fs | |
parent | b556db17b0e7c439bb6113b6dc7185bd0b1bbbb4 (diff) | |
download | linux-ce528c4c20f94b48781a9bb9e32435d2b9782995.tar.xz |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/eventfd.c | 2 |
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; |