Messages in this thread Patch in this message | | | Date | Thu, 17 Mar 2005 11:46:04 +0100 | From | Stéphane Fillod <> | Subject | [PATCH] compile out scsi_ioctl when no SCSI/IDE/etc. |
| |
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 <fillods@gmail.com>
--- 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 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/
| |