Re: [PATCH] cdev.h needs struct inode; add forward declaration

2007-01-30 Thread Jan Engelhardt
>include/linux/cdev.h defines cd_forget to take a struct inode *, but does not >pull in any definition or declaration for struct inode. This generates a >compiler warning if a source file pulls in cdev.h without first pulling in >fs.h. Add a forward declaration of struct inode to cdev.h, to elim

[PATCH] cdev.h needs struct inode; add forward declaration

2007-01-29 Thread Josh Triplett
include/linux/cdev.h defines cd_forget to take a struct inode *, but does not pull in any definition or declaration for struct inode. This generates a compiler warning if a source file pulls in cdev.h without first pulling in fs.h. Add a forward declaration of struct inode to cdev.h, to eliminate