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
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);
if (p)
p->proc_fops = &md_seq_fops;
-#endif
}
int __init md_init(void)