vfio/ccw: Remove unneeded GFP_DMA
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 26 Oct 2021 17:57:30 +0000 (14:57 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 28 Oct 2021 17:06:30 +0000 (11:06 -0600)
Since the ccw_io_region was split out of the private the allocation no
longer needs the GFP_DMA. Remove it.

Reported-by: Christoph Hellwig <hch@infradead.org>
Fixes: c98e16b2fa12 ("s390/cio: Convert ccw_io_region to pointer")
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/1-v4-cea4f5bd2c00+b52-ccw_mdev_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/s390/cio/vfio_ccw_drv.c

index 76099bcb765b457c4b06419f110776599e62b6c1..371558ec92045de5410138a8c6c5bb16766bb22f 100644 (file)
@@ -161,7 +161,7 @@ static int vfio_ccw_sch_probe(struct subchannel *sch)
                return -ENODEV;
        }
 
-       private = kzalloc(sizeof(*private), GFP_KERNEL | GFP_DMA);
+       private = kzalloc(sizeof(*private), GFP_KERNEL);
        if (!private)
                return -ENOMEM;