From: "Randy.Dunlap" From: Luiz Fernando Capitulino 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 --- drivers/md/md.c | 2 -- 1 files changed, 2 deletions(-) diff -puN drivers/md/md.c~janitor-06-md-procfs-fixes drivers/md/md.c --- 25/drivers/md/md.c~janitor-06-md-procfs-fixes 2004-01-19 00:04:59.000000000 -0800 +++ 25-akpm/drivers/md/md.c 2004-01-19 00:04:59.000000000 -0800 @@ -3482,11 +3482,9 @@ static void md_geninit(void) 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) _