Skip to content

Commit bbe425c

Browse files
author
Jens Axboe
committed
cciss: fix build for PROC_FS disabled
The recent patch to fix the removal of a non-existing proc directory introduced this build problem for !CONFIG_PROC_FS: drivers/block/cciss.c:4929: error: 'proc_cciss' undeclared (first use in this function) Fix it by moving proc_cciss outside of the CONFIG_PROC_FS scope. Reported-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
1 parent 3e9bb2a commit bbe425c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/block/cciss.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ MODULE_VERSION("3.6.26");
6666
MODULE_LICENSE("GPL");
6767

6868
static DEFINE_MUTEX(cciss_mutex);
69+
static struct proc_dir_entry *proc_cciss;
6970

7071
#include "cciss_cmd.h"
7172
#include "cciss.h"
@@ -363,8 +364,6 @@ static const char *raid_label[] = { "0", "4", "1(1+0)", "5", "5+1", "ADG",
363364
#define ENG_GIG_FACTOR (ENG_GIG/512)
364365
#define ENGAGE_SCSI "engage scsi"
365366

366-
static struct proc_dir_entry *proc_cciss;
367-
368367
static void cciss_seq_show_header(struct seq_file *seq)
369368
{
370369
ctlr_info_t *h = seq->private;

0 commit comments

Comments
 (0)