Merge tag 'remove-dma_zalloc_coherent-5.0' of git://git.infradead.org/users/hch/dma-mapping
Pull dma_zalloc_coherent() removal from Christoph Hellwig: "We've always had a weird situation around dma_zalloc_coherent. To safely support mapping the allocations to userspace major architectures like x86 and arm have always zeroed allocations from dma_alloc_coherent, but a couple other architectures were missing that zeroing either always or in corner cases. Then later we grew anothe dma_zalloc_coherent interface to explicitly request zeroing, but that just added __GFP_ZERO to the allocation flags, which for some allocators that didn't end up using the page allocator ended up being a no-op and still not zeroing the allocations. So for this merge window I fixed up all remaining architectures to zero the memory in dma_alloc_coherent, and made dma_zalloc_coherent a no-op wrapper around dma_alloc_coherent, which fixes all of the above issues. dma_zalloc_coherent is now pointless and can go away, and Luis helped me writing a cocchinelle script and patch series to kill it, which I think we should apply now just after -rc1 to finally settle these issue" * tag 'remove-dma_zalloc_coherent-5.0' of git://git.infradead.org/users/hch/dma-mapping: dma-mapping: remove dma_zalloc_coherent() cross-tree: phase out dma_zalloc_coherent() on headers cross-tree: phase out dma_zalloc_coherent()
Showing
- arch/mips/lantiq/xway/dma.c 3 additions, 3 deletionsarch/mips/lantiq/xway/dma.c
- arch/powerpc/platforms/pasemi/dma_lib.c 1 addition, 1 deletionarch/powerpc/platforms/pasemi/dma_lib.c
- arch/powerpc/sysdev/fsl_rmu.c 4 additions, 3 deletionsarch/powerpc/sysdev/fsl_rmu.c
- drivers/ata/sata_fsl.c 2 additions, 2 deletionsdrivers/ata/sata_fsl.c
- drivers/atm/he.c 19 additions, 20 deletionsdrivers/atm/he.c
- drivers/atm/idt77252.c 8 additions, 8 deletionsdrivers/atm/idt77252.c
- drivers/block/skd_main.c 2 additions, 2 deletionsdrivers/block/skd_main.c
- drivers/crypto/amcc/crypto4xx_core.c 3 additions, 3 deletionsdrivers/crypto/amcc/crypto4xx_core.c
- drivers/crypto/cavium/cpt/cptpf_main.c 2 additions, 2 deletionsdrivers/crypto/cavium/cpt/cptpf_main.c
- drivers/crypto/cavium/cpt/cptvf_main.c 4 additions, 3 deletionsdrivers/crypto/cavium/cpt/cptvf_main.c
- drivers/crypto/cavium/nitrox/nitrox_lib.c 3 additions, 3 deletionsdrivers/crypto/cavium/nitrox/nitrox_lib.c
- drivers/crypto/ccp/ccp-dev-v5.c 3 additions, 3 deletionsdrivers/crypto/ccp/ccp-dev-v5.c
- drivers/crypto/hisilicon/sec/sec_algs.c 2 additions, 2 deletionsdrivers/crypto/hisilicon/sec/sec_algs.c
- drivers/crypto/hisilicon/sec/sec_drv.c 6 additions, 9 deletionsdrivers/crypto/hisilicon/sec/sec_drv.c
- drivers/crypto/ixp4xx_crypto.c 3 additions, 3 deletionsdrivers/crypto/ixp4xx_crypto.c
- drivers/crypto/mediatek/mtk-platform.c 8 additions, 8 deletionsdrivers/crypto/mediatek/mtk-platform.c
- drivers/crypto/qat/qat_common/adf_admin.c 6 additions, 6 deletionsdrivers/crypto/qat/qat_common/adf_admin.c
- drivers/crypto/qat/qat_common/qat_algs.c 12 additions, 12 deletionsdrivers/crypto/qat/qat_common/qat_algs.c
- drivers/crypto/qat/qat_common/qat_asym_algs.c 34 additions, 34 deletionsdrivers/crypto/qat/qat_common/qat_asym_algs.c
- drivers/dma/imx-sdma.c 4 additions, 4 deletionsdrivers/dma/imx-sdma.c
Loading
Please register or sign in to comment