public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] compile out scsi_ioctl when no SCSI/IDE/etc.
@ 2005-03-17 10:46 Stéphane Fillod
  0 siblings, 0 replies; only message in thread
From: Stéphane Fillod @ 2005-03-17 10:46 UTC (permalink / raw)
  To: trivial; +Cc: linux-kernel, linux-tiny

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-17 11:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-17 10:46 [PATCH] compile out scsi_ioctl when no SCSI/IDE/etc Stéphane Fillod

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox