Skip to content

Commit

Permalink
Include various private files only from within __KERNEL__ in genhd.h
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
dwmw2 committed Apr 25, 2006
1 parent f2999e4 commit 34186ef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/linux/genhd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 34186ef

Please sign in to comment.