All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stéphane Fillod" <fillods@gmail.com>
To: trivial@rustcorp.com.au
Cc: linux-kernel@vger.kernel.org, linux-tiny@selenic.com
Subject: [PATCH] compile out scsi_ioctl when no SCSI/IDE/etc.
Date: Thu, 17 Mar 2005 11:46:04 +0100	[thread overview]
Message-ID: <e2cbbd0c050317024642cbcf19@mail.gmail.com> (raw)

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

                 reply	other threads:[~2005-03-17 11:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e2cbbd0c050317024642cbcf19@mail.gmail.com \
    --to=fillods@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tiny@selenic.com \
    --cc=trivial@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.