Re: [PATCH] cdev.h needs struct inode; add forward declaration
- From: Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx>
- Date: Tue, 30 Jan 2007 11:48:38 +0100 (MET)
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 the
compiler warning and preserve the ability to include headers in any arbitrary
order.
We've been over this: http://lkml.org/lkml/2007/1/19/119
The patch went in into -mm and out again (why? - no reason was
attached, Andrew.)
Jan
--
ft: http://freshmeat.net/p/chaostables/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH] cdev.h needs struct inode; add forward declaration
- From: Josh Triplett
- [PATCH] cdev.h needs struct inode; add forward declaration
- Prev by Date: Re: SATA ahci Bug in 2.6.19.x
- Next by Date: Re: [ANN] Userspace M-on-N threading model implementation. Alpha release.
- Previous by thread: [PATCH] cdev.h needs struct inode; add forward declaration
- Next by thread: [PATCH] slab.c ifdef reduction breaks build
- Index(es):
Relevant Pages
|