[PATCH 05/12] Export target_lookup function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Export the function target_lookup(). Needed for iSCSI thread per
target feature.

Signed-off-by: Chandra Seetharaman <sekharan@xxxxxxxxxx>

---
 usr/target.c |    2 +-
 usr/target.h |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

Index: tgt-1.0.8.4/usr/target.c
===================================================================
--- tgt-1.0.8.4.orig/usr/target.c
+++ tgt-1.0.8.4/usr/target.c
@@ -63,7 +63,7 @@ static struct device_type_template *devi
 
 static LIST_HEAD(target_list);
 
-static struct target *target_lookup(int tid)
+struct target *target_lookup(int tid)
 {
 	struct target *target;
 	list_for_each_entry(target, &target_list, target_siblings)
Index: tgt-1.0.8.4/usr/target.h
===================================================================
--- tgt-1.0.8.4.orig/usr/target.h
+++ tgt-1.0.8.4/usr/target.h
@@ -88,4 +88,5 @@ static inline int queue_active(const str
 QUEUE_FNS(BLOCKED, blocked)
 QUEUE_FNS(DELETED, deleted)
 
+extern struct target *target_lookup(int tid);
 #endif
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux