From 42a60ad3cdd060ab9622395096c4268f6aa10263 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 20 Jan 2004 03:15:18 -0800 Subject: [PATCH] [PATCH] md: fixes for !CONFIG_PROCFS 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 file changed, 2 deletions(-) diff --git a/drivers/md/md.c b/drivers/md/md.c index 8f3043547721a..d20a75b63c1e2 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -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) -- 2.53.0