浏览代码

anonfd: fix missing declaration

The forward declaration of struct file_operations is
added to avoid compilation warnings.

Signed-off-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Tomasz Stanislawski 14 年之前
父节点
当前提交
e46ebd2782
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/linux/anon_inodes.h

+ 2 - 0
include/linux/anon_inodes.h

@@ -8,6 +8,8 @@
 #ifndef _LINUX_ANON_INODES_H
 #define _LINUX_ANON_INODES_H
 
+struct file_operations;
+
 struct file *anon_inode_getfile(const char *name,
 				const struct file_operations *fops,
 				void *priv, int flags);