diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-10-12 11:06:56 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-10-23 23:21:03 -0400 |
commit | c0427f155614908ca1147cd5b6a0d5cdcaef8327 (patch) | |
tree | a4c4d59078679302ccea165080213d0752b1369d /include/target | |
parent | 0a020436d8baf412bcf5997aee7796276ea773ae (diff) |
target: Cleanup unused target_core_base.h bits
This is a squashed version of the following target_core_base.h
cleanup patches:
target: remove the unused SHUTDOWN_SIGS defintion
target: remove unused se_mem leftovers
target: remove the unused map_func_t typedef
target: move TRANSPORT_IOV_DATA_BUFFER to the iscsi-specific code
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/target_core_base.h | 3 | ||||
-rw-r--r-- | include/target/target_core_transport.h | 7 |
2 files changed, 0 insertions, 10 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 872cafcb2681..c00224e8d6c4 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h | |||
@@ -10,10 +10,7 @@ | |||
10 | #include <net/tcp.h> | 10 | #include <net/tcp.h> |
11 | 11 | ||
12 | #define TARGET_CORE_MOD_VERSION "v4.1.0-rc1-ml" | 12 | #define TARGET_CORE_MOD_VERSION "v4.1.0-rc1-ml" |
13 | #define SHUTDOWN_SIGS (sigmask(SIGKILL)|sigmask(SIGINT)|sigmask(SIGABRT)) | ||
14 | 13 | ||
15 | /* Used by transport_generic_allocate_iovecs() */ | ||
16 | #define TRANSPORT_IOV_DATA_BUFFER 5 | ||
17 | /* Maximum Number of LUNs per Target Portal Group */ | 14 | /* Maximum Number of LUNs per Target Portal Group */ |
18 | /* Don't raise above 511 or REPORT_LUNS needs to handle >1 page */ | 15 | /* Don't raise above 511 or REPORT_LUNS needs to handle >1 page */ |
19 | #define TRANSPORT_MAX_LUNS_PER_TPG 256 | 16 | #define TRANSPORT_MAX_LUNS_PER_TPG 256 |
diff --git a/include/target/target_core_transport.h b/include/target/target_core_transport.h index c91516910e3e..ccd85b380d6b 100644 --- a/include/target/target_core_transport.h +++ b/include/target/target_core_transport.h | |||
@@ -110,11 +110,8 @@ | |||
110 | 110 | ||
111 | #define MOD_MAX_SECTORS(ms, bs) (ms % (PAGE_SIZE / bs)) | 111 | #define MOD_MAX_SECTORS(ms, bs) (ms % (PAGE_SIZE / bs)) |
112 | 112 | ||
113 | struct se_mem; | ||
114 | struct se_subsystem_api; | 113 | struct se_subsystem_api; |
115 | 114 | ||
116 | extern struct kmem_cache *se_mem_cache; | ||
117 | |||
118 | extern int init_se_kmem_caches(void); | 115 | extern int init_se_kmem_caches(void); |
119 | extern void release_se_kmem_caches(void); | 116 | extern void release_se_kmem_caches(void); |
120 | extern u32 scsi_get_new_index(scsi_index_t); | 117 | extern u32 scsi_get_new_index(scsi_index_t); |
@@ -186,10 +183,6 @@ extern void transport_send_task_abort(struct se_cmd *); | |||
186 | extern void transport_release_cmd(struct se_cmd *); | 183 | extern void transport_release_cmd(struct se_cmd *); |
187 | extern void transport_generic_free_cmd(struct se_cmd *, int); | 184 | extern void transport_generic_free_cmd(struct se_cmd *, int); |
188 | extern void transport_generic_wait_for_cmds(struct se_cmd *, int); | 185 | extern void transport_generic_wait_for_cmds(struct se_cmd *, int); |
189 | extern int transport_init_task_sg(struct se_task *, struct se_mem *, u32); | ||
190 | extern int transport_map_mem_to_sg(struct se_task *, struct list_head *, | ||
191 | struct scatterlist *, struct se_mem *, | ||
192 | struct se_mem **, u32 *, u32 *); | ||
193 | extern void transport_do_task_sg_chain(struct se_cmd *); | 186 | extern void transport_do_task_sg_chain(struct se_cmd *); |
194 | extern void transport_generic_process_write(struct se_cmd *); | 187 | extern void transport_generic_process_write(struct se_cmd *); |
195 | extern int transport_generic_new_cmd(struct se_cmd *); | 188 | extern int transport_generic_new_cmd(struct se_cmd *); |