From ce528c4c20f94b48781a9bb9e32435d2b9782995 Mon Sep 17 00:00:00 2001 From: YueHaibing Date: Tue, 14 May 2019 15:45:22 -0700 Subject: [PATCH] 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- fs/eventfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 #include -DEFINE_IDA(eventfd_ida); +static DEFINE_IDA(eventfd_ida); struct eventfd_ctx { struct kref kref; -- 2.30.2