Hi,

This patch compiles out scsi_ioctl for embedded system with no
SCSI/IDE/etc, and saves couple KiB.
It was made against linuxppc 2.6.10pre3, but should apply ok against
current version.
Rem: If need be, the Kconfig part can be rewritten with "select".

Signed-off-by: Stephane Fillod <[EMAIL PROTECTED]>

--- linux/drivers/block/Kconfig 6 Dec 2004 16:15:14 -0000       1.1.1.1
+++ linux/drivers/block/Kconfig 16 Mar 2005 18:12:05 -0000
@@ -429,4 +429,9 @@
 
 source "drivers/block/Kconfig.iosched"
 
+config CDROM_SCSI_IOCTL
+       bool
+       depends on IDE || PARIDE || SCSI || CD_NO_IDESCSI 
+       default y
+
 endmenu
--- linux/drivers/block/Makefile        6 Dec 2004 16:18:35 -0000       1.1.1.1
+++ linux/drivers/block/Makefile        16 Mar 2005 18:12:05 -0000
@@ -13,8 +13,9 @@
 # kblockd threads
 #
 
-obj-y  := elevator.o ll_rw_blk.o ioctl.o genhd.o scsi_ioctl.o
+obj-y  := elevator.o ll_rw_blk.o ioctl.o genhd.o
 
+obj-$(CONFIG_SCSI_IOCTL)       += scsi_ioctl.o
 obj-$(CONFIG_IOSCHED_NOOP)     += noop-iosched.o
 obj-$(CONFIG_IOSCHED_AS)       += as-iosched.o
 obj-$(CONFIG_IOSCHED_DEADLINE) += deadline-iosched.o


Best Regards,
-- 
Stephane Fillod
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to