From 1d1d858e789330b60817d76348d3eb99b963b626 Mon Sep 17 00:00:00 2001 From: Randy Dunlap Date: Fri, 3 Oct 2003 08:31:36 -0700 Subject: [PATCH] [PATCH] janitor: fix cciss for !CONFIG_PROC_FS From: Luiz Capitulino Fix a warning about 'proc_cciss' and `cciss_proc_get_info' defined but not used. They are only called when CONFIG_PROC_FS=y. --- drivers/block/cciss.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 5066e6136ce3d..d4f508644b1f2 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -111,8 +111,6 @@ static struct board_type products[] = { static ctlr_info_t *hba[MAX_CTLR]; -static struct proc_dir_entry *proc_cciss; - static void do_cciss_request(request_queue_t *q); static int cciss_open(struct inode *inode, struct file *filep); static int cciss_release(struct inode *inode, struct file *filep); @@ -137,8 +135,6 @@ static int cciss_proc_get_info(char *buffer, char **start, off_t offset, int length, int *eof, void *data); static void cciss_procinit(int i); #else -static int cciss_proc_get_info(char *buffer, char **start, off_t offset, - int length, int *eof, void *data) { return 0;} static void cciss_procinit(int i) {} #endif /* CONFIG_PROC_FS */ @@ -156,6 +152,9 @@ static struct block_device_operations cciss_fops = { * Report information about this controller. */ #ifdef CONFIG_PROC_FS + +static struct proc_dir_entry *proc_cciss; + static int cciss_proc_get_info(char *buffer, char **start, off_t offset, int length, int *eof, void *data) { -- 2.53.0