Skip to contentSkip to conversation

include/linux/hdreg.h: cover struct hd_driveid with #ifndef/#endif __KERNEL__

PATCH In review Bartlomiej Zolnierkiewicz 1 participant 1 message Jul 23, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 include/linux/hdreg.h: cover struct hd_driveid with #ifndef/#endif __KERNEL__

---
 include/linux/hdreg.h |    2 ++
 1 file changed, 2 insertions(+)
include/linux/hdreg.h +2 -0
Index: b/include/linux/hdreg.h
===================================================================
@@ -448,6 +448,7 @@ enum {
 
 #define __NEW_HD_DRIVE_ID
 
+#ifndef __KERNEL__
 /*
  * Structure returned by HDIO_GET_IDENTITY, as per ANSI NCITS ATA6 rev.1b spec.
  *
@@ -700,6 +701,7 @@ struct hd_driveid {
 					 *  7:0 Signature
 					 */
 };
+#endif /* __KERNEL__ */
 
 /*
  * IDE "nice" flags. These are used on a per drive basis to determine