Commit 0298b7da authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Martin K. Petersen

scsi: myrs: Don't use GFP_DMA

The myrs devices supports 64-bit addressing, so remove the spurious GFP_DMA
allocations.

Link: https://lore.kernel.org/r/20211222091935.925624-1-hch@lst.deSigned-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 27363ba8
...@@ -538,13 +538,11 @@ static bool myrs_enable_mmio_mbox(struct myrs_hba *cs, ...@@ -538,13 +538,11 @@ static bool myrs_enable_mmio_mbox(struct myrs_hba *cs,
cs->fwstat_buf = NULL; cs->fwstat_buf = NULL;
goto out_free; goto out_free;
} }
cs->ctlr_info = kzalloc(sizeof(struct myrs_ctlr_info), cs->ctlr_info = kzalloc(sizeof(struct myrs_ctlr_info), GFP_KERNEL);
GFP_KERNEL | GFP_DMA);
if (!cs->ctlr_info) if (!cs->ctlr_info)
goto out_free; goto out_free;
cs->event_buf = kzalloc(sizeof(struct myrs_event), cs->event_buf = kzalloc(sizeof(struct myrs_event), GFP_KERNEL);
GFP_KERNEL | GFP_DMA);
if (!cs->event_buf) if (!cs->event_buf)
goto out_free; goto out_free;
...@@ -1805,7 +1803,7 @@ static int myrs_slave_alloc(struct scsi_device *sdev) ...@@ -1805,7 +1803,7 @@ static int myrs_slave_alloc(struct scsi_device *sdev)
ldev_num = myrs_translate_ldev(cs, sdev); ldev_num = myrs_translate_ldev(cs, sdev);
ldev_info = kzalloc(sizeof(*ldev_info), GFP_KERNEL|GFP_DMA); ldev_info = kzalloc(sizeof(*ldev_info), GFP_KERNEL);
if (!ldev_info) if (!ldev_info)
return -ENOMEM; return -ENOMEM;
...@@ -1867,7 +1865,7 @@ static int myrs_slave_alloc(struct scsi_device *sdev) ...@@ -1867,7 +1865,7 @@ static int myrs_slave_alloc(struct scsi_device *sdev)
} else { } else {
struct myrs_pdev_info *pdev_info; struct myrs_pdev_info *pdev_info;
pdev_info = kzalloc(sizeof(*pdev_info), GFP_KERNEL|GFP_DMA); pdev_info = kzalloc(sizeof(*pdev_info), GFP_KERNEL);
if (!pdev_info) if (!pdev_info)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment