From: Roland Dreier Date: Tue, 19 Apr 2005 04:57:33 +0000 (-0700) Subject: [PATCH] debugfs: Reduce dependencies X-Git-Tag: v2.6.12-rc3~23^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7a76cefc4b12bb6508afa4c77f11c2752cc365d;p=pandora-kernel.git [PATCH] debugfs: Reduce dependencies The current 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 to get definitions of u32, mode_t, and so on. - forward declaring struct file_operations. - including 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed