summaryrefslogtreecommitdiff
path: root/drivers/scsi/gdth_proc.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-12-12 10:41:20 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2019-01-09 05:57:42 +0300
commit463563fa745ac7ac564458c1903325b937ee8c5f (patch)
tree458917b2f6ad4ca44e87f30b83220815f2ba65cb /drivers/scsi/gdth_proc.h
parent8d22022c3a56314b182810794cae47686b765313 (diff)
downloadlinux-463563fa745ac7ac564458c1903325b937ee8c5f.tar.xz
scsi: gdth: remove gdth_{alloc,free}_ioctl
Out of the three callers once insists on the scratch buffer, and the others are fine with a new allocation. Switch those two to just use pci_alloc_consistent directly, and open code the scratch buffer allocation in the remaining one. This avoids a case where we might be doing a memory allocation under a spinlock with irqs disabled. [mkp: typo] Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/gdth_proc.h')
-rw-r--r--drivers/scsi/gdth_proc.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/gdth_proc.h b/drivers/scsi/gdth_proc.h
index d7d0aa283695..4cc5377cb92e 100644
--- a/drivers/scsi/gdth_proc.h
+++ b/drivers/scsi/gdth_proc.h
@@ -12,9 +12,6 @@ int gdth_execute(struct Scsi_Host *shost, gdth_cmd_str *gdtcmd, char *cmnd,
static int gdth_set_asc_info(struct Scsi_Host *host, char *buffer,
int length, gdth_ha_str *ha);
-static char *gdth_ioctl_alloc(gdth_ha_str *ha, int size, int scratch,
- u64 *paddr);
-static void gdth_ioctl_free(gdth_ha_str *ha, int size, char *buf, u64 paddr);
static void gdth_wait_completion(gdth_ha_str *ha, int busnum, int id);
#endif