diff options
author | Roland Dreier <roland@topspin.com> | 2005-04-18 21:57:33 -0700 |
---|---|---|
committer | Greg KH <greg@press.kroah.org> | 2005-04-18 21:57:33 -0700 |
commit | a7a76cefc4b12bb6508afa4c77f11c2752cc365d (patch) | |
tree | d9051a989583e172d662c15695906dc9fcb536f2 /include/linux/ext2_fs.h | |
parent | 1694145854a309bebd12a5cce63c9b398304e3bb (diff) |
[PATCH] debugfs: Reduce <linux/debugfs.h> dependencies
The current <linux/debugfs.h> include file is a little fragile in that
it is not self-contained and hence may cause compile warnings or
errors depending on the files included before it, the kernel config
and the architecture. This patch makes things a little more robust by:
- including <linux/types.h> to get definitions of u32, mode_t, and so on.
- forward declaring struct file_operations.
- including <linux/err.h> when CONFIG_DEBUG_FS is not set
The last change is particularly useful, as a kernel developer is
likely to build with debugfs always enabled and never see the build
breakage cased if debugfs is disabled.
Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/ext2_fs.h')
0 files changed, 0 insertions, 0 deletions