lkml.org 
[lkml]   [2019]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH -next] eventfd: Make eventfd_ida static
Date
From: YueHaibing <yuehaibing@huawei.com>

Fix sparse warning:

fs/eventfd.c:26:1: warning:
symbol 'eventfd_ida' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
fs/eventfd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/eventfd.c b/fs/eventfd.c
index ce8fa15..93b1fa7 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;
--
2.7.4

\
 
 \ /
  Last update: 2019-04-13 16:25    [W:0.037 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site