]> err.no Git - linux-2.6/commitdiff
Include various private files only from within __KERNEL__ in genhd.h
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 25 Apr 2006 13:07:57 +0000 (14:07 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 25 Apr 2006 13:07:57 +0000 (14:07 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
include/linux/genhd.h

index 2ef845b35175815b8823e35bf6c23723725c13d3..3498a0c6818441cb9a81f6e329dac5fa8b03f7e3 100644 (file)
@@ -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 */