diff options
author | Christoph Hellwig <hch@lst.de> | 2014-04-15 06:26:54 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-07-17 16:07:45 -0400 |
commit | f1bea55d5afa371c311b61946c58b2cd4e78fb2d (patch) | |
tree | 3f20d56cdea463b810254e47f96364e651cf4c36 /drivers/scsi/scsi.c | |
parent | aa3fc09078da889d5ffc7ed2745760ce04bf7384 (diff) |
scsi: remove various exports that were only used by scsi_tgt
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'drivers/scsi/scsi.c')
-rw-r--r-- | drivers/scsi/scsi.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index ce5b4e5e7a5a..a76d76df4209 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c | |||
@@ -235,7 +235,8 @@ fail: | |||
235 | * Description: allocate a struct scsi_cmd from host's slab, recycling from the | 235 | * Description: allocate a struct scsi_cmd from host's slab, recycling from the |
236 | * host's free_list if necessary. | 236 | * host's free_list if necessary. |
237 | */ | 237 | */ |
238 | struct scsi_cmnd *__scsi_get_command(struct Scsi_Host *shost, gfp_t gfp_mask) | 238 | static struct scsi_cmnd * |
239 | __scsi_get_command(struct Scsi_Host *shost, gfp_t gfp_mask) | ||
239 | { | 240 | { |
240 | struct scsi_cmnd *cmd = scsi_host_alloc_command(shost, gfp_mask); | 241 | struct scsi_cmnd *cmd = scsi_host_alloc_command(shost, gfp_mask); |
241 | 242 | ||
@@ -265,7 +266,6 @@ struct scsi_cmnd *__scsi_get_command(struct Scsi_Host *shost, gfp_t gfp_mask) | |||
265 | 266 | ||
266 | return cmd; | 267 | return cmd; |
267 | } | 268 | } |
268 | EXPORT_SYMBOL_GPL(__scsi_get_command); | ||
269 | 269 | ||
270 | /** | 270 | /** |
271 | * scsi_get_command - Allocate and setup a scsi command block | 271 | * scsi_get_command - Allocate and setup a scsi command block |
@@ -291,14 +291,13 @@ struct scsi_cmnd *scsi_get_command(struct scsi_device *dev, gfp_t gfp_mask) | |||
291 | cmd->jiffies_at_alloc = jiffies; | 291 | cmd->jiffies_at_alloc = jiffies; |
292 | return cmd; | 292 | return cmd; |
293 | } | 293 | } |
294 | EXPORT_SYMBOL(scsi_get_command); | ||
295 | 294 | ||
296 | /** | 295 | /** |
297 | * __scsi_put_command - Free a struct scsi_cmnd | 296 | * __scsi_put_command - Free a struct scsi_cmnd |
298 | * @shost: dev->host | 297 | * @shost: dev->host |
299 | * @cmd: Command to free | 298 | * @cmd: Command to free |
300 | */ | 299 | */ |
301 | void __scsi_put_command(struct Scsi_Host *shost, struct scsi_cmnd *cmd) | 300 | static void __scsi_put_command(struct Scsi_Host *shost, struct scsi_cmnd *cmd) |
302 | { | 301 | { |
303 | unsigned long flags; | 302 | unsigned long flags; |
304 | 303 | ||
@@ -314,7 +313,6 @@ void __scsi_put_command(struct Scsi_Host *shost, struct scsi_cmnd *cmd) | |||
314 | if (likely(cmd != NULL)) | 313 | if (likely(cmd != NULL)) |
315 | scsi_host_free_command(shost, cmd); | 314 | scsi_host_free_command(shost, cmd); |
316 | } | 315 | } |
317 | EXPORT_SYMBOL(__scsi_put_command); | ||
318 | 316 | ||
319 | /** | 317 | /** |
320 | * scsi_put_command - Free a scsi command block | 318 | * scsi_put_command - Free a scsi command block |
@@ -338,7 +336,6 @@ void scsi_put_command(struct scsi_cmnd *cmd) | |||
338 | 336 | ||
339 | __scsi_put_command(cmd->device->host, cmd); | 337 | __scsi_put_command(cmd->device->host, cmd); |
340 | } | 338 | } |
341 | EXPORT_SYMBOL(scsi_put_command); | ||
342 | 339 | ||
343 | static struct scsi_host_cmd_pool * | 340 | static struct scsi_host_cmd_pool * |
344 | scsi_find_host_cmd_pool(struct Scsi_Host *shost) | 341 | scsi_find_host_cmd_pool(struct Scsi_Host *shost) |
@@ -801,7 +798,6 @@ void scsi_finish_command(struct scsi_cmnd *cmd) | |||
801 | } | 798 | } |
802 | scsi_io_completion(cmd, good_bytes); | 799 | scsi_io_completion(cmd, good_bytes); |
803 | } | 800 | } |
804 | EXPORT_SYMBOL(scsi_finish_command); | ||
805 | 801 | ||
806 | /** | 802 | /** |
807 | * scsi_adjust_queue_depth - Let low level drivers change a device's queue depth | 803 | * scsi_adjust_queue_depth - Let low level drivers change a device's queue depth |