diff options
| author | David S. Miller <davem@davemloft.net> | 2008-07-27 19:51:21 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2008-07-27 19:51:21 -0400 |
| commit | 281c7413ed914623d3245299a4761b6b27ab9fdb (patch) | |
| tree | 182b5222a7ad4b77c32f7845ea777ca665d7def2 /drivers/scsi/scsi_scan.c | |
| parent | 2ab61b01110aa04cd853c619a74881e3225a5e24 (diff) | |
| parent | c9272c4f9fbe2087beb3392f526dc5b19efaa56b (diff) | |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
| -rw-r--r-- | drivers/scsi/scsi_scan.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index 196fe3af0d5e..84b4879cff11 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c | |||
| @@ -318,7 +318,7 @@ out_device_destroy: | |||
| 318 | put_device(&sdev->sdev_gendev); | 318 | put_device(&sdev->sdev_gendev); |
| 319 | out: | 319 | out: |
| 320 | if (display_failure_msg) | 320 | if (display_failure_msg) |
| 321 | printk(ALLOC_FAILURE_MSG, __FUNCTION__); | 321 | printk(ALLOC_FAILURE_MSG, __func__); |
| 322 | return NULL; | 322 | return NULL; |
| 323 | } | 323 | } |
| 324 | 324 | ||
| @@ -404,7 +404,7 @@ static struct scsi_target *scsi_alloc_target(struct device *parent, | |||
| 404 | 404 | ||
| 405 | starget = kzalloc(size, GFP_KERNEL); | 405 | starget = kzalloc(size, GFP_KERNEL); |
| 406 | if (!starget) { | 406 | if (!starget) { |
| 407 | printk(KERN_ERR "%s: allocation failure\n", __FUNCTION__); | 407 | printk(KERN_ERR "%s: allocation failure\n", __func__); |
| 408 | return NULL; | 408 | return NULL; |
| 409 | } | 409 | } |
| 410 | dev = &starget->dev; | 410 | dev = &starget->dev; |
| @@ -1337,7 +1337,7 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags, | |||
| 1337 | lun_data = kmalloc(length, GFP_ATOMIC | | 1337 | lun_data = kmalloc(length, GFP_ATOMIC | |
| 1338 | (sdev->host->unchecked_isa_dma ? __GFP_DMA : 0)); | 1338 | (sdev->host->unchecked_isa_dma ? __GFP_DMA : 0)); |
| 1339 | if (!lun_data) { | 1339 | if (!lun_data) { |
| 1340 | printk(ALLOC_FAILURE_MSG, __FUNCTION__); | 1340 | printk(ALLOC_FAILURE_MSG, __func__); |
| 1341 | goto out; | 1341 | goto out; |
| 1342 | } | 1342 | } |
| 1343 | 1343 | ||
| @@ -1649,7 +1649,7 @@ int scsi_scan_host_selected(struct Scsi_Host *shost, unsigned int channel, | |||
| 1649 | { | 1649 | { |
| 1650 | SCSI_LOG_SCAN_BUS(3, shost_printk (KERN_INFO, shost, | 1650 | SCSI_LOG_SCAN_BUS(3, shost_printk (KERN_INFO, shost, |
| 1651 | "%s: <%u:%u:%u>\n", | 1651 | "%s: <%u:%u:%u>\n", |
| 1652 | __FUNCTION__, channel, id, lun)); | 1652 | __func__, channel, id, lun)); |
| 1653 | 1653 | ||
| 1654 | if (((channel != SCAN_WILD_CARD) && (channel > shost->max_channel)) || | 1654 | if (((channel != SCAN_WILD_CARD) && (channel > shost->max_channel)) || |
| 1655 | ((id != SCAN_WILD_CARD) && (id >= shost->max_id)) || | 1655 | ((id != SCAN_WILD_CARD) && (id >= shost->max_id)) || |
| @@ -1703,7 +1703,7 @@ static struct async_scan_data *scsi_prep_async_scan(struct Scsi_Host *shost) | |||
| 1703 | return NULL; | 1703 | return NULL; |
| 1704 | 1704 | ||
| 1705 | if (shost->async_scan) { | 1705 | if (shost->async_scan) { |
| 1706 | printk("%s called twice for host %d", __FUNCTION__, | 1706 | printk("%s called twice for host %d", __func__, |
| 1707 | shost->host_no); | 1707 | shost->host_no); |
| 1708 | dump_stack(); | 1708 | dump_stack(); |
| 1709 | return NULL; | 1709 | return NULL; |
| @@ -1757,9 +1757,10 @@ static void scsi_finish_async_scan(struct async_scan_data *data) | |||
| 1757 | mutex_lock(&shost->scan_mutex); | 1757 | mutex_lock(&shost->scan_mutex); |
| 1758 | 1758 | ||
| 1759 | if (!shost->async_scan) { | 1759 | if (!shost->async_scan) { |
| 1760 | printk("%s called twice for host %d", __FUNCTION__, | 1760 | printk("%s called twice for host %d", __func__, |
| 1761 | shost->host_no); | 1761 | shost->host_no); |
| 1762 | dump_stack(); | 1762 | dump_stack(); |
| 1763 | mutex_unlock(&shost->scan_mutex); | ||
| 1763 | return; | 1764 | return; |
| 1764 | } | 1765 | } |
| 1765 | 1766 | ||
