public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: James.Bottomley@SteelEye.com
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [2.6 patch] drivers/scsi/scsi_transport_fc.c: #0 unused code
Date: Mon, 28 Feb 2005 23:00:20 +0100	[thread overview]
Message-ID: <20050228220020.GR4021@stusta.de> (raw)

This patch #if 0's the following EXPORT_SYMBOL'ed but unused functions:
- fc_target_block
- fc_target_unblock
- fc_host_block
- fc_host_unblock

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

If the inclusion of code using these functions into the kernel is 
pending, please ignore my patch.

 drivers/scsi/scsi_transport_fc.c |   10 ++++++++++
 include/scsi/scsi_transport_fc.h |    4 ----
 2 files changed, 10 insertions(+), 4 deletions(-)

--- linux-2.6.11-rc4-mm1-full/include/scsi/scsi_transport_fc.h.old	2005-02-28 20:24:09.000000000 +0100
+++ linux-2.6.11-rc4-mm1-full/include/scsi/scsi_transport_fc.h	2005-02-28 20:24:30.000000000 +0100
@@ -316,9 +316,5 @@
 
 struct scsi_transport_template *fc_attach_transport(struct fc_function_template *);
 void fc_release_transport(struct scsi_transport_template *);
-int fc_target_block(struct scsi_target *starget);
-void fc_target_unblock(struct scsi_target *starget);
-int fc_host_block(struct Scsi_Host *shost);
-void fc_host_unblock(struct Scsi_Host *shost);
 
 #endif /* SCSI_TRANSPORT_FC_H */
--- linux-2.6.11-rc4-mm1-full/drivers/scsi/scsi_transport_fc.c.old	2005-02-28 20:24:39.000000000 +0100
+++ linux-2.6.11-rc4-mm1-full/drivers/scsi/scsi_transport_fc.c	2005-02-28 20:40:02.000000000 +0100
@@ -845,10 +845,12 @@
  * @dev:	scsi device
  * @data:	unused
  **/
+#if 0
 static void fc_device_block(struct scsi_device *sdev, void *data)
 {
 	scsi_internal_device_block(sdev);
 }
+#endif  /*  0  */
 
 /**
  * fc_device_unblock - called by target functions to unblock a scsi device
@@ -880,6 +882,8 @@
 	starget_for_each_device(starget, NULL, fc_device_unblock);
 }
 
+#if 0
+
 /**
  * fc_target_block - block a target by temporarily putting all its scsi devices
  *		into the SDEV_BLOCK state.
@@ -940,6 +944,8 @@
 }
 EXPORT_SYMBOL(fc_target_unblock);
 
+#endif  /*  0  */
+
 /**
  * fc_timeout_blocked_host - Timeout handler for blocked scsi hosts
  *			 that fail to recover in the alloted time.
@@ -964,6 +970,8 @@
 	}
 }
 
+#if 0
+
 /**
  * fc_host_block - block all scsi devices managed by the calling host temporarily 
  *		by putting each device in the SDEV_BLOCK state.
@@ -1031,6 +1039,8 @@
 }
 EXPORT_SYMBOL(fc_host_unblock);
 
+#endif  /*  0  */
+
 MODULE_AUTHOR("Martin Hicks");
 MODULE_DESCRIPTION("FC Transport Attributes");
 MODULE_LICENSE("GPL");


             reply	other threads:[~2005-02-28 22:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-28 22:00 Adrian Bunk [this message]
2005-02-28 22:20 ` [2.6 patch] drivers/scsi/scsi_transport_fc.c: #0 unused code Christoph Hellwig

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=20050228220020.GR4021@stusta.de \
    --to=bunk@stusta.de \
    --cc=James.Bottomley@SteelEye.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox