Skip to content

Commit

Permalink
fs/eventfd.c: make eventfd_ida static
Browse files Browse the repository at this point in the history
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/[email protected]
Signed-off-by: YueHaibing <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
YueHaibing authored and torvalds committed May 15, 2019
1 parent b556db1 commit ce528c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/eventfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ce528c4

Please sign in to comment.