]> git.hungrycats.org Git - linux/commitdiff
[PATCH] md: fixes for !CONFIG_PROCFS
authorAndrew Morton <akpm@osdl.org>
Tue, 20 Jan 2004 11:15:18 +0000 (03:15 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 20 Jan 2004 11:15:18 +0000 (03:15 -0800)
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

drivers/md/md.c

index 8f3043547721ade6fdc9a4c54390e2c0b9a5a344..d20a75b63c1e2e8186010e191c686b698efa5c0b 100644 (file)
@@ -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)