kill fs/read_write.h
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 4 May 2013 19:00:54 +0000 (15:00 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 4 May 2013 19:00:54 +0000 (15:00 -0400)
fs/compat.c doesn't need it anymore, so let's just move the remaining
contents (two typedefs) into fs/read_write.c

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/compat.c
fs/read_write.c
fs/read_write.h [deleted file]

index d0560c93973d90a76f81a8ecb5d5b10a76a19d69..93f7d021b716c01d0b2a9844f209aca7093c3e46 100644 (file)
@@ -67,8 +67,6 @@ int compat_printk(const char *fmt, ...)
        return ret;
 }
 
-#include "read_write.h"
-
 /*
  * Not all architectures have sys_utime, so implement this in terms
  * of sys_utimes.
index 605dbbcb19734363150668f2dd37e9a9fbf65276..90ba3b350e5063daa547f35814fd5e4c8c660a4f 100644 (file)
 #include <linux/pagemap.h>
 #include <linux/splice.h>
 #include <linux/compat.h>
-#include "read_write.h"
 #include "internal.h"
 
 #include <asm/uaccess.h>
 #include <asm/unistd.h>
 
+typedef ssize_t (*io_fn_t)(struct file *, char __user *, size_t, loff_t *);
+typedef ssize_t (*iov_fn_t)(struct kiocb *, const struct iovec *,
+               unsigned long, loff_t);
+
 const struct file_operations generic_ro_fops = {
        .llseek         = generic_file_llseek,
        .read           = do_sync_read,
diff --git a/fs/read_write.h b/fs/read_write.h
deleted file mode 100644 (file)
index 0ec530d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
- * This file is only for sharing some helpers from read_write.c with compat.c.
- * Don't use anywhere else.
- */
-
-
-typedef ssize_t (*io_fn_t)(struct file *, char __user *, size_t, loff_t *);
-typedef ssize_t (*iov_fn_t)(struct kiocb *, const struct iovec *,
-               unsigned long, loff_t);