提交 a19cbd4b 编写于 作者: L Linus Torvalds

Mark the pipe file operations static

They aren't used (nor even really usable) outside of pipe.c anyway
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 432e7c0d
...@@ -605,7 +605,7 @@ struct file_operations rdwr_fifo_fops = { ...@@ -605,7 +605,7 @@ struct file_operations rdwr_fifo_fops = {
.fasync = pipe_rdwr_fasync, .fasync = pipe_rdwr_fasync,
}; };
struct file_operations read_pipe_fops = { static struct file_operations read_pipe_fops = {
.llseek = no_llseek, .llseek = no_llseek,
.read = pipe_read, .read = pipe_read,
.readv = pipe_readv, .readv = pipe_readv,
...@@ -617,7 +617,7 @@ struct file_operations read_pipe_fops = { ...@@ -617,7 +617,7 @@ struct file_operations read_pipe_fops = {
.fasync = pipe_read_fasync, .fasync = pipe_read_fasync,
}; };
struct file_operations write_pipe_fops = { static struct file_operations write_pipe_fops = {
.llseek = no_llseek, .llseek = no_llseek,
.read = bad_pipe_r, .read = bad_pipe_r,
.write = pipe_write, .write = pipe_write,
...@@ -629,7 +629,7 @@ struct file_operations write_pipe_fops = { ...@@ -629,7 +629,7 @@ struct file_operations write_pipe_fops = {
.fasync = pipe_write_fasync, .fasync = pipe_write_fasync,
}; };
struct file_operations rdwr_pipe_fops = { static struct file_operations rdwr_pipe_fops = {
.llseek = no_llseek, .llseek = no_llseek,
.read = pipe_read, .read = pipe_read,
.readv = pipe_readv, .readv = pipe_readv,
......
...@@ -1418,9 +1418,6 @@ extern int is_bad_inode(struct inode *); ...@@ -1418,9 +1418,6 @@ extern int is_bad_inode(struct inode *);
extern struct file_operations read_fifo_fops; extern struct file_operations read_fifo_fops;
extern struct file_operations write_fifo_fops; extern struct file_operations write_fifo_fops;
extern struct file_operations rdwr_fifo_fops; extern struct file_operations rdwr_fifo_fops;
extern struct file_operations read_pipe_fops;
extern struct file_operations write_pipe_fops;
extern struct file_operations rdwr_pipe_fops;
extern int fs_may_remount_ro(struct super_block *); extern int fs_may_remount_ro(struct super_block *);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册