Skip to contentSkip to conversation

Missing exports in genhd.c in 2.4.10-pre

PATCH In review Marc ZYNGIER 2 participants 2 messages Sep 9, 2001 – Sep 10, 2001 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Missing exports in genhd.c in 2.4.10-pre

Linus,

Please find attached a small patch (against 2.4.10-pre6) which adds missing EXPORT_SYMBOLs to genhd.c. Without it, modules such as sd_mod.o are unable to load...

        M.
drivers/block/genhd.c renamed from linux/drivers/block/genhd.c +6 -1
@@ -16,7 +16,7 @@
 #include <linux/kernel.h>
 #include <linux/blk.h>
 #include <linux/init.h>
-
+#include <linux/module.h>
 
 struct gendisk *gendisk_head;
 
@@ -133,3 +133,8 @@
 }
 
 __initcall(device_init);
+
+EXPORT_SYMBOL(add_gendisk);
+EXPORT_SYMBOL(del_gendisk);
+EXPORT_SYMBOL(get_gendisk);
+
Signature · 1 line
Places change, faces change. Life is so very strange.
#1 lore raw
Quoted 3 lines · Marc ZYNGIER

Please find attached a small patch (against 2.4.10-pre6) which adds missing EXPORT_SYMBOLs to genhd.c. Without it, modules such as sd_mod.o are unable to load...

You need to add genhd.o to export-objs in drivers/block/Makefile as well.