* [PATCH next] cciss: fix build when !PROC_FS
@ 2009-09-24 13:37 Alexander Beregalov
2009-09-24 14:15 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Beregalov @ 2009-09-24 13:37 UTC (permalink / raw)
To: linux-kernel, jens.axboe; +Cc: Alexander Beregalov
Fix these build errors when CONFIG_PROC_FS is not set:
drivers/block/cciss.c: In function 'cciss_show_raid_level':
drivers/block/cciss.c:623: error: 'RAID_UNKNOWN' undeclared (first use in this function)
drivers/block/cciss.c:626: error: 'raid_label' undeclared (first use in this function)
drivers/block/cciss.c: In function 'cciss_geometry_inquiry':
drivers/block/cciss.c:2696: error: 'RAID_UNKNOWN' undeclared (first use in this function)
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---
drivers/block/cciss.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 4d879b7..78852b1 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -256,6 +256,11 @@ static inline void removeQ(CommandList_struct *c)
#include "cciss_scsi.c" /* For SCSI tape support */
+static const char *raid_label[] = { "0", "4", "1(1+0)", "5", "5+1", "ADG",
+ "UNKNOWN"
+};
+#define RAID_UNKNOWN (sizeof(raid_label) / sizeof(raid_label[0])-1)
+
#ifdef CONFIG_PROC_FS
/*
@@ -264,10 +269,6 @@ static inline void removeQ(CommandList_struct *c)
#define ENG_GIG 1000000000
#define ENG_GIG_FACTOR (ENG_GIG/512)
#define ENGAGE_SCSI "engage scsi"
-static const char *raid_label[] = { "0", "4", "1(1+0)", "5", "5+1", "ADG",
- "UNKNOWN"
-};
-#define RAID_UNKNOWN (sizeof(raid_label) / sizeof(raid_label[0])-1)
static struct proc_dir_entry *proc_cciss;
--
1.6.5.rc1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH next] cciss: fix build when !PROC_FS
2009-09-24 13:37 [PATCH next] cciss: fix build when !PROC_FS Alexander Beregalov
@ 2009-09-24 14:15 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2009-09-24 14:15 UTC (permalink / raw)
To: Alexander Beregalov; +Cc: linux-kernel
On Thu, Sep 24 2009, Alexander Beregalov wrote:
> Fix these build errors when CONFIG_PROC_FS is not set:
> drivers/block/cciss.c: In function 'cciss_show_raid_level':
> drivers/block/cciss.c:623: error: 'RAID_UNKNOWN' undeclared (first use in this function)
> drivers/block/cciss.c:626: error: 'raid_label' undeclared (first use in this function)
> drivers/block/cciss.c: In function 'cciss_geometry_inquiry':
> drivers/block/cciss.c:2696: error: 'RAID_UNKNOWN' undeclared (first use in this function)
Thanks, applied.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-24 14:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-24 13:37 [PATCH next] cciss: fix build when !PROC_FS Alexander Beregalov
2009-09-24 14:15 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox