Can't compile raw.c as module because blkdev_ioctl is not exported.
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.877 -> 1.878
# drivers/block/ioctl.c 1.51 -> 1.52
# drivers/block/Makefile 1.12 -> 1.13
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/11/01 [email protected] 1.878
# Export block dev to allow raw to be built as a module
# --------------------------------------------
#
diff -Nru a/drivers/block/Makefile b/drivers/block/Makefile
--- a/drivers/block/Makefile Fri Nov 1 09:45:40 2002
+++ b/drivers/block/Makefile Fri Nov 1 09:45:40 2002
@@ -8,8 +8,8 @@
# In the future, some of these should be built conditionally.
#
-export-objs := elevator.o ll_rw_blk.o loop.o genhd.o acsi.o \
- scsi_ioctl.o deadline-iosched.o
+export-objs := elevator.o ll_rw_blk.o ioctl.o loop.o genhd.o acsi.o \
+ scsi_ioctl.o deadline-iosched.o
obj-y := elevator.o ll_rw_blk.o ioctl.o genhd.o scsi_ioctl.o deadline-iosched.o
diff -Nru a/drivers/block/ioctl.c b/drivers/block/ioctl.c
--- a/drivers/block/ioctl.c Fri Nov 1 09:45:40 2002
+++ b/drivers/block/ioctl.c Fri Nov 1 09:45:40 2002
@@ -1,4 +1,5 @@
#include <linux/sched.h> /* for capable() */
+#include <linux/module.h>
#include <linux/blk.h> /* for set_device_ro() */
#include <linux/blkpg.h>
#include <linux/backing-dev.h>
@@ -214,3 +215,5 @@
}
return -ENOTTY;
}
+
+EXPORT_SYMBOL(blkdev_ioctl);