提交 5e1efe49 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

[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: NAdrian Bunk <bunk@stusta.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 919532a5
...@@ -1629,9 +1629,6 @@ static int jffs_fsync(struct file *f, struct dentry *d, int datasync) ...@@ -1629,9 +1629,6 @@ static int jffs_fsync(struct file *f, struct dentry *d, int datasync)
} }
extern int generic_file_open(struct inode *, struct file *) __attribute__((weak));
extern loff_t generic_file_llseek(struct file *, loff_t, int) __attribute__((weak));
static struct file_operations jffs_file_operations = static struct file_operations jffs_file_operations =
{ {
.open = generic_file_open, .open = generic_file_open,
......
...@@ -21,9 +21,6 @@ ...@@ -21,9 +21,6 @@
#include <linux/jffs2.h> #include <linux/jffs2.h>
#include "nodelist.h" #include "nodelist.h"
extern int generic_file_open(struct inode *, struct file *) __attribute__((weak));
extern loff_t generic_file_llseek(struct file *file, loff_t offset, int origin) __attribute__((weak));
static int jffs2_commit_write (struct file *filp, struct page *pg, static int jffs2_commit_write (struct file *filp, struct page *pg,
unsigned start, unsigned end); unsigned start, unsigned end);
static int jffs2_prepare_write (struct file *filp, struct page *pg, static int jffs2_prepare_write (struct file *filp, struct page *pg,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册