On 11/12/2009 03:36 PM, Trond Myklebust wrote: > On Thu, 2009-11-12 at 14:48 +0200, Boaz Harrosh wrote: >> >> from posix_acl.h: >> extern int posix_acl_permission(struct inode *, const struct posix_acl *, int); >> >> stuct inode is defined in fs.h. hence the direct dependency. > > Add a forward declaration of the form > > struct inode; > This will not work. <quote> ... static inline struct posix_acl *get_cached_acl(struct inode *inode, int type) { struct posix_acl **p, *acl; switch (type) { case ACL_TYPE_ACCESS: p = &inode->i_acl; break; case ACL_TYPE_DEFAULT: p = &inode->i_default_acl; break; default: return ERR_PTR(-EINVAL); } ... </quote> the header has inlines that directly manipulate inode members a forward declaration is not enough. <snip> >> And please note that this particular file is an NFSD and vfs related file only, it >> has nothing to do with nfs. > > ...and hence you need to send it to the VFS maintainer. I'm not touching > that patch, or the patchset that "requires" it. > OK This particular hunk I will send to fsdevel, anything else? Boaz -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html