Commit 0f5486ec authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] cciss: build with PROC_FS=n

RAID_UNKNOWN is used even when PROC_FS=n, so move it outside of the
CONFIG_PROC_FS block.

drivers/block/cciss.c:1910: error: 'RAID_UNKNOWN' undeclared (first use in this function)
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Cc: <mike.miller@hp.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent bcb4ddb4
...@@ -225,6 +225,8 @@ static inline CommandList_struct *removeQ(CommandList_struct **Qptr, ...@@ -225,6 +225,8 @@ static inline CommandList_struct *removeQ(CommandList_struct **Qptr,
#include "cciss_scsi.c" /* For SCSI tape support */ #include "cciss_scsi.c" /* For SCSI tape support */
#define RAID_UNKNOWN 6
#ifdef CONFIG_PROC_FS #ifdef CONFIG_PROC_FS
/* /*
...@@ -232,7 +234,6 @@ static inline CommandList_struct *removeQ(CommandList_struct **Qptr, ...@@ -232,7 +234,6 @@ static inline CommandList_struct *removeQ(CommandList_struct **Qptr,
*/ */
#define ENG_GIG 1000000000 #define ENG_GIG 1000000000
#define ENG_GIG_FACTOR (ENG_GIG/512) #define ENG_GIG_FACTOR (ENG_GIG/512)
#define RAID_UNKNOWN 6
static const char *raid_label[] = { "0", "4", "1(1+0)", "5", "5+1", "ADG", static const char *raid_label[] = { "0", "4", "1(1+0)", "5", "5+1", "ADG",
"UNKNOWN" "UNKNOWN"
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment