]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
include/linux/hdreg.h: cover WIN_* and friends with #ifndef/#endif __KERNEL__
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 1 Apr 2009 19:42:25 +0000 (21:42 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 1 Apr 2009 19:42:25 +0000 (21:42 +0200)
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
include/linux/hdreg.h

index 47fcb05af8b4cfde96e66d836335d4152e2e8e8d..101eb91de22f0ba246597ef7ebf53eab3980bca0 100644 (file)
@@ -191,6 +191,7 @@ typedef struct hd_drive_hob_hdr {
 #define TASKFILE_INVALID               0x7fff
 #endif
 
+#ifndef __KERNEL__
 /* ATA/ATAPI Commands pre T13 Spec */
 #define WIN_NOP                                0x00
 /*
@@ -379,6 +380,7 @@ typedef struct hd_drive_hob_hdr {
 #define SECURITY_ERASE_UNIT            0xBD
 #define SECURITY_FREEZE_LOCK           0xBE
 #define SECURITY_DISABLE_PASSWORD      0xBF
+#endif /* __KERNEL__ */
 
 struct hd_geometry {
       unsigned char heads;