> +static inline size_t dma_max_mapping_size(struct device *dev) > +{ > + const struct dma_map_ops *ops = get_dma_ops(dev); > + size_t size = SIZE_MAX; > + > + if (dma_is_direct(ops)) > + size = dma_direct_max_mapping_size(dev); > + else if (ops && ops->max_mapping_size) > + size = ops->max_mapping_size(dev); > + > + return size; > +} Sorry for not noticing last time, but since 5.0 we keep all non-fast path DMA mapping interfaces out of line, so this should move to kernel/dma/mapping.c. > +EXPORT_SYMBOL(dma_direct_max_mapping_size); And then there is no need to export this one. The dma_max_mapping_size export should be EXPORT_SYMBOL_GPL like all new dma-mapping interfaces.