Loading arch/arm/mm/dma-mapping.c +2 −2 Original line number Diff line number Diff line Loading @@ -1211,8 +1211,8 @@ static struct page **__iommu_alloc_buffer(struct device *dev, size_t size, gfp_t gfp, struct dma_attrs *attrs) { struct page **pages; int count = size >> PAGE_SHIFT; int array_size = count * sizeof(struct page *); size_t count = size >> PAGE_SHIFT; size_t array_size = count * sizeof(struct page *); int i = 0; if (array_size <= PAGE_SIZE) Loading arch/arm64/mm/dma-mapping.c +4 −4 Original line number Diff line number Diff line Loading @@ -681,8 +681,8 @@ static struct page **__iommu_alloc_buffer(struct device *dev, size_t size, gfp_t gfp, struct dma_attrs *attrs) { struct page **pages; int count = size >> PAGE_SHIFT; int array_size = count * sizeof(struct page *); size_t count = size >> PAGE_SHIFT; size_t array_size = count * sizeof(struct page *); int i = 0; if (array_size <= PAGE_SIZE) Loading Loading @@ -870,8 +870,8 @@ void *__iommu_alloc_atomic(struct device *dev, size_t size, dma_addr_t *handle, gfp_t gfp, struct dma_attrs *attrs) { struct page **pages; int count = size >> PAGE_SHIFT; int array_size = count * sizeof(struct page *); size_t count = size >> PAGE_SHIFT; size_t array_size = count * sizeof(struct page *); void *addr; if (array_size <= PAGE_SIZE) Loading Loading
arch/arm/mm/dma-mapping.c +2 −2 Original line number Diff line number Diff line Loading @@ -1211,8 +1211,8 @@ static struct page **__iommu_alloc_buffer(struct device *dev, size_t size, gfp_t gfp, struct dma_attrs *attrs) { struct page **pages; int count = size >> PAGE_SHIFT; int array_size = count * sizeof(struct page *); size_t count = size >> PAGE_SHIFT; size_t array_size = count * sizeof(struct page *); int i = 0; if (array_size <= PAGE_SIZE) Loading
arch/arm64/mm/dma-mapping.c +4 −4 Original line number Diff line number Diff line Loading @@ -681,8 +681,8 @@ static struct page **__iommu_alloc_buffer(struct device *dev, size_t size, gfp_t gfp, struct dma_attrs *attrs) { struct page **pages; int count = size >> PAGE_SHIFT; int array_size = count * sizeof(struct page *); size_t count = size >> PAGE_SHIFT; size_t array_size = count * sizeof(struct page *); int i = 0; if (array_size <= PAGE_SIZE) Loading Loading @@ -870,8 +870,8 @@ void *__iommu_alloc_atomic(struct device *dev, size_t size, dma_addr_t *handle, gfp_t gfp, struct dma_attrs *attrs) { struct page **pages; int count = size >> PAGE_SHIFT; int array_size = count * sizeof(struct page *); size_t count = size >> PAGE_SHIFT; size_t array_size = count * sizeof(struct page *); void *addr; if (array_size <= PAGE_SIZE) Loading