patch-2.1.3 linux/drivers/block/md.c

Next file: linux/drivers/char/misc.c
Previous file: linux/arch/i386/mm/fault.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.2/linux/drivers/block/md.c linux/drivers/block/md.c
@@ -439,6 +439,10 @@
 #include <linux/symtab_end.h>
 };
 
+static struct proc_dir_entry proc_md = {
+	PROC_MD, 6, "mdstat",
+	S_IFREG | S_IRUGO, 1, 0, 0,
+};
 
 static void md_geninit (struct gendisk *gdisk)
 {
@@ -455,12 +459,7 @@
   blksize_size[MAJOR_NR] = md_blocksizes;
   register_symtab (&md_symbol_table);
 
-  proc_register(&proc_root,
-		&(struct proc_dir_entry)
-	      {
-		PROC_MD, 6, "mdstat",
-		S_IFREG | S_IRUGO, 1, 0, 0,
-	      });
+  proc_register(&proc_root, &proc_md);
 }
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov