[PATCH] 13/18 Export elevator_init

Arnd Bergmann
2002-08-05T16:09:23Z

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);