OSDN Git Service

anonfd: fix missing declaration
authorTomasz Stanislawski <t.stanislaws@samsung.com>
Tue, 12 Jul 2011 09:27:20 +0000 (11:27 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Jul 2011 00:47:43 +0000 (20:47 -0400)
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>
include/linux/anon_inodes.h

index 69a21e0..8013a45 100644 (file)
@@ -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);