From: Tejun Heo <htejun@gmail.com>
To: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Mark Lord <liml@rtr.ca>, Matthew Wilcox <matthew@wil.cx>,
linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org,
Jeff Garzik <jeff@garzik.org>
Subject: [PATCH 1/2] scsi: export scsi_forget_host()
Date: Fri, 07 Mar 2008 12:08:20 +0900 [thread overview]
Message-ID: <47D0B1A4.2040104@gmail.com> (raw)
In-Reply-To: <47D08FAA.7070001@gmail.com>
Export scsi_forget_host(), will be used by libata.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
---
drivers/scsi/scsi_priv.h | 1 -
drivers/scsi/scsi_scan.c | 1 +
include/scsi/scsi_host.h | 1 +
3 files changed, 2 insertions(+), 1 deletion(-)
Index: work1/drivers/scsi/scsi_priv.h
===================================================================
--- work1.orig/drivers/scsi/scsi_priv.h
+++ work1/drivers/scsi/scsi_priv.h
@@ -98,7 +98,6 @@ extern void scsi_exit_procfs(void);
/* scsi_scan.c */
extern int scsi_scan_host_selected(struct Scsi_Host *, unsigned int,
unsigned int, unsigned int, int);
-extern void scsi_forget_host(struct Scsi_Host *);
extern void scsi_rescan_device(struct device *);
/* scsi_sysctl.c */
Index: work1/drivers/scsi/scsi_scan.c
===================================================================
--- work1.orig/drivers/scsi/scsi_scan.c
+++ work1/drivers/scsi/scsi_scan.c
@@ -1845,6 +1845,7 @@ void scsi_forget_host(struct Scsi_Host *
}
spin_unlock_irqrestore(shost->host_lock, flags);
}
+EXPORT_SYMBOL(scsi_forget_host);
/*
* Function: scsi_get_host_dev()
Index: work1/include/scsi/scsi_host.h
===================================================================
--- work1.orig/include/scsi/scsi_host.h
+++ work1/include/scsi/scsi_host.h
@@ -719,6 +719,7 @@ extern struct Scsi_Host *scsi_host_alloc
extern int __must_check scsi_add_host(struct Scsi_Host *, struct device *);
extern void scsi_scan_host(struct Scsi_Host *);
extern void scsi_rescan_device(struct device *);
+extern void scsi_forget_host(struct Scsi_Host *);
extern void scsi_remove_host(struct Scsi_Host *);
extern struct Scsi_Host *scsi_host_get(struct Scsi_Host *);
extern void scsi_host_put(struct Scsi_Host *t);
WARNING: multiple messages have this Message-ID (diff)
From: Tejun Heo <htejun@gmail.com>
To: Jeff Garzik <jeff@garzik.org>,
James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Mark Lord <liml@rtr.ca>, Matthew Wilcox <matthew@wil.cx>,
linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org,
Jeff Garzik <jeff@garzik.org>
Subject: [PATCH 1/2] scsi: export scsi_forget_host()
Date: Fri, 07 Mar 2008 12:08:20 +0900 [thread overview]
Message-ID: <47D0B1A4.2040104@gmail.com> (raw)
In-Reply-To: <47D08FAA.7070001@gmail.com>
Export scsi_forget_host(), will be used by libata.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
---
drivers/scsi/scsi_priv.h | 1 -
drivers/scsi/scsi_scan.c | 1 +
include/scsi/scsi_host.h | 1 +
3 files changed, 2 insertions(+), 1 deletion(-)
Index: work1/drivers/scsi/scsi_priv.h
===================================================================
--- work1.orig/drivers/scsi/scsi_priv.h
+++ work1/drivers/scsi/scsi_priv.h
@@ -98,7 +98,6 @@ extern void scsi_exit_procfs(void);
/* scsi_scan.c */
extern int scsi_scan_host_selected(struct Scsi_Host *, unsigned int,
unsigned int, unsigned int, int);
-extern void scsi_forget_host(struct Scsi_Host *);
extern void scsi_rescan_device(struct device *);
/* scsi_sysctl.c */
Index: work1/drivers/scsi/scsi_scan.c
===================================================================
--- work1.orig/drivers/scsi/scsi_scan.c
+++ work1/drivers/scsi/scsi_scan.c
@@ -1845,6 +1845,7 @@ void scsi_forget_host(struct Scsi_Host *
}
spin_unlock_irqrestore(shost->host_lock, flags);
}
+EXPORT_SYMBOL(scsi_forget_host);
/*
* Function: scsi_get_host_dev()
Index: work1/include/scsi/scsi_host.h
===================================================================
--- work1.orig/include/scsi/scsi_host.h
+++ work1/include/scsi/scsi_host.h
@@ -719,6 +719,7 @@ extern struct Scsi_Host *scsi_host_alloc
extern int __must_check scsi_add_host(struct Scsi_Host *, struct device *);
extern void scsi_scan_host(struct Scsi_Host *);
extern void scsi_rescan_device(struct device *);
+extern void scsi_forget_host(struct Scsi_Host *);
extern void scsi_remove_host(struct Scsi_Host *);
extern struct Scsi_Host *scsi_host_get(struct Scsi_Host *);
extern void scsi_host_put(struct Scsi_Host *t);
next prev parent reply other threads:[~2008-03-07 3:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-22 20:09 ata_ram driver Matthew Wilcox
2008-02-22 21:27 ` Mark Lord
2008-03-06 8:21 ` Tejun Heo
2008-03-06 15:28 ` James Bottomley
2008-03-06 23:55 ` Tejun Heo
2008-03-07 0:01 ` James Bottomley
2008-03-07 0:13 ` Tejun Heo
2008-03-07 0:22 ` James Bottomley
2008-03-07 0:28 ` Tejun Heo
2008-03-07 0:39 ` James Bottomley
2008-03-07 0:43 ` Tejun Heo
2008-03-07 3:08 ` Tejun Heo [this message]
2008-03-07 3:08 ` [PATCH 1/2] scsi: export scsi_forget_host() Tejun Heo
2008-03-07 3:11 ` [PATCH 2/2] libata: kill SCSI devices before detaching ata_host Tejun Heo
2008-03-07 2:16 ` ata_ram driver Jeff Garzik
2008-03-07 2:44 ` James Bottomley
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=47D0B1A4.2040104@gmail.com \
--to=htejun@gmail.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=jeff@garzik.org \
--cc=liml@rtr.ca \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matthew@wil.cx \
/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.