Commit 4a99694e authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] janitor: cpqarray for !CONFIG_PROC_FS

From: Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br>

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.
parent c60117e6
......@@ -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.
......
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