Re: [PATCH RFC v1 7/7] swiotlb: fix the slot_addr() overflow
From: Christoph Hellwig
Date: Thu Jun 09 2022 - 01:07:35 EST
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.