Commit 42a60ad3 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] md: fixes for !CONFIG_PROCFS

From: "Randy.Dunlap" <rddunlap@osdl.org>
From: Luiz Fernando Capitulino <lcapitulino@prefeitura.sp.gov.br>

It fixes these warnings when !CONFIG_PROC_FS:

drivers/md/md.c: In function `md_geninit':
drivers/md/md.c:3481: warning: unused variable `p'
drivers/md/md.c: At top level:
drivers/md/md.c:3007: warning: `md_seq_fops' defined but not used
parent 9a921a40
...@@ -3482,11 +3482,9 @@ static void md_geninit(void) ...@@ -3482,11 +3482,9 @@ static void md_geninit(void)
dprintk("md: sizeof(mdp_super_t) = %d\n", (int)sizeof(mdp_super_t)); dprintk("md: sizeof(mdp_super_t) = %d\n", (int)sizeof(mdp_super_t));
#ifdef CONFIG_PROC_FS
p = create_proc_entry("mdstat", S_IRUGO, NULL); p = create_proc_entry("mdstat", S_IRUGO, NULL);
if (p) if (p)
p->proc_fops = &md_seq_fops; p->proc_fops = &md_seq_fops;
#endif
} }
int __init md_init(void) int __init md_init(void)
......
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