[pnfs] [PATCH] pnfsd: fix compiler warning in exportfs.h

Benny Halevy bhalevy at panasas.com
Thu Nov 1 02:50:13 EDT 2007


missing forward declaration to struct inode causes the following warning:

  CC [M]  fs/exportfs/expfs.o
In file included from fs/exportfs/expfs.c:2:
include/linux/exportfs.h:140: warning: "struct inode" declared inside parameter list
include/linux/exportfs.h:140: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/exportfs.h:144: warning: "struct inode" declared inside parameter list
include/linux/exportfs.h:146: warning: "struct inode" declared inside parameter list
include/linux/exportfs.h:151: warning: "struct inode" declared inside parameter list
include/linux/exportfs.h:153: warning: "struct inode" declared inside parameter list

Signed-off-by: Benny Halevy <bhalevy at bh-buildlin1.bhalevy.com>
---
 include/linux/exportfs.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/exportfs.h b/include/linux/exportfs.h
index 0844841..cf396fd 100644
--- a/include/linux/exportfs.h
+++ b/include/linux/exportfs.h
@@ -6,7 +6,7 @@
 struct dentry;
 struct super_block;
 struct vfsmount;
-
+struct inode;
 
 /**
  * struct export_operations - for nfsd to communicate with file systems
-- 
1.5.3.1



More information about the pNFS mailing list