diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-09-06 18:17:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-07 19:57:29 -0400 |
commit | 5e1efe4931bf7d95b2f3d48ca0b79ea0e8341cc2 (patch) | |
tree | 6c3aff8c67e34bda6a2a36f2b65dc1b7ccd29c91 | |
parent | 919532a54518c3a4a8258319e2bba0e07f69a925 (diff) |
[PATCH] jffs/jffs2: remove wrong function prototypes
This patch removes prototypes for the generic_file_open and
generic_file_llseek functions.
Besides being superfluous because they are already present in fs.h, they
were also wrong because the actual functions aren't weak functions.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | fs/jffs/inode-v23.c | 3 | ||||
-rw-r--r-- | fs/jffs2/file.c | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/fs/jffs/inode-v23.c b/fs/jffs/inode-v23.c index bfbeb4c86e03..777b90057b89 100644 --- a/fs/jffs/inode-v23.c +++ b/fs/jffs/inode-v23.c | |||
@@ -1629,9 +1629,6 @@ static int jffs_fsync(struct file *f, struct dentry *d, int datasync) | |||
1629 | } | 1629 | } |
1630 | 1630 | ||
1631 | 1631 | ||
1632 | extern int generic_file_open(struct inode *, struct file *) __attribute__((weak)); | ||
1633 | extern loff_t generic_file_llseek(struct file *, loff_t, int) __attribute__((weak)); | ||
1634 | |||
1635 | static struct file_operations jffs_file_operations = | 1632 | static struct file_operations jffs_file_operations = |
1636 | { | 1633 | { |
1637 | .open = generic_file_open, | 1634 | .open = generic_file_open, |
diff --git a/fs/jffs2/file.c b/fs/jffs2/file.c index bd9ed9b0247b..8279bf0133ff 100644 --- a/fs/jffs2/file.c +++ b/fs/jffs2/file.c | |||
@@ -21,9 +21,6 @@ | |||
21 | #include <linux/jffs2.h> | 21 | #include <linux/jffs2.h> |
22 | #include "nodelist.h" | 22 | #include "nodelist.h" |
23 | 23 | ||
24 | extern int generic_file_open(struct inode *, struct file *) __attribute__((weak)); | ||
25 | extern loff_t generic_file_llseek(struct file *file, loff_t offset, int origin) __attribute__((weak)); | ||
26 | |||
27 | static int jffs2_commit_write (struct file *filp, struct page *pg, | 24 | static int jffs2_commit_write (struct file *filp, struct page *pg, |
28 | unsigned start, unsigned end); | 25 | unsigned start, unsigned end); |
29 | static int jffs2_prepare_write (struct file *filp, struct page *pg, | 26 | static int jffs2_prepare_write (struct file *filp, struct page *pg, |