[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH RFC v1 7/7] swiotlb: fix the slot_addr() overflow
- To: Dongli Zhang <dongli.zhang@xxxxxxxxxx>
- From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
- Date: Wed, 8 Jun 2022 22:07:26 -0700
- Cc: iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, x86@xxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, hch@xxxxxxxxxxxxx, m.szyprowski@xxxxxxxxxxx, jgross@xxxxxxxx, tglx@xxxxxxxxxxxxx, mingo@xxxxxxxxxx, bp@xxxxxxxxx, dave.hansen@xxxxxxxxxxxxxxx, sstabellini@xxxxxxxxxx, mpe@xxxxxxxxxxxxxx, konrad.wilk@xxxxxxxxxx, mst@xxxxxxxxxx, jasowang@xxxxxxxxxx, joe.jin@xxxxxxxxxx
- Delivery-date: Thu, 09 Jun 2022 05:13:18 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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.
|