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

Next file: linux/drivers/block/rd.c
Previous file: linux/drivers/block/ll_rw_blk.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.17/linux/drivers/block/md.c linux/drivers/block/md.c
@@ -431,17 +431,10 @@
   return;
 }  
 
-static struct symbol_table md_symbol_table=
-{
-#include <linux/symtab_begin.h>
-
-  X(md_size),
-  X(register_md_personality),
-  X(unregister_md_personality),
-  X(partition_name),
-
-#include <linux/symtab_end.h>
-};
+EXPORT_SYMBOL(md_size);
+EXPORT_SYMBOL(register_md_personality);
+EXPORT_SYMBOL(unregister_md_personality);
+EXPORT_SYMBOL(partition_name);
 
 static struct proc_dir_entry proc_md = {
 	PROC_MD, 6, "mdstat",
@@ -461,7 +454,6 @@
   }
 
   blksize_size[MAJOR_NR] = md_blocksizes;
-  register_symtab (&md_symbol_table);
 
   proc_register(&proc_root, &proc_md);
 }

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