summaryrefslogtreecommitdiffstats
path: root/include/linux/genhd.h
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-04-25 14:07:57 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2006-04-25 14:07:57 +0100
commit34186efc17025520a53a48468338003d238a77d7 (patch)
treef887ed9f90f3a817cfb239c343f08dd380cfa15d /include/linux/genhd.h
parentf2999e4ea41d6ec6252d3b6d275b40d468a3c07e (diff)
downloadop-kernel-dev-34186efc17025520a53a48468338003d238a77d7.zip
op-kernel-dev-34186efc17025520a53a48468338003d238a77d7.tar.gz
Include various private files only from within __KERNEL__ in genhd.h
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux/genhd.h')
-rw-r--r--include/linux/genhd.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index 2ef845b..3498a0c 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -9,13 +9,7 @@
* <drew@colorado.edu>
*/
-#include <linux/config.h>
#include <linux/types.h>
-#include <linux/major.h>
-#include <linux/device.h>
-#include <linux/smp.h>
-#include <linux/string.h>
-#include <linux/fs.h>
enum {
/* These three have identical behaviour; use the second one if DOS FDISK gets
@@ -61,6 +55,12 @@ struct partition {
#endif
#ifdef __KERNEL__
+#include <linux/major.h>
+#include <linux/device.h>
+#include <linux/smp.h>
+#include <linux/string.h>
+#include <linux/fs.h>
+
struct partition {
unsigned char boot_ind; /* 0x80 - active */
unsigned char head; /* starting head */
OpenPOWER on IntegriCloud