Messages in this thread Patch in this message | | | Subject | [PATCH] trivial fix for raw compiled as module 2.5.45 | From | Stephen Hemminger <> | Date | 01 Nov 2002 09:48:30 -0800 |
| |
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 shemminger@osdl.org 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); - 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/
| |