You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PARISC] ROUNDUP macro cleanup in drivers/parisc
Clean up ROUNDUP, Use ALIGN where ever appropriate. Signed-off-by: Milind Arun Choudhary <milindchoudhary@gmail.com> Acked-by: Grant Grundler <grundler@parisc-linux.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
This commit is contained in:
committed by
Kyle McMartin
parent
ea74342900
commit
3cb1d95847
@@ -138,7 +138,7 @@ iommu_coalesce_chunks(struct ioc *ioc, struct scatterlist *startsg, int nents,
|
||||
** exceed DMA_CHUNK_SIZE if we coalesce the
|
||||
** next entry.
|
||||
*/
|
||||
if(unlikely(ROUNDUP(dma_len + dma_offset + startsg->length,
|
||||
if(unlikely(ALIGN(dma_len + dma_offset + startsg->length,
|
||||
IOVP_SIZE) > DMA_CHUNK_SIZE))
|
||||
break;
|
||||
|
||||
@@ -158,7 +158,7 @@ iommu_coalesce_chunks(struct ioc *ioc, struct scatterlist *startsg, int nents,
|
||||
** Allocate space for DMA stream.
|
||||
*/
|
||||
sg_dma_len(contig_sg) = dma_len;
|
||||
dma_len = ROUNDUP(dma_len + dma_offset, IOVP_SIZE);
|
||||
dma_len = ALIGN(dma_len + dma_offset, IOVP_SIZE);
|
||||
sg_dma_address(contig_sg) =
|
||||
PIDE_FLAG
|
||||
| (iommu_alloc_range(ioc, dma_len) << IOVP_SHIFT)
|
||||
|
||||
Reference in New Issue
Block a user