summaryrefslogtreecommitdiff
path: root/fs/ioctl.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-01-07 17:53:30 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2016-01-09 05:16:50 +0300
commit66cf191f3eae4582a83cb4251b75b43bee95a999 (patch)
tree65447e6f7c6fd824f8735f13ffbd85dc54f0eb66 /fs/ioctl.c
parentb43417216e9ce55e1f1ab7c834c7ab43db0b53e1 (diff)
downloadlinux-66cf191f3eae4582a83cb4251b75b43bee95a999.tar.xz
compat_ioctl: don't pass fd around when not needed
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ioctl.c')
-rw-r--r--fs/ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ioctl.c b/fs/ioctl.c
index 5d01d2638ca5..41c352e81193 100644
--- a/fs/ioctl.c
+++ b/fs/ioctl.c
@@ -15,6 +15,7 @@
#include <linux/writeback.h>
#include <linux/buffer_head.h>
#include <linux/falloc.h>
+#include "internal.h"
#include <asm/ioctls.h>
@@ -32,8 +33,7 @@
*
* Returns 0 on success, -errno on error.
*/
-static long vfs_ioctl(struct file *filp, unsigned int cmd,
- unsigned long arg)
+long vfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
{
int error = -ENOTTY;