Skip to contentSkip to conversation

drivers/scsi/ipr.c: make 2 functions static

PATCH In review Adrian Bunk 2 participants 2 messages Nov 20, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/scsi/ipr.c: make 2 functions static

This patch makes two needlessly global functions static.

---

 drivers/scsi/ipr.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/ipr.c renamed from drivers/scsi/ipr.c.old +2 -2
@@ -4615,7 +4615,7 @@
  * Return value:
  * 	0 on success / other on failure
  **/
-int ipr_ioctl(struct scsi_device *sdev, int cmd, void __user *arg)
+static int ipr_ioctl(struct scsi_device *sdev, int cmd, void __user *arg)
 {
 	struct ipr_resource_entry *res;
 
@@ -4655,7 +4655,7 @@
  * Return value:
  * 	EH_NOT_HANDLED
  **/
-enum scsi_eh_timer_return ipr_scsi_timed_out(struct scsi_cmnd *scsi_cmd)
+static enum scsi_eh_timer_return ipr_scsi_timed_out(struct scsi_cmnd *scsi_cmd)
 {
 	struct ipr_ioa_cfg *ioa_cfg;
 	struct ipr_cmnd *ipr_cmd;
maintainer
#1 lore raw

I'll merge this into a patchset I am working on for 2.6.20, since it conflicts with another change I am making.

Thanks,

Brian

Quoted 34 lines · Adrian Bunk

This patch makes two needlessly global functions static.

---

 drivers/scsi/ipr.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/ipr.c renamed from drivers/scsi/ipr.c.old +2 -3
@@ -4615,7 +4615,7 @@
  * Return value:
  * 	0 on success / other on failure
  **/
-int ipr_ioctl(struct scsi_device *sdev, int cmd, void __user *arg)
+static int ipr_ioctl(struct scsi_device *sdev, int cmd, void __user *arg)
 {
 	struct ipr_resource_entry *res;
 
@@ -4655,7 +4655,7 @@
  * Return value:
  * 	EH_NOT_HANDLED
  **/
-enum scsi_eh_timer_return ipr_scsi_timed_out(struct scsi_cmnd *scsi_cmd)
+static enum scsi_eh_timer_return ipr_scsi_timed_out(struct scsi_cmnd *scsi_cmd)
 {
 	struct ipr_ioa_cfg *ioa_cfg;
 	struct ipr_cmnd *ipr_cmd;
 
-

To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 3 lines
Brian King
eServer Storage I/O
IBM Linux Technology Center