瀏覽代碼

include/linux/hdreg.h: cover WIN_* and friends with #ifndef/#endif __KERNEL__

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Bartlomiej Zolnierkiewicz 16 年之前
父節點
當前提交
dafd01cc14
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/linux/hdreg.h

+ 2 - 0
include/linux/hdreg.h

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