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
# --------------------------------------------
# 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
# 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
#include <linux/sched.h> /* for capable() */
+#include <linux/module.h>
#include <linux/blk.h> /* for set_device_ro() */
#include <linux/blkpg.h>
}
return -ENOTTY;
}
+
+EXPORT_SYMBOL(blkdev_ioctl);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/