[PATCH RFC v1 7/7] swiotlb: fix the slot_addr() overflow

Christoph Hellwig hch at infradead.org
Thu Jun 9 15:07:26 AEST 2022


On Wed, Jun 08, 2022 at 05:55:53PM -0700, Dongli Zhang wrote:
> +#define slot_addr(start, idx)	((start) + \
> +				(((unsigned long)idx) << IO_TLB_SHIFT))

Please just convert it to an inline function.


More information about the Linuxppc-dev mailing list