[PATCH] 13/18 Export elevator_init

From: Arnd Bergmann (arndb@de.ibm.com)
Date: Mon Aug 05 2002 - 12:48:48 EST


Problem: The dasd driver wants to switch to the noop elevator function but
          it can do that if the driver is compiled as a module because
          elevator_init is not exported.
Solution: Export elevator_init. Has been accepted to 2.5.

diff -urN linux-2.4.19-rc3/drivers/block/Makefile linux-2.4.19-s390/drivers/block/Makefile
--- linux-2.4.19-rc3/drivers/block/Makefile Tue Jul 30 09:02:27 2002
+++ linux-2.4.19-s390/drivers/block/Makefile Tue Jul 30 09:02:43 2002
@@ -10,7 +10,7 @@
 
 O_TARGET := block.o
 
-export-objs := ll_rw_blk.o blkpg.o loop.o DAC960.o genhd.o
+export-objs := ll_rw_blk.o blkpg.o elevator.o loop.o DAC960.o genhd.o
 
 obj-y := ll_rw_blk.o blkpg.o genhd.o elevator.o
 
diff -urN linux-2.4.19-rc3/drivers/block/elevator.c linux-2.4.19-s390/drivers/block/elevator.c
--- linux-2.4.19-rc3/drivers/block/elevator.c Fri Jul 20 05:59:41 2001
+++ linux-2.4.19-s390/drivers/block/elevator.c Tue Jul 30 09:01:22 2002
@@ -220,3 +220,5 @@
         *elevator = type;
         elevator->queue_ID = queue_ID++;
 }
+
+EXPORT_SYMBOL(elevator_init);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:28 EST