diff options
author | Eric Biggers <ebiggers@google.com> | 2018-01-06 09:45:44 -0800 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-01-06 13:47:20 -0500 |
commit | 105f2b7096075eacb6d2c83a6e00b652c2951063 (patch) | |
tree | dcbaf6f6ad5f44426a295d6e5aebc329e5355440 /include/linux/eventfd.h | |
parent | b6364572d641c8eba9eab9bcc31d8962f96ddf15 (diff) | |
download | lwn-105f2b7096075eacb6d2c83a6e00b652c2951063.tar.gz lwn-105f2b7096075eacb6d2c83a6e00b652c2951063.zip |
eventfd: fold eventfd_ctx_get() into eventfd_ctx_fileget()
eventfd_ctx_get() is not used outside of eventfd.c, so unexport it and
fold it into eventfd_ctx_fileget().
(eventfd_ctx_get() was apparently added years ago for KVM irqfd's, but
was never used.)
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/eventfd.h')
-rw-r--r-- | include/linux/eventfd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/eventfd.h b/include/linux/eventfd.h index 566fef14d0a6..7094718b653b 100644 --- a/include/linux/eventfd.h +++ b/include/linux/eventfd.h @@ -26,11 +26,11 @@ #define EFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK) #define EFD_FLAGS_SET (EFD_SHARED_FCNTL_FLAGS | EFD_SEMAPHORE) +struct eventfd_ctx; struct file; #ifdef CONFIG_EVENTFD -struct eventfd_ctx *eventfd_ctx_get(struct eventfd_ctx *ctx); void eventfd_ctx_put(struct eventfd_ctx *ctx); struct file *eventfd_fget(int fd); struct eventfd_ctx *eventfd_ctx_fdget(int fd); |