On Mon, Sep 21, 2026 at 08:18:40PM +0530, Aneesh Kumar K.V (Arm) wrote:
> @@ -125,7 +126,8 @@ static inline int dma_contiguous_reserve_area(phys_addr_t
> size,
> return -ENOSYS;
> }
> static inline struct page *dma_alloc_from_contiguous(struct device *dev,
> - size_t count, unsigned int order, bool no_warn)
> + size_t count, unsigned int order, unsigned int required_order,
> + bool no_warn)
> {
> return NULL;
> }
> @@ -136,7 +138,7 @@ static inline bool dma_release_from_contiguous(struct
> device *dev,
> }
> /* Use fallback alloc() and free() when CONFIG_DMA_CMA=n */
> static inline struct page *dma_alloc_contiguous(struct device *dev, size_t
> size,
> - gfp_t gfp)
> + gfp_t gfp, unsigned int align_order)
Can we not just bake the alignment further down in these functions
rather than getting the callers to pass the {required,align}_order?
--
Catalin