From 4a99694e7cfbb6415a443e3c73cf57809a745024 Mon Sep 17 00:00:00 2001 From: Randy Dunlap Date: Fri, 3 Oct 2003 08:33:04 -0700 Subject: [PATCH] [PATCH] janitor: cpqarray for !CONFIG_PROC_FS From: Luiz Capitulino Fix cpqarray.c warnings: `proc_array' and `ida_proc_get_info' defined but not used ida_proc_get_info() is only called when CONFIG_PROC_FS=y. --- drivers/block/cpqarray.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/block/cpqarray.c b/drivers/block/cpqarray.c index 0fbd001c34525..c97ac4765cd0a 100644 --- a/drivers/block/cpqarray.c +++ b/drivers/block/cpqarray.c @@ -99,8 +99,6 @@ static struct board_type products[] = { static struct gendisk *ida_gendisk[MAX_CTLR][NWD]; -static struct proc_dir_entry *proc_array; - /* Debug... */ #define DBG(s) do { s } while(0) /* Debug (general info)... */ @@ -153,8 +151,6 @@ static void ida_procinit(int i); static int ida_proc_get_info(char *buffer, char **start, off_t offset, int length, int *eof, void *data); #else static void ida_procinit(int i) {} -static int ida_proc_get_info(char *buffer, char **start, off_t offset, - int length, int *eof, void *data) { return 0;} #endif static inline drv_info_t *get_drv(struct gendisk *disk) @@ -179,6 +175,8 @@ static struct block_device_operations ida_fops = { #ifdef CONFIG_PROC_FS +static struct proc_dir_entry *proc_array; + /* * Get us a file in /proc/array that says something about each controller. * Create /proc/array if it doesn't exist yet. -- 2.53.0